Skip to main content

Configure AI agent conversations

AI agent conversations let your users interact naturally with your agent by asking questions and getting relevant answers or help. Instead of building complex rules, you set up conversations using simple prompts and instructions.

Our prompt-based configuration makes it easy to create flexible, human-like dialogues that can handle anything from basic questions to more advanced tasks. You only add extra logic when needed, keeping the setup simple and efficient.

This approach is more efficient because it:

  • Understands user intent more effectively
  • Responds with contextual relevance
  • Eliminates the need for complex scripting or flowchart-like designs

Key components of the AI Agent conversation

The conversation design is modular and built with flexibility in mind. You can configure the following:

  • Start triggers – Detect user intent and launch the appropriate conversation.
  • Prompts – Define how the AI agent interacts, asks questions, and provides answers.
  • Actions – Collect user inputs, handle fallback scenarios, or trigger backend logic.
  • Variables – Store user inputs and context to maintain continuity throughout the conversation.
  • Workflows – Integrate with backend systems to fetch, process, or update data.

Setup agent conversations

You can set up agent conversations using Start trigger and Prompts, which define how and when the AI agent initiates and responds during a conversation.

To set up agent conversations, follow these steps:

To create an agent from scratch, follow these steps:

Step 1: Create a new Agent

  1. Navigate to Automation > AI agent lab > Agents > + New agent.

  2. By default, the agent name is auto-filled. To rename the agent, click the Edit icon next to the name.

  3. Enter the agent’s name and click the Save icon.

  • The newly created agent will display under the Agents section.

Step 2: Design Conversation

  1. In the Start trigger and Prompts section, define how the conversation should begin and what the agent should say or ask.

    image

Step 3: Add Actions in Prompt section

Within prompts, use Get Input actions to collect user information such as name, email, or booking details.

Step 4: Call workflow

Use the Call Workflow action to trigger backend logic. Workflows allow the agent to fetch or store data by integrating with APIs or databases to enable dynamic and automated conversations.

Step 5: Variables

Store user responses or fetched values in variables. These variables can be reused across the conversation for data handling.

Step 6: Test the Agent

Use Copilot or Test Suites to simulate user conversations. Verify how the agent responds, whether logic is working correctly, and if data integrations behave as expected.

Step 7: Preview and Deploy

Once the agent behavior is validated, save all configurations. The agent is now ready to be published on channels such as WhatsApp, Voice, and other channels.

Best practices for creating an Agent

Designing an Agent is important in the conversation, data handling, actions, and testing. Follow these best practices while creating agents:

  1. Define the purpose clearly

    • Identify the key goals the agent should achieve (example, booking, support, FAQs).
  2. Start with a Conversation design

    • Use the Start trigger to set user expectations with a clear welcome message.
    • Define prompts for common use cases with static and dynamic prompts.
    • Guide users step-by-step using friendly and conversational language.
  3. Use Prompts wisely

    • Use Static Prompts to display information without expecting input.
    • Use Get Input prompts to collect user data (name, email, phone, Location).
    • Keep prompts short and focused, avoid asking multiple questions in one message.
  4. Add Workflows for dynamic logic

    • Use Call Workflow actions to fetch or push data from/to APIs or databases.
    • Ensure workflows are modular and reusable across different agents or flows.
    • Handle API errors and add fallback responses
  5. Use Variables

    • Store user responses or API outputs in variables and reuse them across the conversation.
    • Personalize conversations using variables (example, "Hi {{user_name}}").
    • Follow naming conventions (example, user_name, booking_id) to maintain clarity.
info

Use Help button on the top. Help section provides a sample structure that shows how a conversation should be designed. It includes examples of how to define start triggers and write prompts. This helps users understand how to structure conversations.

Start trigger

A Start trigger is the initial message that initiates a conversation between the AI agent and the user. It acts as the entry point that tells the AI agent when to begin a specific conversation.

Start trigger ensures that the right conversation is initiated at the right time. When a user's message matches the trigger (example, a keyword or intent), the configured conversation will be triggered.

Types of inputs that can be used as Start Triggers:

  • Phrases – Direct user expressions like "I want to book a demo".
  • Intents – User goals, such as "Loan inquiry" or "Product help".
  • Keywords – Specific terms such as "support", "pricing", "Loan inquiry", or "Product help", "apply now".

Examples of start triggers:

  • When the user says they want to apply for a loan, such as: "I want to apply for a loan", "Help me get a loan", "Apply for personal loan", or similar variations.

  • When the user wants to cancel a flight ticket, such as: "I want to cancel my flight ticket", "Help me cancel my flight", "Need to cancel my plane ticket", "Cancel my trip booking", or similar variations.

Prompts

A prompt is a set of instructions that tells the AI agent what to say or do during a conversation. It guides the conversation flow and helps the agent respond appropriately based on the user’s input

In conversation design, a prompt can be a question, confirmation, statement, call to action (Get input, call worflow, or call fallback), or Variables.

Prompts can be used to:

  • Ask the user a question and wait for a reply
  • Show information or messages
  • Trigger backend tasks (like calling an API or updating a database)
  • Validate user inputs and handle errors

A well-written prompt keeps the conversation clear and natural. Key elements include:

  • Tone: Tone sets the interaction between AI agent and user. Examples:
    * Friendly: "Hey there! What can I help you with today?"
    * Professional: "Please provide your invoice number to proceed".
  • Clarity: Use simple, direct language. Avoid technical jargon, complex phrases, or ambiguous terms. Clear vs Vague example:
    • When would you like to schedule your appointment? (Clear and actionable)
    • Provide a preferred timeslot. (Vague and robotic)
  • Context: Give users enough context to understand why you are asking something. This makes the conversation feel logical and purposeful. Example: "To check your order status, I will need your order ID".

Best practices

While writing the prompts, consider the following best practices:

  • Keep it short and conversational: Use simple, friendly language that feels natural to the user.
  • Handle unexpected inputs: Always include fallback prompts to guide users back on track if they give incorrect or unclear responses.
  • Validate user input: Use clear instructions and examples to show users the correct format. Example: Enter a 10-digit phone number with country code (example, +91 9876543210).
  • Use quick replies or buttons: Help users respond easily and reduce mistakes by offering predefined response options.

Below is a sample screenshot showing how prompts are written:

drawing drawing drawing

Add Actions to your AI agent prompts

Actions let the agent collect input, run workflows, or handle fallbacks—making conversations more dynamic and goal-driven.

In the Prompt section, you can add the following actions:

  • Get input: Collect specific information from the user, such as their name, phone number, and email.
  • Call workflow: Trigger an external process or function, such as retrieving data from a database, calling an API, or executing backend operations, allowing the AI agent to handle complex tasks.
  • Call a Fallback: Trigger a predefined fallback action when the AI agent is unable to understand or fulfill the user’s request.
tip

You can quickly access the above actions by using the@ shortcut key.

drawing