Send Data to the 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 me do this?
v
message has been deleted
@jordanstubb. Absolutely, I'd be happy to help you with that! To send dynamic data such as a customer's name to your bot for every call, you can use the
assistantOverrides
feature with
variableValues
when starting the call. Here's how you can set it up: 1. Define the dynamic variables you want to use in your bot's script, for example,
{{name}}
. 2. When initiating a call, pass the
assistantOverrides
object along with
variableValues
containing the dynamic information you want to inject into the call. Here's a sample JSON structure you would use:
Copy code
json
{
  "variableValues": {
    "name": "CustomerName",
    "otherVariable": "SomeOtherValue"
  }
}
Replace
"CustomerName"
and
"SomeOtherValue"
with the actual data you want to send for each call. This will ensure that your bot has access to the dynamic information and can use it during the conversation. If you need further assistance with the implementation or have any more questions, feel free to ask!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.