Inspiration

Many institutions and companies still depend on manually reviewing and signing legal documents, a method that is both costly and inefficient. With the emergence of generative AI, there is a significant opportunity in the sizeable market to transform the way documents are examined and signed. People who receive documents, like NDAs, job contracts, and lease agreements, often struggle to understand them because of the complicated legal language used. Even when they do understand, it’s hard for the average person to evaluate whether a document aligns with typical industry standards. The situation becomes even more challenging for those for whom English is not a first language (myself included).

What it does

ProSign is designed to make it easier to review and sign NDAs. The app consists of three pages:

Upload & Summarize Doc

This page allows a user to upload a PDF file and answer the most essential questions about the NDA using AI (such as: who are the signing parties, what is the effective date, etc.).

Chat with Doc

This page allows users to ask more specific questions about the document using natural language in a ChatGPT-like style.

Review & Sign

This page uses the Dropbox Sign API and embedded signing to sign the NDA document after it has been reviewed.

How we built it

I used Streamlit to build the front-end of the app and llama-index to connect LLM to the data. As a core model, I used gpt-3.5-turbo from OpenAI

Challenges we ran into

One of the challenges I ran into is a Dropbox Sign API limit of 10 signature requests per day. It made the testing and development a bit harder. Another challenge was that embedding custom JS into a pure Python Streamlit app is not straightforward. It was solved by composing a sign URL and opening it as an iframe.

Accomplishments that we're proud of

It is great to have one app that can do both AI document summarization and allow users to chat with their documents and sign them digitally.

What we learned

I learned a great deal about how the Dropbox Sign API works and how to use it to build custom applications. I also improved my skills in designing a web app with a user-centric approach.

What's next for ProSign - AI-powered NDA review & signing

Prosign has rather limited functionality as of now. I think the next steps would be to implement the following features:

• Allow multiple parties to sign a document

• Email the AI-generated summary to the parties

• Email the signed document to the parties

• Ability to download the signed document

• Use AI to suggest what terms can be negotiated in a contract and use external data to help with negotiations

• Switch to more advanced model like GPT 4

Built With

  • llama-index
  • openai
  • python
  • streamlit
Share this project:

Updates