Recipe · n8n

n8n human in the loop, when you don't have a human handy

To put a human in the loop in n8n, pause the workflow with the Wait node and continue when the answer arrives. n8n's own human review sends an approve/deny request to you or your team in Slack, email or chat. Use this recipe when the answer should come from people outside your team: an HTTP Request node sends the question to GetABrain, a Wait-and-check loop holds the workflow, and verified US people answer it. Five nodes, no code beyond one small tally.

GetABrain: human feedback for any AI project, from verified real people. How answers are verified

  1. 1.Get a test key ($5 sandbox credit)

    Sign up as a requestor and mint a test-mode key. It is a normal gab_k_ / gab_s_ pair that returns simulated answers, paid from the $5 sandbox credit first, so you can wire the whole loop before any real person sees a question.

  2. 2.HTTP Request node "Ask GetABrain": create the question

    Method POST to /api/v1/requestor/queries on www.getabrain.ai (full URL in the curl below), send headers X-API-Key and X-API-Secret (store them as an n8n credential), body JSON. In n8n, put the draft in context with an expression such as {{ $json.draft }}. The response has the query id. Here is the same call as curl, to test it outside n8n first.

    curl -X POST https://www.getabrain.ai/api/v1/requestor/queries \
      -H "X-API-Key: gab_k_..." -H "X-API-Secret: gab_s_..." \
      -H "Content-Type: application/json" \
      -d '{
        "type": "yes_no",
        "title": "Send this support reply as written?",
        "content_data": {
          "question": "Should this reply go to the customer as written?",
          "context": "Draft reply: Sorry about that! We refunded the second charge today.",
          "require_explanation": true
        },
        "required_responses": 3,
        "bid_amount_cents": 25
      }'
  3. 3.Wait node: pause

    Resume: After Time Interval, 2 minutes. n8n offloads a paused execution to its database when the wait is 65 seconds or longer, so a long human wait does not hold a running process.

  4. 4.HTTP Request node "Check answers": read the query

    Method GET, same two headers. The URL uses the id from the first node.

    https://www.getabrain.ai/api/v1/requestor/queries/{{ $('Ask GetABrain').first().json.id }}
  5. 5.IF node: done yet?

    True when enough people answered or the query ended. Wire the false branch back into the Wait node. That loop is the whole human-in-the-loop step. Prefer push to polling? See webhooks and the FAQ below.

    {{ $json.completed_responses >= $json.required_responses || ['expired', 'cancelled', 'failed'].includes($json.status) }}
  6. 6.Code node: count the votes

    Default mode (Run Once for All Items). Its input is the poll that passed the IF, so the votes are final. The next node gets approved: true or false, plus the count, and your workflow sends the reply or routes it to a person.

    const q = $input.first().json  // the poll that passed the IF
    const votes = q.responses.map(r => r.response_data.answer)
    const yes = votes.filter(v => v === 'yes').length
    return [{ json: { approved: yes * 2 > votes.length, yes, total: votes.length } }]
  7. 7.What came back (sandbox run, simulated answers)

    We ran this question on 2026-12-03 with a test-mode key, so the answers below are simulated, not real people. The shape matches live answers. Sandbox explanations are placeholder text, so we show only the votes.

    question: "Should this reply go to the customer as written?"
    context:  Customer: "I was charged twice this month."
              Draft: "Sorry about that! We refunded the second charge today.
                      It should show on your card in 3-5 business days."
    
    response_data.answer from 3 answers: "yes", "no", "yes"
    tally of those votes: {"approved": true, "yes": 2, "total": 3}
Sources (5)
  • Wait node resumes after an interval, at a time, on a webhook call ($execution.resumeUrl) or on a form submission; waits under 65 seconds are not offloaded to the database: docs.n8n.io · checked 2026-12-03
  • Human review for AI Agent tools: approve/deny via n8n Chat, Slack, Discord, Telegram, Teams, email, WhatsApp, Google Chat, Outlook: docs.n8n.io · checked 2026-12-03
  • $('Node').first() returns a node's first output item: docs.n8n.io · checked 2026-12-03
  • $input.first() returns the current node's first input item: docs.n8n.io · checked 2026-12-03
  • Code node default mode is Run Once for All Items: docs.n8n.io · checked 2026-12-03
Use the Wait node to pause. For approvals from your own team, n8n's human review step on AI Agent tools sends approve/deny requests to Slack, email, Telegram or n8n Chat. For answers from outside people, send the question to GetABrain with an HTTP Request node and loop Wait, check, IF until the answers are in.
The Wait node resumes after a time interval, at a set time, on a webhook call, or on a form submission. A form works when one known person approves. The polling loop on this page works when the approver is a group of people you don't know yet.
Yes, with three catches. Set the Wait node to On Webhook Call with HTTP Method POST, and put $execution.resumeUrl in the query's webhook_url. GetABrain only posts to public https URLs, so a localhost n8n won't get it. And it posts a response.submitted event for every answer, so the Wait node resumes on the first one: use required_responses: 1 or keep the polling loop. Your account also needs a webhook secret first (see the webhooks docs).
Yes. Give the agent an HTTP Request tool that calls GetABrain, or connect the GetABrain MCP server so asking a person is one tool call.
Test mode answers are simulated and paid from the $5 sandbox credit. Live yes/no answers start at $0.05 each plus a 20% platform fee, prepaid, no subscription required.