Add a yes/no decision
to your app
Building with Codex or Claude Code? Paste these instructions into the app you’re already working on.
Get your API key
Create a key in your account. Your builder will help you store it securely.
Give your builder the instructions
Copy the prompt and paste it into Codex or Claude Code.
Tell it what to check
Describe your question, the text to use, and what YES or NO should do. Test the result in your app.
25 free answers · No card needed
EU-hosted AIInstructions for your builder
Add AnswerYesNo to this app for yes/no decisions about text.
Read the API spec: https://answeryesno.com/openapi.json
Create a server-side helper that sends:
POST https://answeryesno.com/v1/check
Authorization: Bearer <YESNO_API_KEY from server secrets>
Content-Type: application/json
Idempotency-Key: <a stable UUID for this request>
JSON body: {"question": question, "text": text}
Use result only after HTTP 200 and when it is a boolean.
Keep errors separate from false. Reuse the UUID for retries
of identical input; use a new UUID if the input changes.
Follow the spec's input limits. Keep the key server-side
and out of chat, browser code and source control.
Ask me which text to check, my yes/no question, and what
each answer should do. Help me set YESNO_API_KEY securely.
Show me how to test both branches before enabling actions.
No API key is included in these instructions.
What does YES/NO handle?
You send a question and text; we return {"result": true} or {"result": false}. Your app collects the text and carries out the next action. We host the model, and your check text isn’t sent to an external model API. See our privacy details.
Could I call a model provider directly?
Yes. Your builder can integrate another model API. YES/NO offers one focused question-and-text contract with pricing per answer. Try it on the decisions your app needs and choose the approach that works for you.
What about Shopify Sidekick?
This guide covers Codex and Claude Code. Shopify documents Sidekick-generated apps as limited to its Admin API. We haven’t verified a supported direct connection from those apps to YES/NO. Read Shopify’s app limitations.