πŸ“„Using dynamic variables

Dynamic Variables Documentation

Page actionsDynamic 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.Comment

Structuring the Input Variables Section

Purpose

CommentThe 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.Comment

Notation

  • Dynamic variables are enclosed in double curly braces, e.g., {{variable_name}}.Comment

  • Each variable should be listed with a brief description of its role in the conversation.Comment

Declaration Example

  • {{customer_name}}: The name of the customer.Comment

  • {{product_interest}}: The product the customer is interested in.Comment

  • {{customer_email}}: The email address of the customer.Comment

  • {{customer_company}}: The company the customer represents.Comment

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}}."Comment

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.CommentFor more detailed guidance on structuring prompts, refer to the Dapta AI Calls Prompt Guidelines.Comment

Best Practices

  • Ensure all dynamic variables are accurately populated before the conversation begins.Comment

  • Regularly update the list of dynamic variables to reflect any changes in business needs or customer interactions.Comment

  • Test the implementation of dynamic variables to ensure they function as expected in various scenarios.Comment

Conclusion

CommentDynamic 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