Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Chatbots & Messaging Bots

Chatbots & Messaging Bots

Route Claude multi-agent tasks from webhook and send summaries to WhatsApp

When an API call/webhook arrives, it answers chat messages with a bot with Claude using WhatsApp.

What it does

## AI Agent Supervisor ### How it works A supervisor agent (Claude) receives a task and, in a loop, decides which specialist agent should act next: researcher, coder, analyst, writer or reviewer. The chosen specialist runs, its output is added to a shared work log, and control returns to the supervisor. The supervisor keeps routing until it decides the task is complete (FINISH), a step limit is hit, or a routing loop is detected. A final synthesis step then merges all specialist work into one answer, which is returned to the webhook caller and sent as a WhatsApp summary. ### Setup steps - Create an HTTP Header Auth credential named for Anthropic (header x-api-key, value = your API key) and select it on the supervisor, all five specialist nodes, and the synthesis node. - Add WhatsApp Business credentials to the WhatsApp node and set the phone number ID and recipient in the Config node. - Update the Config node: models, default and hard step limits, API URL. - POST to the webhook with a body like { "task": "...", "context": "...", "maxSteps": 5 }. A manual run uses a sample task. ### Customization - Add a specialist: add an output rule in the Switch node, a new Claude HTTP node with its own system prompt feeding Record Specialist Output, and list it in the roster inside Build Supervisor Request. - Swap any specialist for a real tool (SQL, code execution, CRM) by replacing its HTTP node; only the output text matters. - Tune routing behaviour through the supervisor rules in Build Supervisor Request.

The steps

  1. When Task Submitted
  2. When Manual Test Run Initiates
  3. Normalize Task Input
  4. If Task Is Valid
  5. Respond with Validation Error
  6. Set Configuration Parameters
  7. Build Supervisor Request
  8. Ask Supervisor Claude
  9. Parse Supervisor Decision
  10. Route to Specialist Agent
  11. Researcher Agent
  12. Coder Agent
  13. Analyst Agent
  14. Writer Agent

21 steps in total.

Similar automations