Add an approval to a no-code flow
Create a task from a no-code tool, wait for a person, and continue the flow on their decision.
What you build#
A flow in n8n, Zapier, Make or any other tool reaches a step that needs a person: a refund, a discount, a message to a customer. The flow creates a task, a person approves or rejects it, and the flow carries on only when a person approved.
There are two routes. The TaskToHuman app for n8n, Zapier or Make does it for you: the n8n node with your API key, the Zapier and Make apps by signing in. The n8n node and the Zapier app can also pause the flow until the decision arrives. The webhook route works from any tool that can post JSON and receive a webhook, with no app at all.
Before you start#
- A TaskToHuman account and a workspace where you can create task types.
- For the first route, self-hosted n8n, Zapier or Make. For the second, any tool with an HTTP request step and an incoming-webhook trigger.
1. Create the task type#
In the app, open Task types, choose New task type and start from Blank. This tutorial uses the refund approval of the Quickstart; skip this step if you made it there.
- Basics: name it "Refund approval", key
approve_refund, and choose Approval. - What they see: add the Fields
order_id(Text, required),amount(Number, required) andreason(Long text). - Who is asked: add yourself as the first step. Under If nobody answers, keep Expire.
Choose New task type to create it. The app then shows the task type's webhook URL, once: copy it if you will take route two.
2. Create a test API key (n8n and route two)#
Zapier and Make don't need a key: skip to step 3 and sign in there. For n8n, open API & webhooks, then API keys, choose New API key, pick Test and choose Create key. The key starts with tth_test_ and is shown once. Test tasks notify only you, whoever the chain names (Test mode).
3. Route one: the n8n node#
- On self-hosted n8n, open Settings, then Community Nodes, choose Install and enter
n8n-nodes-tasktohuman. On n8n Cloud, use route two. - Add a TaskToHuman credential with the test key. To wait for decisions, add the workspace's signing secret too: it is revealed once under API & webhooks, then Signing secrets.
- Add the TaskToHuman node where the flow needs a person and choose Create and Wait for Decision. Pick
approve_refundand fill Payload with its fields as a JSON object, mapped from earlier steps, for example{"order_id": "4821", "amount": 249}. - After it, add an If node: continue only when the decision's
actionisapprovedand itsautomaticisfalse. The node outputs the finished task, so the values are{{ $json.decision.action }}and{{ $json.decision.automatic }}. Everything else (rejected,expired,cancelled) takes the other branch.
"Create and Wait for Decision" needs n8n at a public https address (n8n's WEBHOOK_URL). Without one, create the task with Create, and start a second workflow with the node's trigger, which runs when a task finishes.
Zapier and Make connect by signing in. Add a TaskToHuman step, sign in with your TaskToHuman account, choose the workspace and Test first: test tasks notify only you. In Zapier, use Create Task and Wait for Decision, or Create Task with the Task Finished trigger in a second Zap. In Make, use Create a Task, and start a second scenario with Watch Finished Tasks. The integration pages for n8n, Zapier and Make show each setup.
4. Route two: create the task with the webhook URL#
Every task type has its own webhook URL. Anything posted to it becomes a task, with no API key:
https://api.tasktohuman.com/v1/hooks/tth_hook_…The token in it is the credential: treat the whole URL like a password. If you didn't copy it when you created the task type, make one under API & webhooks, then Webhooks. Making a new URL stops the old one at once.
Tasks created through the webhook URL are always live: the URL has no test mode. They go to the humans of the chain and count like any live task. While you build, keep yourself as the only human in the chain.
Open the task type, then How it arrives, Webhook intake, and say where the title and each field are in the JSON your tool sends. Pick from a sample reads a body you paste and offers its values. Suppose your tool posts:
{ "subject": "Refund for order #4822", "order": { "id": "4822", "total": 249 }, "note": "Arrived damaged" }Map Title to subject, order_id to order.id, amount to order.total and reason to note. A field without a mapping takes the top-level property with the same key. In your tool's HTTP step, POST that JSON to the URL with Content-Type: application/json, and send an Idempotency-Key header such as the order number, so a retry never creates a second task. The rules are on Webhook intake.
5. Route two: continue the flow on the decision#
- In your tool, create a flow that starts with an incoming webhook, and copy its https address.
- In the task type, under After the answer, paste it as the Callback URL. When the task finishes, TaskToHuman posts the finished task to it.
- In that flow, branch on
decision.action, and continue only when it isapprovedanddecision.automaticisfalse.automaticistruewhen nobody decided.
To try this part before any live task, open the task type and choose Send test task: a test task uses the same callback URL and notifies only you.
The callback is signed (TTH-Signature), but most no-code tools can't check a signature. If yours can't, keep the incoming-webhook address secret, and before anything that matters, confirm the task with an HTTP step: GET https://api.tasktohuman.com/v1/tasks/{id} with the header Authorization: Bearer and your key. Use a live key for webhook tasks: a test key sees only test tasks. See Callbacks and signatures.
Check it works#
- Run the flow, open the email and Approve: the flow continues on the approved branch.
- Run it again and Reject (on route two, for another order: the same
Idempotency-Keyand body return the first task): the flow takes the other branch, anddecision.commentholds what you wrote. - On route two, post the same body twice with the same
Idempotency-Key: you get the same task back, not a second one.
If a callback doesn't arrive, open the task in the app: it shows why the attempt failed. Callback URLs must be https on port 443 or 8443, on a public host name (Callback URL rules).
Going live#
- Route one: in n8n, replace the test key in the credential with a live key (
tth_live_…). In Zapier or Make, add a new connection, sign in and choose Live. Tasks then go to the humans of the chain. Old test connections can be revoked under API & webhooks, then Connected apps. - Route two: put the real approvers in the chain, with a backup step. See Escalation chains.
- Keep If nobody answers on Expire unless a late yes is safe. A default action of Approve ends an unanswered task
approvedwithautomatic: true, and only theautomaticcheck keeps it from passing (When nobody answers).
Where next#
- Every tool and route at a glance: No-code integrations.
- Let the person fill in values the flow is missing: Ask a person to fill in missing data.
- The same approval from your own code: Add an approval step to your own code.
- All tutorials: Tutorials.