#what is the system variable for the users phone number? regardless of whether its an inbound/outbou

1 messages · Page 1 of 1 (latest)

west berryBOT
#
AI-generated Answer for flenshhh0524
  • There isn’t a single system variable that always equals the end user’s phone number across call directions.
  • Use:
    • system__caller_id — caller’s phone number (voice calls only). For inbound calls, this is the user. (elevenlabs.io)
    • system__called_number — destination phone number (voice calls only). For outbound calls, this is the user. (elevenlabs.io)

Sources:
Dynamic variables | ElevenLabs Documentation
Dynamic variables | ElevenLabs Documentation

tribal sinew
#

so how can i configure the whatsapp send message tool on my agent? If i want to use it to send a template message to the user on a condition. Every time I try to save the tool with the defaults even just changing the condition prompt slightly i get an error saying: "Fix the errors to proceed" but doesnt actually mark what the errors are

west berryBOT
#
AI-generated Answer for flenshhh0524

Here’s the officially supported way to set up and debug the WhatsApp “Send Message” tool for an agent:

Prerequisites

  • Import your WhatsApp Business account into ElevenLabs, then add the WhatsApp integration. (elevenlabs.io)
  • Create your WhatsApp template in Meta’s WhatsApp Manager. Note: the tool currently supports parameters only in the template body. (elevenlabs.io)

Add and configure the tool

  • In Tools, add an Integration tool, pick WhatsApp, then select the “Send Message” tool. (elevenlabs.io)
  • In your agent’s system prompt, explicitly tell the agent:
    • when to use the tool (the condition),
    • the exact template name and language code,
    • and which parameters to pass. (elevenlabs.io)

IDs and variables you can use

  • ElevenLabs sets the dynamic variables system__caller_id and system__called_number to the WhatsApp user ID and your WhatsApp phone number ID (direction-dependent). You can reference these in tools or prompts when targeting the recipient. You can copy your WhatsApp phone number ID from the WhatsApp page in the dashboard. (elevenlabs.io)
  • Full list and behavior of system dynamic variables is documented here. (elevenlabs.io)

Troubleshooting the “Fix the errors to proceed” save error

  • The docs do not list that specific UI message, but the following are required for WhatsApp outbound messaging:
    • whatsapp_phone_number_id
    • whatsapp_user_id
    • template_name
    • template_language_code
    • template_params (body parameters only)
      If any of these are missing/invalid, the request will fail. You can validate your values by sending a test message from the WhatsApp page (Outbound → Message) or by calling the API endpoint below. (elevenlabs.io)

API reference (to verify your template details independently)

  • POST /v1/convai/whatsapp/outbound-message requires the fields above; on success it returns a conversation_id. Use this to confirm your template name, language code, and params are accepted before saving the tool. (elevenlabs.io)

If you still can’t save the tool after confirming:

  • Re-check that the template parameters you pass are in the body (not header/footer), per the tool limitation. (elevenlabs.io)
tribal sinew
#

the send message tool doesnt even have template_params to configure?