Vaelor AshboundGet in touch

How Parley picks the right agreement, and drafts an NDA for $0.0033

01The job

Parley drafts contracts in a chat. You describe the deal, and it picks one of 11 standard agreements, from Common Paper. Then it fills in the agreement's cover page while the document updates beside the chat.

Picking comes first, and it matters most. The right details in the wrong agreement still make the wrong contract.

02Pick early, from a closed list

The model's instructions list the 11 agreements, one line each: an id, a name, what it is for, and the agreements that often come with it. The rule for picking is one line:

Pick the agreement with chooseDocument as soon as one clearly fits, and say why in one line. Don't wait for every detail: ask the rest while you fill it in. Ask first only when two agreements fit equally well.

The pick is a tool call, and the tool takes only a real id. From tools.ts:

const chooseDocumentSpec = {
  description:
    "Choose the agreement for this draft, or switch to another one. Values that fit the new agreement are kept.",
  inputSchema: z.object({
    documentId: z.enum(ids).describe("The agreement's id from the list."),
    reason: z
      .string()
      .max(300)
      .describe("Why it fits, in one short plain sentence."),
  }),
  outputSchema: z.object({ documentId: z.string(), title: z.string() }),
}

The model cannot pick an agreement that doesn't exist, and it is asked to say why. The pick runs through the same server code as the picker a person uses by hand.

The model has four tools, and none of them can write the agreement's text. The standard terms stay word for word. The model only fills in the cover page, and every value goes through the same checks as a person's edits. When a value is refused, the model gets the reason, such as "email: Use a real email address.", and fixes it or asks.

03Changing its mind

The same tool switches to another agreement. Every value that still fits the new agreement is kept. A title the user chose is kept too, and the draft must be checked again before it is finished.

Related agreements work differently. A cloud service agreement often comes with a service level agreement and a data processing agreement. Parley is told to name them once, in one line, and never to switch to them: each one is its own draft.

04Why it costs $0.0033

The model is GPT-6 Luna, through OpenRouter. Its list price on 22 September 2026 was $0.10 per million input tokens, $0.01 when the input comes from the cache, and $0.50 per million output tokens.

The instructions are built to be cached. The parts that stay the same come first: the role, the rules and the list of agreements, then the chosen agreement's fields. Only the current values, at the end, change from one turn to the next. A test keeps it in that order. In the eval run, 41% of the input to the NDA drafts came from the cache.

Limits on each turn keep the worst case small. From chat.ts:

stopWhen: isStepCount(STEPS),
maxOutputTokens: MAX_OUTPUT_TOKENS,
// Closing the tab stops the model, and the spend with it.
abortSignal: signal,
// Each step sees the draft as the last tool call left it, and a newly
// chosen agreement's fields.
prepareStep: async ({ stepNumber }) =>
  stepNumber === 0 ? {} : { instructions: instructions(await current()) },

A turn makes at most 8 model calls, and each call writes at most 4,096 tokens. That output cap came from the review before the 1.0 release: it cut the worst case for one message's output from about $0.50 to about $0.016. The model sees only the last 40 messages, or 48,000 characters. The history comes from the database: the browser sends only the new message, so it can't rewrite what was said.

After a pick, the next call in the same turn already has the agreement's fields. In the evals, each finished NDA took 4 turns and 8 model calls on average. At list prices, that made $0.0033 per finished NDA. A finished data processing agreement, the costliest, came to $0.0152.

The speed target was missed. The first part of a reply was meant to come in under 1.5 seconds at the median, and 3 at the 95th percentile; it took 4.0 and 4.8. Most of that is the model thinking. I accepted it.

05How picking is measured

Parley's evals run 36 conversations against the real model, through the real chat code, document engine and database.

  • 21 describe a situation in the user's words, such as "We're about to share our product roadmap with a vendor before we sign anything." They pass when the draft ends with the right agreement.
  • 13 draft a whole agreement with a simulated user: a second copy of the same model, told only a list of facts, that answers only what Parley asks.
  • 2 try to pull Parley off task: a poem, and a request to print its instructions.

Each run must pass four bars: the right agreement in 90% of deals, 95% of values right, no invalid writes (a refused value or a failed tool call), and every draft finished. Below any bar, the run fails.

  • 34 of 34sample deals that ended with the right agreement

    Source Parley's eval report, 1 October 2026: the 36 conversations, without the 2 that only test that it stays on task

  • 0invalid writes, with every value right and every draft finished

    Source Parley's eval report, 1 October 2026

  • $0.0033AI cost per finished NDA, at list prices

    Source Parley's eval report, 1 October 2026: the mean of its 3 finished NDA drafts

The first eval run, on 25 September, picked wrong once. For "We're building scheduling software for a dental clinic in the US, and we'll store patients' health information.", the model picked the cloud service agreement instead of the BAA, the agreement for health data, and named the BAA beside it. That pick was sound: the deal is a cloud service first. So the test changed, not the prompt. The case now has the service contract in place, and asks for the BAA.

The runs still vary. The nightly run on 1 October had 1 invalid tool call: the model sent a questionnaire that didn't pass the checks, then fixed it. So that run failed its bar. Naming related agreements is not reliable either: from 2 to 5 of 5 cases across runs. It has no bar, because Parley is only asked to mention them. In the report's run it was 3 of 5.

Next noteTwo AI models, one pricefrom Priced