How do i call metadata in the prompt
# support
v
Hi @! John Jahshan, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Connecting Your Custom LLM to Vapi: A Comprehensive Guide]() * [Creating Custom Knowledge Bases for Your Voice AI Assistants]() * [Tools Calling]() * [Frequently Asked Questions]() -----------------------------
### Answer To include custom fields such as names in your Vapi assistant's prompts, you can use dynamic variables. These variables allow you to personalize the assistant’s messages dynamically. You can format these variables within double curly braces, like
{{variableName}}
, and set their values when initiating the call. Here’s an example on how to set the assistant’s first message using a dynamic variable for a name:
Copy code
json
{
  "variableValues": {
    "name": "John"
  }
}
This configuration will replace
{{name}}
in any of your assistant's messages with "John" [(1)]() . For more information on how to utilize dynamic variables in your Vapi assistant, refer to the section on dynamic variables in the documentation .
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
s
{{name}}
and use dynamic variables
2 Views