본문으로 건너뛰기
Jev | typesafeAPI & Playground
…

Use Cases / smart-reply

Smart reply picker

Suggested replies that invent a refund, a date, or a promise create a support incident the moment they are sent.

Try a related template free on this host — 5 anonymous real-API runs with no signup — then ship the same schema with a prepaid jv_live_ key. See is Jev free? and playground.

Why Jev

Write the drafts in your app. Ask which draft is safer, and whether it can go out without a person checking facts. none is a real option. The send decision stays a threshold in your code, not a sentence in a chat completion.

How to define the decision

State is the incoming message plus each draft. Choice criteria are the draft ids and none. A Noul asks if the chosen draft is safe to send without a fact check. Send only on a clear pick and a high send probability.

When to use Jev

  • Choosing among replies a template or a larger model already drafted
  • Blocking a draft that states a refund or a date you have not verified
  • Logging why a suggestion was withheld

When not to use Jev

  • Authoring the reply text
  • Auto-sending when either draft over-claims
  • Replacing your policy on refunds and legal commitments

Failure modes and human fallback

  • Upstream or network errors: retry with backoff; do not invent a decision.
  • Low confidence: route to a human queue or safer default — never auto-act on money/destructive tools.
  • Schema drift: keep a golden fixture set in CI so label changes fail the build before production.
  • This host does not post to email, chat, or social networks.
  • A safe-to-send probability is not a check that the refund exists.
  • Your product copy and promises stay your responsibility.

API example

Same prepaid jv_live_ balance as tools. Output tokens are free on this host's metering model.

curl
curl https://jevtypesafe.org/api/v1/decide \
  -H "Authorization: Bearer jv_live_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"state":"Incoming: you charged me twice. I want the duplicate back today.\nDraft A: I refunded $42 just now.\nDraft B: I can see two charges. A specialist will confirm the duplicate before any refund.","questions":{"pick":{"type":"choice","instructions":"Which draft is safer to consider? Use none if both over-claim.","criteria":{"draft_a":"draft A","draft_b":"draft B","none":"neither draft"}},"send_now":{"type":"noul","instructions":"Is the chosen draft safe to send without a person checking the facts?"}}}'

FAQ

Does the API write the reply?
No. You supply the drafts. The call picks among them. Generation, if you need it, stays on your other model.
How is a production call billed?
Input tokens on a prepaid pack from /pricing/, same jv_live_ key as the rest of decide.

Related use cases

Ready to build?

Free anonymous tool runs, then prepaid packs and a jv_live_ key — independent host, not affiliated with TypeSafe AI.

Smart Reply API with Jev | Pick a Draft, Do Not Write One