SENDING PHONE NUMBER TO THE VOICEFLOW
# support
t
My VAPI agent is connected to the Voiceflow. When a specific intent triggered in the VAPI call, I want to send the user's phone number automatically to the Voiceflow in the {user_phone_number} variable. How can I do this?
v
@TCommander To send the user's phone number automatically to Voiceflow when a specific intent is triggered in the VAPI call, you'll need to set up an action within your VAPI agent that captures the user's phone number and then passes it to Voiceflow using the appropriate variable name. Here's a general outline of the steps you might take: 1. Configure your VAPI agent to recognize the specific intent that should trigger the action. 2. Within the intent handling, ensure there's a step to capture the user's phone number. This might involve asking the user for their number or retrieving it from the call context if it's available. 3. Once the phone number is captured, set it as a variable within your VAPI agent's context. 4. Use a webhook or an API call to send the captured phone number to Voiceflow, assigning it to the
{user_phone_number}
variable. If you need assistance with the specific code or setup within your VAPI agent or Voiceflow, please provide more details about your current configuration, and I'll be happy to help further!
You can continue this conversation by mentioning me in the message.
t
How can I add a step to automatically capture the phone number? VAPI is connected to Voiceflow and instead of asking the user for the phone number in the agent, I want to automatically transfer the number from which the call was made.
s
you can send dynamic variables during the call.
check this https://docs.vapi.ai/server-url/events#retrieving-assistants to get caller or customer number.
6 Views