- Receive an enquiry
- Check its meaning
- Apply your rules
- Update your CRM
Build the workflow
You need a Yes/No API key, available checks and a workflow tool or server that can make HTTPS requests. These fictional examples illustrate a workflow; they have not performed an action.
Collect the message and keep the original ID
Trigger on your enquiry form or email. Keep the contact details and submission ID in your automation. Send only the text needed to make the decision.
Write one explicit qualification question
Describe the intent you need to recognize. In this example, a business must be commissioning a new website and state a budget of at least $3,000. A job application mentioning websites and $6,000 should not qualify.
Call the API and inspect result
POST the two fields below. Continue only after a successful HTTP response containing a boolean. Keep a stable idempotency key for retries of this event and this question version.
Route the original enquiry
On true, create or tag a qualified CRM lead using the original trigger fields. On false, keep your normal enquiry process. Put HTTP failures into a retry or review queue instead of either decision branch.
If your form already collects a numeric budget or an exact company/customer ID, compare those fields in ordinary code. Use the AI check for intent or meaning that a normal field comparison cannot establish. A NO is a result for this question and text, not a judgement about the person.
Send the request
POST https://answeryesno.com/v1/check. Authenticate with your bearer key and send a JSON object containing question and text. The curl example is the same request your HTTP step sends.
JSON body
{
"question": "Is this a business asking for a new website with a budget of at least $3,000?",
"text": "We run an accountancy firm and need a new website. Our budget is $6,000. Can you send a proposal?"
}curl request
curl 'https://answeryesno.com/v1/check' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: example-lead-001-v1' \
--data '{"question":"Is this a business asking for a new website with a budget of at least $3,000?","text":"We run an accountancy firm and need a new website. Our budget is $6,000. Can you send a proposal?"}'Run this only after replacing YOUR_API_KEY. A successful live request uses one check. Do not put keys into browser scripts, shared exports or screenshots.
Handle YES and NO
A successful check returns exactly one boolean field. These are illustrative expected outcomes, not a live benchmark or an accuracy guarantee.
YES {"result": true}
We run an accountancy firm and need a new website. Our budget is $6,000. Can you send a proposal?
Create a qualified lead using the original enquiry ID and contact details.
NO {"result": false}
I build websites for businesses and am looking for a job. My salary expectation is $6,000 a month.
Keep the message in the general enquiry process for review.
NO means the supplied text does not establish the question. It can include missing evidence. It does not mean that the request failed, and it is not a reason to discard the original record automatically.
Test before connecting actions
Build a small set of examples from your own workflow. Include both answers, missing information and confusingly similar messages:
- A real business asking to commission your service.
- A job applicant who mentions the same service and money.
- An existing customer asking for support.
- A relevant enquiry with missing budget: the supplied text does not establish the full example criteria.
Review incorrect results and change your criteria where needed. AI answers can be wrong; keep a person in control of consequential decisions.
Keep errors separate from NO
Only branch after an HTTP 200 response whose result is a boolean. A failed request does not return a decision and does not consume a check. Your workflow should stop, retry or request review.
| Status | Your workflow’s next step |
|---|---|
| 400 | Fix missing or oversized question/text. Do not retry unchanged invalid input. |
| 401 | Replace an invalid or revoked API key in your credentials. |
| 402 | Check your balance or payment adjustment in your account. |
| 409 | If the check is pending, retry later with the same ID. If the ID was reused for different input, use a new ID. |
| 429 | Wait as instructed by Retry-After, then retry with the same ID. |
| 503 / timeout | Keep the item for a later retry. A network timeout does not prove the server failed to complete the check. |
Reuse the same Idempotency-Key for the same question and text for up to seven days. A completed replay does not spend a second check. Changing the input requires a new ID. Make downstream actions idempotent too: deduplicate a CRM update or alert using the original source-event ID.
Limits, credits and privacy
API text is limited to 6,000 UTF-8 bytes; the question to 300 UTF-8 bytes. Bytes are not characters: accented text and emoji can use more than one byte. The combined previous/current text in a monitoring request shares the one text limit. Shorten or extract relevant content before sending it.
Each completed new decision uses one check. The account trial is 25 checks once, then the current rate is $1 per 200 checks, with a $5 minimum top-up for 1,000 checks. USD, tax included, no subscription. Your automation provider’s fees are separate.
Your check text is not sent to OpenAI, Anthropic or Google. The application keeps hashes, results and usage records for retries and accounting rather than storing raw question/text. Read the privacy and retention details. Keep unnecessary personal data out of inputs.
Choose your next step
Use the API reference for the request contract or download the OpenAPI definition. Start with a few representative examples before connecting production actions.
Step-by-step guides
Start with your automation tool, or build one of these decision steps.
Questions about this guide? Contact support.