#Using #conversational-ai I am sending a webhook on inbound call initiation. The chatbot on Elevenl
1 messages · Page 1 of 1 (latest)
Short answer: No. The inbound “conversation initiation” webhook cannot select or switch the agent by returning an agent_id. Inbound Twilio calls are already tied to a specific agent before the webhook fires; the webhook only receives that agent_id and may return dynamic variables and conversation_config_override fields (e.g., prompt, first_message, language, voice), not a different agent. (elevenlabs.io)
To control which agent answers an inbound call, assign the phone number to the desired agent in the dashboard or via the API (PATCH /v1/convai/phone-numbers/:phone_number_id with agent_id). (elevenlabs.io)
If you need conditional routing:
- Do it at the telephony layer (PBX/SIP/Twilio) by routing callers to different phone numbers, each mapped to a different agent. (elevenlabs.io)
- Or transfer mid-call using the built-in transfer_to_agent tool to hand off to another agent. (elevenlabs.io)
Sources:
Twilio personalization | ElevenLabs Documentation
Twilio native integration | ElevenLabs Documentation
SIP trunking | ElevenLabs Documentation
Agent transfer | ElevenLabs Documentation
During a call with the initial agent (orchestrator) is it possible to keep the orchestrator from saying more than 'hello' and then switch to desired agent?