Outbound agent
# support
s
i am building a outbound agent but while creating a call getting error again again. I want to send prompt within the payload so that it should take dynamic values. How should be the payload look like?
v
To send a prompt with dynamic values in your outbound call, your payload should look like this:
Copy code
json
{
  "assistantId": "your-assistant-id",
  "assistantOverrides": {
    "variableValues": {
      "name": "John"
    }
  },
  "customer": {
    "number": "+1xxxxxxxxxx"
  },
  "phoneNumberId": "your-phone-id"
}
Reference variables in your prompt using
{{name}}
. Make sure to replace the IDs and values as needed. This will inject dynamic values into your assistant's conversation at call time. See more: [Vapi dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables#using-dynamic-variables-in-a-phone-call) Source: - [Vapi documentation: Using dynamic variables in a phone call](https://docs.vapi.ai/assistants/dynamic-variables#using-dynamic-variables-in-a-phone-call)
a
Hey, Can you send me the latest call_id? Along with that, can you provide me the duration in the recording where you had this issue?