AI AGENT
Executes your AI agent using prompts and functions to produce a response.
Last updated
Was this helpful?
Executes your AI agent using prompts and functions to produce a response.
Last updated
Was this helpful?
ReplyCX's "Agent" action block is its most powerful feature for building intelligent, conversational AI agents. This guide will walk you through how to leverage it to handle complex user interactions, access knowledge bases, follow custom logic flows, and execute functions—all within a single, streamlined step.
The Agent block in ReplyCX empowers you to:
Provide intelligent, context-aware responses to user queries
Retrieve relevant information from connected knowledge bases
Navigate dynamic conversation flows based on user intent
Run backend functions to interact with external systems and services
To Use AI Agent block, go to Bot builder and in blocks select AI Agent block.
When using an "Agent" step, we need to configure the following:
Crafting effective prompts is essential for developing a high-performing AI agent. The prompt we provide serves as the agent’s “brain,” influencing how it interacts with users in various scenarios.
Clear Instructions: Clearly state the agent’s role and expected behaviour in different situations.
Defined Personality: Establish the tone, level of formality, and communication style the agent should use.
Knowledge Boundaries: Specify what information the agent should rely on and when to reference external data.
Context Awareness: Offer guidance on handling sensitive topics and when to escalate the conversation to a human agent.
Effective prompting keeps our agent focused—ensuring it knows what to prioritize, when to access the knowledge base, and how to maintain consistent responses. Taking the time to write clear, detailed instructions enhances both performance and simplifies your overall conversation flow.
Functions enable your agent to interact with external services to fetch or update data seamlessly.
You can either select an existing function from the dropdown menu or create a new one by going to AI Studio > Functions.
Paths help your agent manage targeted conversation flows and respond with the right actions at the right time.
Automatic Routing: The agent detects user intent and seamlessly guides the conversation down the appropriate path.
Data Collection: Define specific variables that must be captured before a path can be activated.
Natural Flow: Paths integrate naturally into the dialogue, eliminating the need for users to give precise commands.
Open the Agent step editor.
Click “Add Path” and assign it a clear, descriptive name.
Write a short description explaining when this path should be triggered.
(Optional) Specify any required variables that must be collected before activation.
Link the path to the appropriate next steps in your chatbot flow.
Human Handoff Path
Path Name: Transfer to Human Agent
Description: Activate this path when the user clearly requests to speak with a real person. Common triggers include phrases like “I want to talk to a human,” “Can I speak to an agent?” or “I need help from a real person.”
Required Variable: None
LLM Description: This path enables the AI agent to transfer the conversation to a human representative. Ensure the system accurately detects requests for human assistance and initiates the handoff promptly.
The LLM Settings section allows you to customize how the language model behaves:
AI Model: Choose which AI model (e.g., GPT-3, GPT-4) you want to use for generating responses. Each model has different capabilities, with newer models generally offering more advanced features.
Max Tokens: This setting controls the maximum length of the response. A higher token limit allows the model to generate longer responses, while a lower limit results in shorter replies.
Temperature: This adjusts the randomness of the model’s responses. A higher temperature (e.g., 0.7) makes responses more creative and varied, while a lower temperature (e.g., 0.2) makes them more deterministic and focused.
These settings help fine-tune how the AI interacts with users based on your desired response style and length.
You can learn to create a prompt .
Learn about creating a function .