One-tap human approvals for n8n, LangGraph and CrewAI
Your agent asks, you pass the link on, and whoever opens it answers in one tap in any browser. A person ticks that they are 18 or over; they need no Wayza account. Your agent gets the answer back, signed.
The request
curl -X POST https://wayza.com/wayza/v0/approvals \
-H "Authorization: Bearer $WAYZA_KEY" -H "Content-Type: application/json" \
-d '{"to":["link"],"title":"Book the 9:12 train?","choices":["Yes","No"],
"callback":"https://example.com/wayza/answer"}'
No key yet? POST https://wayza.com/wayza/v0/agents with {"name":"Atlas"} gives one (connector_key). The reply to the ask has the link and a line to paste:
{
"id": 1,
"status": "waiting",
"choices": ["Yes", "No"],
"expires_at": "…",
"link": "https://wayza.me/…/chat/…",
"share_text": "Book the 9:12 train? Pick one: Yes, No. https://wayza.me/…/chat/…"
}
Nobody is sent anything. Put share_text in the Slack message, email, WhatsApp or pull request you are already sending.
The answer
The first answer settles it. It comes to your callback, or on GET https://wayza.com/wayza/v0/approvals/{id}, with signed_answer, signed by the home (trimmed):
{
"type": "wayza.answer",
"approval": "https://wayza.com/wayza/v0/approvals/1",
"status": "answered",
"answers": [{ "to": "link", "decision": "answered", "choice": "Yes", "as": "link_holder", "at": "…" }],
"sig": { "kid": "home#…", "alg": "Ed25519", "value": "…" }
}
as says who answered. link_holder means whoever had the link, with nobody checked. For a person's own consent, ask them by name or email address instead: then as is person or email-link. Check the signature against the home's keys at /.well-known/wayza.json. One link is one question, for up to 30 days. An AI can answer a link too, with one POST to {link}.json.
n8n
A paused workflow can't hand out a link, so in n8n you ask by email instead, which also needs no account. Install the community node n8n-nodes-wayza, add the Wayza: Ask a person node, and pick Ask and Wait for the Answer. Put the person's email address in To: they get a one-tap email, with no account needed, and the workflow resumes on their signed answer. Require a Person is on by default, so an AI's yes never counts as theirs. Asking by email needs an agent its person has claimed. n8n needs a public https WEBHOOK_URL so the answer can reach it.
Python: LangGraph, CrewAI, Google ADK
pip install wayza-human
from wayza_human import Wayza
wz = Wayza() # key from WAYZA_KEY
ask = wz.ask("Book the 9:12 train?", to=["link"], choices=["Yes", "No"])
print(ask.approval["share_text"]) # paste it wherever you're talking
result = wz.wait_for(ask, timeout="24h")
print(result.choice, result.as_) # "Yes", "link_holder"
In a framework, the same package pauses the run: LangGraph with wayza_human.langgraph.ask_human(..., durable=True), CrewAI Flows with wayza_human.crewai.WayzaFeedbackProvider, Google ADK with wayza_human.adk.answer_confirmations. wayza-human on PyPI.
TypeScript, and any MCP client
npm install @wayza/human
import { Wayza } from '@wayza/human';
const wayza = new Wayza(); // key from WAYZA_KEY
const ask = await wayza.ask({ to: ['link'], title: 'Book the 9:12 train?', choices: ['Yes', 'No'] });
console.log(ask.share_text);
const result = await wayza.waitFor(ask);
Adapters for the OpenAI Agents SDK, Claude Agent SDK, Vercel AI SDK, LangGraph.js and Mastra: @wayza/human on npm. Over MCP, connect https://wayza.com/mcp and use the ask_approval tool with to set to ["link"].
AIs with no owner
An agent nobody has claimed yet can ask by link straight away, with choices only. Its asks are marked No owner. More: Ask a person, Ask your own person.