Vaelor AshboundGet in touch

Parley

Describe the deal. Watch the contract fill itself in.

Built
2026
Runs on
Cloudflare Workers
A recording of Parley. A deal between two made-up companies is described in the chat. Parley picks a mutual NDA, fills in its fields beside the chat, and says the agreement is complete, with a Download PDF button.
Fig. 1 · Parley, drafting one NDA, waits sped upNot to scale

92 seconds from opening the page to a downloaded NDA.

10× speed
  1. 0 sDeal described
  2. Agreement picked
  3. 92 sNDA downloaded

01The problem

Small teams need standard agreements: an NDA before a first call, a data processing agreement before a pilot. Filling one in by hand means reading pages of terms to find a dozen blanks. An AI that writes the contract freely is worse: nobody can trust its text.

02What I built

An AI drafting tool for the 11 standard agreements from Common Paper, such as the Mutual NDA, the Cloud Service Agreement and the DPA. You describe the deal in plain words. Parley picks the agreement, asks only what it still needs, and fills the document in live, beside the chat. Then you download a PDF (on Pro, a Word file too), or share a read-only link.

Guests can start at once, with no sign-up. When they sign up, the draft and the chat move to their new account.

Built with

  • TanStack Start
  • Hono and oRPC
  • Postgres on Neon
  • Drizzle
  • Better Auth
  • Polar
  • Resend
  • AI SDK and OpenRouter
  • Browser Run
  • Cloudflare Workers

03How it works

  1. You describe the deal. For example: “We're about to show our roadmap to a possible manufacturing partner.”
  2. The model works through tools. It can choose a document, update fields, ask questions and mark the draft complete. It never writes the agreement's text.
  3. The document engine checks every value. Each field has a type, such as a date, an amount, a jurisdiction or a party. A value the engine refuses goes back to the model, with the reason.
  4. It asks only for what is missing, as a short questionnaire with likely answers to pick from.
  5. The document fills in live. Each change shows in the chat, with Undo.

The live preview, the PDF and the Word file all come from one render model, so what you check on screen is what you download.

The AI cost has four limits: the size of a request, a rate limit per user, a daily number of messages per user, and a hard cap on the AI key. The only fixed cost is $5 a month for Cloudflare Workers.

04The numbers

  • 34 of 34sample deals, the right agreement picked

    Source evals with the real model, 1 October 2026: 21 conversations that choose an agreement and 13 that draft one in full

  • 13 of 13full drafts finished, every field value right

    Source the same evals, with a draft for each of the 11 agreements

  • $0.0033AI cost per finished NDA

    Source the same evals, the mean for the NDA drafts at OpenRouter's list prices. The most expensive agreement, the DPA, costs $0.0152.

  • 92 sfrom opening the page to a downloaded PDF, sign-up included

    Source one timed run, 1 October 2026, with the real model and a scripted browser, on a local dev server with the same code as production

05How it is tested

  • 1,306 tests, green on 1 October 2026: the document engine, the server, the database on real Postgres and the components in a real browser. Another 450 run the Worker in its real runtime.
  • An auth matrix calls every procedure as no one, a guest, another user, the document's owner and a Pro user, and checks that each gets exactly what it should.
  • Each night, the browser tests run in 6 projects: Chromium, Firefox and WebKit, on desktop and phone.
  • Every outside service is also tested for real, in its sandbox: a real model conversation from an NDA to its PDF, Browser Run, Polar, Resend and Turnstile.
  • All 12 documents (the 11 agreements and the NDA's cover page) are printed for real and compared with approved page images: 44 of 44 pages matched.
  • Mutation testing scored 89% on the document and quota code, and 96% on auth.
Next case studyPricedPaste a product. Get its real price.