πUsing dynamic variables
Dynamic variables are placeholders used in AI prompts to personalize interactions by dynamically inserting specific information during a conversation. They are essential for tailoring the AI's responses to the individual needs and context of each customer interaction.
Structuring the Input Variables Section
Purpose
The Input Variables section is crucial for defining the dynamic variables that will be used throughout the AI prompt. This section ensures that each variable is clearly documented, providing clarity on its purpose and usage.
Common use cases:
Pre-fill variables previous to an outbound call for customization
Grab user's name from database and greet them by their name
Confirm user's address in a database
Confirm an appointment with user in existing database
Notation
Dynamic variables are enclosed in double curly braces, e.g., {{variable_name}}.
Each variable should be listed with a brief description of its role in the conversation.
These variables go directly in your prompt and can be tested during test calls.
Declaration Example
{{customer_name}}: The name of the customer.
{{product_interest}}: The product the customer is interested in.
{{customer_email}}: The email address of the customer.
{{customer_company}}: The company the customer represents.

Usage Example
Comment
Greeting: "Hello {{customer_name}}, I see you're interested in our {{product_interest}}."Comment
Company Reference: "I understand {{customer_company}} has been experiencing {{specific_issue}}."
Placement
Dynamic variables should be placed in the # Input Variables section of the prompt. It is recommended to position them at the end of this section to ensure clarity and organization.

Best Practices
Ensure all dynamic variables are accurately populated before the conversation begins.
Regularly update the list of dynamic variables to reflect any changes in business needs or customer interactions.
Test the implementation of dynamic variables to ensure they function as expected in various scenarios.
Conclusion
Dynamic variables are a powerful tool for creating personalized and effective AI interactions. By understanding and implementing them correctly, businesses can significantly improve the quality of their customer engagements.
Last updated