Manual Send Data to Bot
# support
j
Hey, I’m wanting to manually send data to my bot for every call that I make. That way it has the customer’s name and other dynamic information. Can someone help with with step by step instructions on how to do that?
v
@jordanstubb. Absolutely, I'd be happy to guide you through the process of sending dynamic data to your bot for each call. Here's a step-by-step instruction on how to do that: 1. **Prepare Your Data**: Before making the call, gather all the dynamic information you want to send to the bot, such as the customer's name, account number, or any other relevant details. 2. **Use the
assistantOverrides
Feature**: When starting the call, you can pass the dynamic data using the
assistantOverrides
feature. This allows you to set variables that the bot can use during the conversation. 3. **Set `variableValues`**: Within
assistantOverrides
, you'll use the
variableValues
object to define the values for the variables you want to use in the call. For example, if you want to set the customer's name to "John", you would do it like this:
Copy code
json
{
  "variableValues": {
    "name": "John"
  }
}
4. **Pass the Data When Initiating the Call**: When you initiate the call through the API or SDK, include the
assistantOverrides
with the
variableValues
in the request body. 5. **Access Variables in the Call**: In your bot's script, you can now use the dynamic variables you've set. For example, you could have the bot say "Hello, {{name}}!" at the beginning of the call, and it will say "Hello, John!" if you've set the name to John. 6. **Test the Call**: Make a test call to ensure that the dynamic data is being correctly passed and used by the bot. Remember to follow the specific syntax and guidelines provided by the VAPI documentation to ensure everything works as expected. If you encounter any issues or have further questions, please don't hesitate to ask for more information.
You can continue this conversation by mentioning me in the message.
j
Thank you! Is there a video showing how to do this to make it a bit easier?
v
@jordanstubb. I'm glad you're interested in visual learning resources! While I don't have the capability to provide videos, I can suggest looking for tutorials or guides on the official website or YouTube, where many developers and companies post instructional content. If the Voice API (VAPI) you're using has a documentation page or a support portal, they often include video tutorials for various features. You can check there for a step-by-step video guide on how to send dynamic data to your bot. If you're unable to find a video tutorial, I recommend reaching out to the support team of the VAPI you're using. They may be able to provide you with existing resources or even create a new tutorial based on user demand. Remember, practice is key, and following the written instructions I provided earlier can also be a great way to learn. If you have any specific questions or need further assistance, feel free to ask!
j
Where do I find the transcription of the conversation from my bot? Can I see the transcription in real time or do I have to wait until after the call ends to see the transcription?
s
Explore our community video section at https://docs.vapi.ai/community where many users have shared videos that might be relevant to your use case.
13 Views