- Your trigger
- HTTP Request
- IF
- Your YES or NO action
Build the workflow
You need a Yes/No API key, available checks and a workflow tool or server that can make HTTPS requests. This is a standard HTTP integration, not a native or endorsed marketplace app.
Import the starter
Download the starter above and use Import from File in n8n. It starts with a manual trigger and fictional input. The two final nodes only keep the original item beside the answer; they do not create a CRM record or send a message.
Store your key as a credential
Create a key in your Yes/No account. In Binary check, select Generic Credential Type → Header Auth. Set the credential name to Authorization and its value to Bearer YOUR_API_KEY. Keep the key in credentials, not in the downloadable workflow or a public node field.
Map the source item
Replace Run manually with your form, email or other source trigger. In Input item, map the message body to text, keep the original record ID in source_id and set question to your yes/no criteria. Keep contact details in your workflow unless the decision needs them.
Configure HTTP Request
Use POST, the endpoint below and a JSON body containing question and text. The starter supplies Content-Type through the JSON setting and parses the response as JSON. Its Idempotency-Key comes from request_id.
Branch on the boolean
The starter first checks that result is an actual boolean and stops if it is missing or invalid. Then the YES or NO node uses a Boolean condition: result is true. Its first output handles YES; its second handles a successful false result. Keep strict type validation on. Do not test whether the string "false" is present or whether any response exists.
Connect actions after testing
Run a matching and a non-matching example. Replace the two final Set nodes with your actions, mapping original IDs and contact fields from Input item. Leave HTTP failures on the error path; the starter stops on a failed request.
The starter runs requests one at a time. For retries across executions, replace its execution-based request ID with a stable source-event ID plus a question version. Reuse it only for the same question and text.
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.
Before enabling actions, test matching text, non-matching text, missing evidence and a message that mentions the same keywords with a different intent.
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.
Platform documentation
Platform screens and plan requirements can change. These guides explain the HTTP setup; they do not imply a partnership or certification.
Questions about this guide? Contact support.