Step 2.2: Variables aka Dynamic Data during Outbound Calls

Overview Variables

Variables act as placeholders within your AI assistant's prompts, providing customization and personalization in real-time interactions. They are noted as {variable} within the script and are dynamically replaced with relevant data when the prompt is activated.

Double Check Case Sensitivity

  • Always use curly braces {} to denote a variable within your prompts.
  • Ensure variable names are clear and descriptive, such as {product_name} or {appointment_date}.
  • No space in variables.

❗️

{lead name}

👍

{lead_name}

How to Implement Variables In Prompts

  1. Create Variables
    1. Wherever you wish to personalize the prompt, insert a variable using the {variable} format.
    2. For example: "Hello {customer_name}, how can I assist you today?"
  2. Provide Variable Data
    1. When the AI assistant is called into action, the actual data for each variable is supplied through the appropriate parameters.
    2. This data may come from user input, database records, or session details, ensuring each prompt is tailored to the individual situation.

📘

Variables enable your prompts to be more engaging and context-aware, resulting in a more natural and effective user experience.