Skip to content
  • There are no suggestions because the search field is empty.

Variables

The Variables tab allows you to create and manage prompt variables for your AI agent. Prompt variables are dynamic placeholders that can be used in your agent’s prompts to customise responses based on specific values. This feature helps you make prompts flexible, reusable, and personalised.

Creating a Prompt Variable

  1. Navigate to the Variables tab in your platform.

  2. Click the Create New Prompt Variable button.

    • A side window will open for you to define the variable.

  3. In the side window, you will see two fields:

  • Key – The name of the variable, which will be used as a placeholder in your prompts.

    • Example: agent_name, company, preferred_language

  • Value – The default value for the variable. This is the information the AI will use unless overridden dynamically during a conversation.

    • Example: "John", "ABC Corp", "English"

After entering the key and value, click Save to create the variable.

How Prompt Variables Work

Prompt variables allow you to insert dynamic values into your agent’s prompts. When the agent generates a response, it replaces the variable placeholders with the corresponding values.

Example 1 – Personalised Greeting

  • Prompt welcome message: "Hello, I am , your AI assistant. How can I help you today?"

  • Prompt Variable:

    • Key: agent_name

    • Value: "John"

  • Output: "Hello, I am John, your AI assistant. How can I help you today?"

Example 2 – Language Preference

  • Prompt: "Always make sure to respond in ."

  • Prompt Variable:

    • Key: preferred_language

    • Value: "English"

Best Practices

  • Use descriptive keys that clearly indicate the purpose of the variable (e.g., agent_name instead of name1).

  • Keep variable names lowercase and use underscores for spaces for clarity and compatibility.

 

Prompt variables make your AI prompts dynamic, scalable, and easy to personalise. By using variables thoughtfully, you can create a more engaging and context-aware experience for your users.