Personalization with user information
Add customer-specific information to your voice assistant conversations
Add customer-specific information to your voice assistant conversations
Personalization lets you include customer-specific information in your voice assistant conversations. When a customer calls, your server can provide data about that customer, which is then used to tailor the conversation in real time.
This approach is ideal for use cases like customer support, account management, or any scenario where the assistant should reference details unique to the caller.
When a call comes in, Vapi sends a request to your server instead of using a fixed assistant configuration.
Your server receives the request, identifies the caller (for example, by phone number), and fetches relevant customer data from your database or CRM.
Use variable placeholders in your assistant’s instructions or messages with the {{variable_name}} syntax.
Example:
"Hello {{customerName}}! I see you've been a {{accountType}} customer since {{joinDate}}."
If your server encounters an error or cannot find the customer, return a response like this to end the call with a spoken message:
{{variable_name}} syntax for variables in your assistant configuration.