NewChecks now run on every tool call

Relay runs your AI agents in production. It plans, calls your tools, checks its own work, and shows you every step it took.

Terminal
  Created relay.config.ts with 3 tools  Connected to orders, payments, email  Ready. Run it with: relay dev
NorthwindHalcyonPelletQuarryBluebirdOffshoreTandem

Follow one request.

Support ticket“I was charged twice for order 4417. Can you refund one?”
Run 7f3a0.0s
  1. readticket 4417 from Helpdesk, customer is Ana P.
  2. plan3 steps: find the duplicate charge, refund it, reply
  3. toolpayments.list(order 4417) 200 81ms
  4. toolpayments.refund(£24.00) 200 412ms
  5. toolemail.draft(to Ana P.) 200 97ms
  6. checkrefund equals the duplicate charge: pass
  7. checkreply states the amount and date: pass
Done in 4.2 seconds£24.00 refunded, reply ready for a person to send. 3 tool calls, 0 retries.

Tools with types

Describe a tool once in TypeScript. Relay checks every call against it before anything touches your systems, and refuses calls that do not fit.

export const refund = tool({
  input: z.object({
    order: z.string(),
    amount: z.number().max(500),
  }),
  needsApproval: amount => amount > 100,
})

Checks before it replies

Write checks in plain words or code. Relay runs them on every answer and on every deploy, so a prompt change that breaks refunds never ships.

v41
v42
v43
v44
v45

v43 failed 6 checks and was held back.

Runs where your data is

Deploy Relay in your own cloud, or ours in London, Frankfurt or Virginia. Logs stay in your region and are deleted on your schedule.

A server room aisle in cool blue light
Sam Okafor, head of support engineering at Northwind (sample)

Sam Okafor, support engineering, Northwind (sample)

Tickets handled
61%
Median reply
38s
Wrong refunds
0

Hobby

£0

1,000 runs a month

  • All tools and checks
  • 7 days of logs
  • Community help
Start free

Team

£49a month

50,000 runs, then 0.1p a run

  • Checks on every deploy
  • 90 days of logs
  • Approvals in Slack
  • Email help in a day
Start a 14 day trial

Scale

Talk to us

Your cloud or ours, any volume

  • Single sign on
  • Your own region
  • A named engineer
Book a call

Create a free website with Framer, the website builder loved by startups, designers and agencies.