Inspiration

A common need for businesses dealing with third parties across all industries is making sure that documents on file are matching contractual requirements: this results in the tedious, time-consuming, all-too-common request/review/follow-up workflow. But here's the good news: autonomous agents are finally here!

What it does

Thou Shalt Comply is an autonomous agent that, when given a contract and an email address, will try to persuade the counterpart to provide all documents needed to satisfy contractual requirements.

Once set up, it will automatically send the first request, asking them to upload proof that they are compliant with their contract.

As soon as the counterpart replies with documents, the agent will read the message, save the attachments, extract information, compare it against the requirements, and automatically follow up based on whatever tone the user decides to use, starting from pleasant moving to firm, towards urgent, and beyond.

How we built it

We weren't able to finalize the project on time, but we built the basic workflow on Retool. The planned implementation: a web app that allows the user to start a conversation with a third party. The user uploads the contract and provides an email address. The app reads the content of the contract, identifies the requirements, and writes a personalized email message that invites the third party to reply by attaching the requested documents. The email is sent from a mailbox that is connected to a gateway, and all responses to that email are automatically forwarded to the web app. Messages and attachments then are parsed and evaluated by OpenAI: based on their content, it will determine if requirements are met and if the third party is compliant. If non-compliant, a follow-up message will be sent with a detailed explanation of the gaps and the remediation steps.

Challenges we ran into

The scope was too large and we made the mistake of not leveraging on low-code solutions like Retool from the very beginngin. We started writing the app from scratch and that took us too much time.

Accomplishments that we're proud of

I believe we've identified a use case that is common across many industries, that can be easily monetized, and that can save people time.

What we learned

Gen-ai projects are a lot of fun! In the future, we will leverage low-code / no-code platforms to quickly prototype ideas.

What's next for Thou Shalt Comply

Will finalize the POC and include it as an add-on feature in TrustLayer!

Built With

  • openai
  • remix
  • supabase
Share this project:

Updates