YES/NOKeep it simple, stupid.

Route support emails by what they ask

Use a yes/no question to identify one kind of request in an incoming email. Keep the original message and customer record in your support system; YES/NO returns only the boolean decision.

Maintained by YES/NO · Updated

Your software runs the workflow
  1. Receive an email
  2. Check its request
  3. Route YES or NO
  4. Human support review

Build the workflow

You need a YES/NO API key, some answers in your account, and a tool that can send web requests.

  1. Start with one intent

    Pick a request your team needs to route, such as a customer asking to cancel a subscription. One API call answers one yes/no question; it does not assign multiple categories at once.

  2. Use ordinary checks first

    Check whether an address has a valid shape and whether a sender is already on a known list using normal code or your email provider. Those checks do not need AI. The example here asks about the meaning of the message body.

  3. Inspect the decoded email body

    In n8n, run the email trigger with a sample and inspect its output. Use the decoded plain-text body and subject; bodyStructure describes MIME parts, not the request text. Decode RAW messages first. Strip quoted history, signatures and unnecessary personal data. If the readable body is missing, send the item for review instead of treating it as NO.

  4. Branch on a real boolean

    Check that the HTTP step succeeded and result is the boolean true or false. In an n8n If node, select a Boolean condition on result and test one message for each branch. A string such as "false" is not the boolean false; an existence check only says the field is present.

  5. Keep the message attached to its decision

    Keep the original message ID and account reference alongside the result so the right message reaches the right queue. On true, put it in the cancellation queue; on false, use the normal support queue. Route API failures to retry or review. Deduplicate downstream actions using the message ID, since mail triggers can deliver or retry the same item again. A person verifies any account change.

This is a message-content check, not an email-address verifier or an inbox-deliverability test. A syntactically valid address does not prove that a person controls its inbox. Keep exact address and domain checks in your email system.

These checks address problems raised in recent IMAP body extraction and If node routing questions. Inspect your own trigger output because field names depend on the mail source and selected format.

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 customer asking to cancel their subscription?",
  "text": "Please cancel my subscription before it renews next month. I no longer need the service."
}

curl request

curl 'https://answeryesno.com/v1/check' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: example-email-001-v1' \
  --data '{"question":"Is this customer asking to cancel their subscription?","text":"Please cancel my subscription before it renews next month. I no longer need the service."}'

Run this only after replacing YOUR_API_KEY. A successful request uses one answer. Do not put keys into browser scripts, shared exports or screenshots.

Handle YES and NO

A successful check returns exactly one boolean field.

YES {"result": true}

Please cancel my subscription before it renews next month. I no longer need the service.

Send the original message and account reference to the cancellation queue for a person to review.

NO {"result": false}

Please cancel our product demo next month. I still have a question about my subscription.

Keep the message in the normal support queue.

NO means the text doesn’t show what you asked about, or doesn’t say enough to tell. It doesn’t mean the request failed.

Test before connecting actions

Build a small set of examples from your own workflow. Include both answers, missing information and confusingly similar messages:

  • A direct request to cancel the subscription.
  • A request to cancel a meeting that merely mentions the subscription.
  • A question about cancellation terms without a request to cancel.
  • A forwarded thread where the latest message reverses an earlier request.
  • A message with no decoded body: send for review before the API call.
  • An HTTP error, a string "false", and a replayed message ID: do not route them as a fresh YES or NO.

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.

Common API errors and recovery
StatusYour workflow’s next step
400Fix missing or oversized question/text. Do not retry unchanged invalid input.
401Replace an invalid or revoked API key in your credentials.
402Check your balance or payment adjustment in your account.
409If the check is pending, retry later with the same ID. If the ID was reused for different input, use a new ID.
429Wait as instructed by Retry-After, then retry with the same ID.
503 / timeoutKeep 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 new answer uses one credit. You get 25 free answers once, then it’s $5 for 500 answers. USD, tax included, no subscription. Your automation tool’s own fees are separate.

We don’t send your text to OpenAI, Anthropic or Google, and we don’t save it. We only keep a coded fingerprint of each request and its answer, so retries aren’t charged twice. Read the privacy and retention details. Keep unnecessary personal data out of inputs.

Choose your next step

Use the API reference or download the OpenAPI file. Test with a few real messages before you go live.

Step-by-step guides

Pick your automation tool, or start from one of these ideas.

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.