AgentFlow empowers your business to deliver seamless, AI-driven customer interactions by configuring and deploying AI agents tailored to your unique needs. With AgentFlow, you can automate responses to enquiries, qualify leads efficiently, and optimize operational costs — all while maintaining control over your AI agent’s behavior through simple, flexible configurations. Whether you’re in sales, support, or operations, AgentFlow helps your team work smarter and scale conversations with ease.
Why use AI agents in AgentFlow
AgentFlow helps teams streamline customer conversations and reduce manual tasks by assigning AI agents to handle common interactions. Here’s how it makes a difference:
Pain points we are solving with this feature:
- Offer 24/7 customer support without extra staffing: AI agents can handle enquiries outside of business hours, reducing the need for a round-the-clock support team while keeping response times fast.
- Accelerate sales and support cycles: By automating first-touch responses and lead qualification, AI agents help speed up your workflows and get users to the right outcome faster.
- Lower operational costs through automation: Let AI handle repetitive or low-priority messages so your team can focus on high-value conversations.
- Control when AI participates in conversations: Set conditions for when the AI agent should enter, exit, or hand over to a human — giving you full control over the customer experience.
Common use cases:
- Handle FAQs automatically across channels: Set up your AI agent to respond to common customer questions using a connected knowledge base, keeping replies consistent and accurate.
- Qualify leads before handing them off: Use AI to score and filter incoming enquiries, so your team only engages with the most relevant prospects.
- Tailor AI behavior to different workflows: Adjust tone, logic, and actions to suit different teams or objectives — from customer support to pre-sales outreach.
- Trigger AI interactions with Flow Builder: Insert AI agents into automated flows that react to customer messages, ensuring the right response at the right time.
Accessing AgentFlow page
You can follow the steps below to access the AgentFlow page:
- Click on the
icon on the left navigation bar to go to the SleekFlow AI page
- In the SleekFlow AI page, Click “AgentFlow” on the top navigation menu
Creating your AI agent
You can follow the steps below to create your AI agent in AgentFlow:
- In the AgentFlow page, click on the “Create new agent” button on the top right corner
- A “Create AI agent” modal will appear
- You can choose a template to start, or create your own from scratch. We currently support the following templates that serve different purposes:
-
Basic support:
- Use this if your goal is to handle common customer enquiries quickly and consistently. This template is ideal for support teams that want to automate FAQ replies or manage high-volume conversations with minimal setup
- Best for: Customer service or help desk use cases
- Focus: Speed and efficiency
- Available actions:
- Send message
- Exit conversation
- Add labels
-
Sales growth:
- Choose this template if you want to qualify leads and support sales conversations. It’s designed for sales teams looking to automate lead scoring or early-stage prospecting before handing off to a human agent.
- Best for: Lead qualification and pre-sales engagement
- Focus: Quality and conversion potential
- Available actions:
- Send message
- Exit conversation
- Calculate lead score
- Add labels
-
Custom:
- If your workflow doesn’t fit neatly into the templates above, you can build a fully custom AI agent. This option gives you full control over what actions are available and how the agent should behave, making it suitable for more complex or multi-team scenarios.
- Best for: Teams with specific workflows or advanced automation needs
- Focus: Flexibility and customization
- Available actions: Configurable based on setup
-
Basic support:
- Once you have selected the template, you will be required to fill in the AI agent’s name. You can also fill in the description of this AI agent to provide context on its purpose, intended use case, or any specific instructions your team should be aware of.
Configuring your AI agent
Once you have created your AI agent, you will be redirected to the set up page of the agent you have created.
To manage your AI agent’s configurations, you can click “Manage” to update its actions, instructions, or linked knowledge base at any time.
Here is a list of settings you can configure within an AI agent:
- Knowledge base: Link relevant content the AI can reference to generate accurate replies.
- Instructions: Define your agent’s objective, set a welcome message, and add guardrails to guide how the agent should behave in different scenarios.
- Actions: Select what the AI can do in a conversation, such as send messages, score leads, or exit.
- Flow deployment: Deploy your AI agent in Flow Builder to start using it. The agent will only respond in conversations once it’s added to an active flow.
Configuring AI agent's Knowledge base
To generate accurate and relevant replies, your AI agent must be connected to a knowledge base. This knowledge base acts as the central source of truth the agent uses to understand your business, answer customer enquiries, and take appropriate actions.
All AI agents in SleekFlow use the Global knowledge base, which stores all uploaded data sources shared across your workspace. When you add content through an individual AI agent, you’re uploading it to the Global knowledge base — ensuring consistency across agents.
To connect a knowledge base to your AI agent:
- In the AgentFlow page, click “Manage” on the AI agent card
- Click “Knowledge base” on the left-sided menu
- You will be redirected to the Knowledge base of the agent
- On this page, you can:
- Choose existing data sources from the Global knowledge base
- Or click “Add source” to upload new content
- A pop-up modal will appear. You can import content by:
- Uploading a file (.PDF, .DOCX, .XLSX, or .JPG)
- Importing from a website URL
- Selecting from existing entries in the Global knowledge base
Uploading files to Global knowledge base
Once you have selected “File upload” in the previous step, you can then follow the steps below to upload files to AI agent’s Knowledge base:
- In the “Import file to Global knowledge base” page, you can upload files in supported formats such as .DOCX, .PDF, .XLSX, or .JPG. Simply drag and drop your files, or select them from your device. Make sure your files meet the required format and size guidelines.
- Once you have reviewed the uploaded files, click “Import”
ℹ️ Note:
When you upload a file from within the AI agent’s Knowledge base page, the content is stored in your e. It will be automatically linked to the AI agent you’re configuring, and can be reused across multiple agents in your workspace.
Learn more about managing the Global knowledge base in our Help Center article.
Importing website URL to Global knowledge base
Once you have selected “Website URL” in the previous step, you can then follow the steps below to import website URL to AI agent’s Knowledge base:
- In the “Import from website URL” page, enter the full public parent URL of the website you want to add. Parent URL refers to the main web page from which a linked article or subpage originates. It helps you identify the broader source or website domain your content is pulled from.
- Once you have entered the parent URL, click “Scan URL”
- The system will fetch all pages under the parent URL
- Select the pages you wish to import to the Global knowledge base by checking the box to the left of each page name.
- Once you have reviewed the URL sources you selected, click “Import”
ℹ️ Note:
When you import a website URL from within the AI agent’s Knowledge base page, the content is stored in your Global knowledge base. It will be automatically linked to the AI agent you’re configuring, and can be reused across multiple agents in your workspace.
Learn more about managing the Global knowledge base in our Help Center article.
Selecting data sources from Global knowledge base to an AI agent
Once you have selected “Selected from Global knowledge base” in the previous step, you can then follow the steps below to import website URL to AI agent’s Knowledge base:
- In the “Select data sources for this AI agent” page, you will see the existing data sources in your Global knowledge base
- Click on the checkbox next to the data source you would like to link this AI agent to
- Once you have reviewed the selected data sources, you can click “Select”
Configuring AI agent's Instructions
The Instructions tab defines how your AI agent should behave during conversations — including its purpose, and how to respond in sensitive or unexpected situations. These settings help your AI agent stay aligned with your brand and ensure it engages customers effectively and responsibly.
To configure AI agent’s instructions, you can follow the steps below:
- In the AgentFlow page, click “Manage” on the AI agent card
- Click “Instructions” on the left-sided menu
- You will be redirected to the “Instructions” page
- In this page, you can configure the following:
-
Instructions (overall behavior)
- Define the AI agent’s objective and provide detailed context about your business. You can specify who the agent represents, what types of enquiries it should handle, and how it should communicate (e.g. tone, language style, level of detail). The more specific your instructions, the more accurate and on-brand the AI’s responses will be.
- Example: “You are a friendly and knowledgeable assistant representing Cat Paradise. Our company provides premium cat grooming, boarding, and wellness services. When introducing yourself, say: ‘Hi! I’m from Cat Paradise. I’m here to help you with any questions about our services or products.’ You assist customers with booking spa sessions, explaining our service packages, and answering product-related questions. Use a warm, helpful tone and keep responses concise but informative.”
-
Welcome message
- Write a greeting that appears when a customer first interacts with your AI agent. Use this to set expectations and establish tone.
- Example: “Hi there! I’m here to help with anything about our cat care services, grooming bookings, or product info 🐾”
-
Guardrails
- Guardrails help your AI agent identify and respond appropriately to sensitive or complex topics. They guide how the agent should steer the conversation when certain types of input are detected — but they do not trigger additional actions like exiting or handing off the chat. Each guardrail includes:
- Observe for: Describe what the AI should watch out for. (For example: refund requests, pricing disputes, complaints, personal information)
- How to react: Specify how the AI should respond using tone, phrasing, or clarification questions (For example: acknowledge the concern politely and ask a follow-up question to gather more details)
- You can add multiple guardrails based on different types of sensitive content. For example:
-
Example 1: Order issue
- Observe for: “Questions about refund status or order disputes.”
- How to react: “Apologize for the inconvenience and ask the customer to clarify their order number so you can better understand the issue.”
-
Example 2: Damaged product
- Observe for: “Mentions of product defects or damaged items.”
- How to react: “Acknowledge the issue with empathy and ask the customer to describe the problem or provide a photo if possible.”
-
Example 3: Data privacy concern
- Observe for: “Questions about personal data, privacy, or account security.”
- How to react: “Reassure the customer that their data is protected and direct them to review your company’s privacy policy for more details.”
-
Example 1: Order issue
- To add a guardrail, click “Add guardrail”, fill in both fields
- Guardrails help your AI agent identify and respond appropriately to sensitive or complex topics. They guide how the agent should steer the conversation when certain types of input are detected — but they do not trigger additional actions like exiting or handing off the chat. Each guardrail includes:
-
Instructions (overall behavior)
- Once you’ve finished configuring your AI agent’s instructions, you can test how it responds using the preview panel on the right.
Note: You’ll need to have at least one fully trained knowledge base source before testing is available. If no source is ready, the test panel will remain inactive.
- Once you are done with the configurations, click “Publish” on the top right corner to save the changes
Configuring AI agent's Actions
Actions define what your AI agent can do during a conversation — such as replying to customers, scoring leads, or exiting a chat. Each action is powered by a prompt that tells the agent how to respond. You can review and customize these prompts to match your workflow, brand tone, and business objectives.
You can access the AI agent’s Action page by following the steps below:
- In the AgentFlow page, click “Manage” on the AI agent card
- Click “Actions” on the left-sided menu
- You will be redirected to the “Actions” page
- In this page, you can configure the details of each available action for your AI agent:
- Send message and Exit conversation are required actions — they are enabled by default and cannot be turned off.
- For optional actions like Calculate lead score, and Add labels, you can use the toggle switch to enable or disable them based on your agent’s role.
- Click on any action to view and customize the prompt that controls how the AI performs that task. This lets you fine-tune responses, scoring logic, and internal behavior to match your workflow.
“Send message” action
This is the core action that allows your AI agent to respond to incoming customer messages using the connected knowledge base. It is always enabled and runs automatically when a contact sends a message.
In this action, you can configure the following:
-
Response type: Choose how your AI agent prioritizes its replies:
- Prioritize speed – Uses basic knowledge retrieval to generate fast responses. Ideal for straightforward questions or high-volume support.
- Prioritize response quality – Uses advanced checks and personalization to generate more thoughtful, context-aware responses. Best for complex or sales-related enquiries.
-
Message tone of voice: Define how the AI should sound and what kind of behavior it should follow when replying to customers. This prompt guides the AI’s reply style, fallback handling, and content framing. You can include tone descriptors such as:
- Friendly and casual
- Polite and professional
- Conversational but confident
-
Trigger condition: Defines when this action is triggered during the conversation — for “Send message,” it runs automatically when a customer sends a message.
- This action automatically runs when the contact sends a message (#Run when: Contact sends a message)
- This condition is fixed and cannot be edited
- Once you have completed configuring the instructions of the AI agent, you can test your AI agent on the right screen to see how it responds
- Once you are done with the configurations, click “Publish” on the top right corner to save the changes
💬 Recommended setup Basic Support agents
Use this setup to handle FAQs and common support enquiries efficiently.
- Response type: Prioritize speed
- Tone of voice: Friendly and polite
💲 Recommended setup for Sales Growth agents
Use this setup to engage leads and uncover sales intent through meaningful dialogue.
- Response type: Prioritize response quality
- Tone of voice: Confident and conversational
“Calculate lead score” action
This action allows your AI agent to evaluate each lead and assign a score between 0 and 100 based on message content, intent, urgency, tone, and fit. It helps your team identify high-quality leads, prioritize follow-ups, and streamline sales qualification.
This action is included by default in the Sales Growth template, but can also be toggled on manually when using other templates like Basic Support.
In this action, you can configure the following:
- Trigger condition: The lead score is calculated automatically whenever the contact replies to the AI agent. You don’t need to configure this manually.
-
Scoring criteria and weights: Define the factors your AI should evaluate when scoring a lead. Each criterion is assigned a percentage weight, which determines how much it contributes to the final score.
- How scoring weights work:
- The AI evaluates each selected criterion based on the customer’s message.
- Each criterion contributes up to its assigned weight toward the total score.
- For example, if “Intent and interest level” is weighted at 40%, it can contribute up to 40 points out of 100.
- The total weight across all criteria must equal exactly 100% to ensure the AI calculates a complete score.
- If a criterion doesn’t apply to your workflow, you can remove it by clicking the “–” button in the top-left corner of the card. You must keep at least 1 active criterion for the lead score to be calculated.
- How scoring weights work:
-
Default example criteria (editable):
- Intent and interest level – Is the lead asking about features or making comparisons?
- Buying signals – Are they inquiring about pricing or expressing urgency?
- Depth and specificity – Are they asking focused, insightful questions?
- Engagement tone – Are they enthusiastic, hesitant, or neutral?
- Customer fit – Does their role or profile align with your ideal customer persona?
- If you need to add more criteria, you can click “Add criteria”
- Once you have completed configuring the instructions of the AI agent, you can test your AI agent on the right screen to see how it responds
- Once you are done with the configurations, click “Publish” on the top right corner to save the changes
⚠️ Important:
The total weight across all lead scoring criteria must equal 100%.
You can adjust the importance of each criterion by changing its percentage, or set it to 0% if you don’t want it to affect the score. The system will not calculate a lead score unless the total adds up to exactly 100%.
“Exit conversations” action
This action allows your AI agent to leave the conversation once a specific condition is met. Exit conditions are based on signals within the conversation — such as certain keywords or low confidence — rather than customer properties outside the chat. This action is always enabled and ensures smooth handoff or clean exits when appropriate.
In this action, you can configure the following:
- Exit conditions: Define specific scenarios where the AI should end the conversation. You can create multiple conditions using natural language triggers such as:
- “Speak to human”
- “Confidence is low”
- “No matching answer found”
- Each condition includes:
- Condition name – A label to help you identify the rule
- Exit condition – A short explanation of what triggers this exit (For example: when the AI is unsure, or the user explicitly asks to talk to a person)
- Condition type – Choose how the exit should be triggered:
- Exit based on message signal: Triggered when specific keywords or patterns appear in the customer’s message (e.g. “Speak to human”, “No matching answer found”)
- Exit based on message signal: Triggered when specific keywords or patterns appear in the customer’s message (e.g. “Speak to human”, “No matching answer found”)
- Exit based on lead score: This condition is triggered when the contact’s lead score meets a specific threshold. The lead score is calculated based on the criteria you’ve configured under the Calculate lead score action — such as intent, urgency, tone, or customer fit. You can set the AI agent to exit the conversation when the score:
- is less than a value
- is more than a value
- is between two values
Use this condition to smoothly hand off hot leads or end conversations that don’t meet your qualification thresholds.
- Once you are done with the configurations, click “Publish” on the top right corner to save the changes
Here are some of the examples of exit conditions:
Condition name | Exit condition example |
Confidence is low | When the AI agent can’t answer with confidence based on the knowledge base |
Speak to human | When customer mentions they want to talk to a human agent |
End of task | When the AI agent has completed a set of actions of fulfilled its task |
Hot lead | When the lead shows strong buying intent or reaches a high lead score threshold |
Cold lead | When the lead shoes low to no interest, based on the lead score calculate from the criteria set in the “Calculate lead score” action. This may also apply when the customer becomes unresponsive after initial engagement. |
💬 Tips for setting up this action for Basic Support agents
Set exit conditions for when the AI cannot answer accurately or when a customer asks to speak to a human.
- Recommended conditions: “Confidence is low”, “Speak to human”
- Consider using keyword detection (e.g. “agent”, “real person”, “help now”) to trigger exits — this is commonly used in basic FAQ bots.
- Use polite, helpful language to let customers know the conversation is ending or being redirected.
💲 Tips for setting up this action for Sales Growth agents
Configure exit points for when a lead has been qualified or if further nurturing should be handled by a human.
- Recommended conditions: “Lead qualified”, “Ask for pricing”
- You can also exit after scoring the lead to keep the handover seamless.
Configuring AI agent's Flow deployment
Once your AI agent is configured, you can deploy it inside a conversation flow to start using it with real customers. The “Flow deployment” tab helps you view and manage all the flows where your AI agent is currently active.
To configure your AI agent’s Flow deployment, you can follow the steps below:
- In the AgentFlow page, click “Manage” on the AI agent card
- Click “Flow deployment” on the left-sided menu
- You will be redirected to the Flow deployment page, where you will see a list of flows where the agent is currently in use. You’ll find details such as:
- Flow name
- Status (Active / Inactive)
- Logs
- Created by / Updated by
- Last updated time
If your agent hasn’t been added to any flows yet, the list will be empty and you’ll see an option to create new flow.
You can follow the steps below to create a flow in Flow Builder and deploy your AI agent:
- In Flow Builder’s editor, click on the “AgentFlow (Beta)” action node to open up its form, which will appear on the right side of the screen
- Select the AI agent you would like to use in this flow
- Select the WhatsApp channel
- Set triggers to determine when the AI joins the conversation
- Define exit conditions and fallback actions to control handover logic
- Click “Save” and then Publish your flow to make the deployment live
Writing effective prompts and instructions
AgentFlow relies on natural-language prompts to guide your AI agent’s behavior across various configurations — from overall instructions to guardrails, actions, and exit conditions. Writing specific and intentional prompts ensures your agent responds accurately, sounds on-brand, and understands how to navigate different types of conversations.
Use these best practices to craft strong prompts, with examples and where they apply:
1. Be specific about your business context
Providing clear context about your company, what the agent represents, and what it should handle helps your AI agent understand its role and generate relevant replies. This leads to more accurate and helpful conversations.
- Where to apply: Instructions (overall behavior)
- ✅ Good: “You are a support agent for Cat Paradise, a premium cat grooming and spa service. Help customers book appointments and answer grooming-related questions.”
- 🚫 Avoid: “You’re a support assistant. Help people.”
2. Define tone, style, and level of detail
Stating how your AI agent should sound and how much detail it should give ensures consistency with your brand voice and avoids overly long or overly vague answers.
- Where to apply: Instructions, Send message
- ✅ Good: “Use a friendly and casual tone.”
- 🚫 Avoid: “Just sound nice.”
3. Guide how the agent should behave in different situations
Good prompts don’t just define what to say — they clarify how the agent should react to uncertainty, edge cases, or sensitive topics. This helps reduce off-topic replies and improves reliability.
- Where to apply: Instructions, Guardrails, Send message
- ✅ Good: “If the customer asks something not covered in the knowledge base, politely ask for clarification. Avoid referencing external sources or assumptions. Provide as much business-specific context as possible to ensure accurate, on-brand responses.”
- 🚫 Avoid: “If unsure, figure it out.”
4. Use clear, structured prompts in actions
For each action, write prompts that describe what output is expected. This helps your AI agent perform consistently across conversations.
- Where to apply: Send message, Calculate lead score,
- ✅ Good: Send message: “Answer using the knowledge base in a helpful tone. If the answer is unclear, ask the customer to clarify.”
- 🚫 Avoid: “Just write a response” or “Leave a note.”
5. Write precise exit condition
The Exit condition field tells the AI what kind of message or signal to look out for before exiting the conversation. This isn’t the message the AI will send — it’s a natural-language rule that describes when the exit should be triggered.
Writing a clear, specific condition helps the AI detect user intent accurately and prevents it from exiting too early or staying in the conversation longer than needed.
- Where to apply: Exit conversation → Exit condition field
-
✅ Good:
- “Exit when the user says they want to talk to a human agent.”
- “Exit if the message includes phrases like ‘cancel’, ‘stop’, or ‘end chat’.”
-
🚫 Avoid:
- “Leave when it makes sense.”
- “Say goodbye.”
- “End the chat.”
6. Avoid vague or open-ended instructions
Instructions like “respond nicely” or “help the customer” don’t provide enough context. Your AI agent performs best when it has a clear purpose, role, and constraints.
- Where to apply: All prompt fields
- ✅ Good: “You are a support assistant helping customers understand product features. Keep answers short and friendly, and ask for clarification when needed.”
- 🚫 Avoid: “You’re here to help. Just be helpful.”