Research Article

PactPal: GPT-Driven Legal Contract System

Xiaoyi Wang1,*, Jinxuan Wang2
1. Shandong University of Finance and Economics, Jinan 250014, China
2. Southwest JiaoTong University, Chengdu 611765, China

* Corresponding author: [email protected]

Abstract

Whenever an ordinary person is called upon to draft a contract for the first time they may be perplexed. In this regard, we have taken advantage of ChatGPT’s ability to consider the particulars of the situations that its clients are in to be able to give them information and advice on the law and to assist laypeople in creating their contracts. This paper presents the design and implementation of the PactPal system, a generation and legal contract management tool based on ChatGPT. Through the incorporation of artificial intelligence, the system presents an enhanced approach to contract generation whereby legal contracts that fulfill the needs of the user can be developed in a short time. We created both medium and high-fidelity prototypes; we improved the user interface, contract generation, and customization options step by step. Based on the user testing, it was found that PactPal enhances the drafting of contracts, minimizes the occurrence of errors in the process, and is a smart tool for legal contract management in the future.

Keywords: Artificial Intelligence & Law; ChatGPT; Contract; Legal Assistant
Published: January 24, 2025
DOI: 10.54254/2755-2721/2024.20571
Volume: ACE Vol.131
pp. 117-122
Download PDF

References

  1. E. A. Zacks, ‘The Moral Hazard of Contract Drafting’, Fla. St. U. L. Rev., vol. 42, p. 991, 2015 2014.
  2. S. Williams, "Contractual Complexity, " Delaware Journal of Corporate Law, vol. 1, no. 3.
  3. F. Martin-Bariteau and M. Pavlovic, ‘AI and Contract Law’, Feb. 01, 2021, Rochester, NY: 3730385. Accessed: Aug. 27, 2024. [Online]. Available: https://papers.ssrn.com/abstract=3730385
  4. J. Tan, H. Westermann, and K. Benyekhlef, ‘ChatGPT as an Artificial Lawyer?’.
  5. J. Savelka, K. D. Ashley, M. A. Gray, H. Westermann, and H. Xu, ‘Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?’, Jun. 24, 2023. doi: 10.1145/3587102.3588792.
  6. S. Williams, ‘Generative Contracts’, 2024, Rochester, NY: 4582753. [Online]. Available: https://papers.ssrn.com/abstract=4582753
  7. M. Lauritsen, Q. Steenhuis, Substantive legal software quality: A gathering storm?, in: Proceedings of the Seventeenth International Conference on Artificial Intelligence and Law, 2019, pp. 52–62.
  8. Z. Sun, ‘A Short Survey of Viewing Large Language Models in Legal Aspect’, Mar. 16, 2023, arXiv: arXiv:2303.09136. Accessed: Aug. 21, 2024. [Online]. Available: http://arxiv.org/abs/2303.09136
  9. A. M. Perlman, et al., The implications of openai’s assistant for legal services and society, Available at SSRN (2022).
  10. B. Guo, X. Zhang, Z. Wang, M. Jiang, J. Nie, Y. Ding, J. Yue, Y. Wu, How close is chatgpt to human experts? comparison corpus, evaluation, and detection, arXiv preprint arXiv:2301.07597 (2023).
  11. Z. Zhou et al., “LawGPT: A Chinese Legal Knowledge-Enhanced Large Language Model, ” Jun. 06, 2024, arXiv: arXiv:2406.04614. Accessed: Aug. 24, 2024. [Online]. Available: http://arxiv.org/abs/2406.04614