Skip to main content
A community node n8n-nodes-branchpilot (operations Decide, Feedback, Get run) is in preparation. Until it is published, the HTTP Request node below does the job.

With the HTTP Request node

1

Add an HTTP Request node

  • Method: POST
  • URL: https://api.branchpilot.ai/v1/decide/lead-routing (your decision’s slug)
  • Authentication: Generic → Header Auth, name Authorization, value Bearer bp_live_… (store it as an n8n credential)
  • Send body: JSON
2

Build the body

3

Branch on the answer

Add a Switch node on {{ $json.choice }} with one output per option and one for __uncertain__. For score decisions, use a Switch on number ranges of {{ $json.score }}; for classify decisions, an IF node per label with {{ $json.labels.includes('billing') }}.
Set the HTTP Request node’s timeout to at least 10 seconds and enable Retry on fail for 5xx responses.