Chat with us
NewAI Agents Just Got More Affordable — GetGet2.5xMore AI TokensMore AI TokensPricing
Knowledgebase/Multi AI Agent Guide/Article

How to Create and Configure AI Agents in BotSailor — Complete Guide

  • 3 Sep 2026
  • 13 min read
  • 0 views
TL;DR:
BotSailor lets you build specialized AI Agents — for multiple agents, such as sales, support, lead qualification, and more,that works simultaneously,side by side —& understand customer conversations across WhatsApp, Messenger, Instagram, Webchat and Telegram, then take real actions like checking Shopify orders, saving lead info, or handing off to a human. Set up is: create the agent, write its system prompt, add only the actions it needs, attach a knowledge base, enable it in Agent Configuration, set routing rules, then test — so every customer lands with the right specialist instead of one bot trying to do everything.

BotSailor AI Agents are specialized AI assistants that can understand customer conversations, use your business knowledge, and take real actions automatically.

You can create different agents for different responsibilities, such as:


AI AgentExample Responsibilities
Sales AgentProduct questions, pricing, recommendations, lead conversion
Support AgentOrder status, shipping, refunds, customer issues
Lead Qualification AgentCollect and qualify customer information
Order AgentOrder lookup, cancellation, delivery information
Appointment AgentBooking and appointment-related conversations


Instead of forcing one AI assistant to handle everything, BotSailor lets you build specialized agents and route each conversation to the right one.

BotSailor AI Agents can work across WhatsApp, Facebook Messenger, Instagram, Telegram, and Webchat.

What Makes Up a BotSailor AI Agent?

ComponentPurpose
System PromptDefines the agent's role, behavior, instructions, and available actions
Knowledge CampaignGives the agent access to FAQs, URLs, documents, and business knowledge
ActionsAllows the agent to perform real operations inside BotSailor and connected systems
Agent ConfigurationControls which agents are active and how conversations are routed


The AI Agent decides what should be said and what action should happen.

BotSailor executes the actual action.

For example:

Customer asks for order status → AI Agent understands the request → BotSailor retrieves the Shopify order → AI Agent explains the result to the customer

Step 1

Create an AI Agent

Go to:

Bot Manager → AI Agents → Create Agent

Configure the following options:

FieldDescription
NameRequired. Example: Sales Agent, Support Agent
SlugOptional. Generated automatically from the name if left empty
DescriptionShort internal description of the agent
System PromptMain instructions and available actions
Knowledge CampaignOptional business knowledge for the agent
StatusActive or Inactive

For example:

FieldExample
NameSales Agent
Slugsales-agent
DescriptionHandles product, pricing, and purchase-related conversations
Knowledge CampaignProduct & Sales Knowledge
StatusActive

After saving the agent, you must still enable it from Agent Configuration before it can respond to customers.

Step 2

Write the System Prompt

The System Prompt is the most important part of your AI Agent.

Think of it as instructions you would give to a new team member.

A good prompt should explain:

InstructionExample
Who the agent isYou are the Sales AI Agent for our store
Its responsibilityHelp customers choose and purchase products
How it should communicateBe friendly, concise, and professional
What it must not doNever invent pricing, stock, or discounts
When to use actionsSearch Shopify when customers ask for products
When to transferTransfer order issues to the Support Agent
When to assign a humanAssign support staff when the customer asks for a person
Example Sales Agent Prompt
        You are the Sales AI Agent for our store.
                  Help customers choose products, understand pricing,
                  and make purchase decisions.
                  Be friendly, concise, and accurate.
                  Never invent prices, stock availability, or discounts.
                  When customers ask about products, search our Shopify store.
                  If the customer asks about an existing order,
                  shipping, refund, or cancellation, transfer the conversation
                  to the Support Agent.
                
Add Actions to Your AI Agent

Inside the System Prompt editor, type:

##

BotSailor will show available actions through autocomplete.

For actions connected to a BotSailor resource, BotSailor stores the resource ID.

Example:

          ##add_label## : 12
                  ##call_http_api## : 5
                  ##transfer_agent## : 18
                

Some actions do not require an ID:

            ##shopify_get_order_details##
                  ##mark_as_solved##
                
system prompt for botsailor AI Agent

Always use the ## autocomplete whenever possible instead of manually entering IDs.

Subscriber & Automation Actions

These actions allow AI Agents to work directly with BotSailor subscriber data and automation features.

ActionWhat It Does
##add_label## : 12Adds a selected label to the subscriber
##remove_label## : 12Removes a selected label
##assign_sequence## : 8Starts a BotSailor sequence
##remove_sequence## : 8Removes the subscriber from a sequence
##save_custom_field## : 42Saves information collected from the conversation
##trigger_bot_flow## : 15Triggers a Visual Flow Builder flow
##call_http_api## : 5Calls a configured HTTP API

For example, a Lead Qualification Agent can collect the customer's name, email, company, or requirement and save the information directly into BotSailor Custom Fields.

An AI Agent can also trigger an existing BotSailor flow or start a follow-up sequence when appropriate.

HTTP API Actions

The HTTP API action allows an AI Agent to retrieve or send information through an API configured in BotSailor.

ActionPurpose
##call_http_api## : 5Executes the selected mapped HTTP API

The process works like this:

StepWhat Happens
1Customer asks a question requiring external information
2AI Agent determines that the HTTP API is needed
3BotSailor executes the API
4API result is returned to the AI Agent
5AI Agent explains the result naturally to the customer

For example:

Customer: What is the status of ticket #4825?

BotSailor can call your support API, retrieve the ticket information, and let the AI Agent explain the current status.

The agent should summarize API results naturally instead of showing raw JSON to customers.

Human Handoff and AI Agent Transfer

BotSailor supports both AI-to-AI transfer and AI-to-human handoff.

ActionPurpose
##assign_human_member## : 335Assigns the conversation to a specific team member
##assign_human_role## : 3Assigns it to an available member of a team role
##transfer_agent## : 18Transfers the conversation to another AI Agent
AI Agent Transfer vs Human Assignment
Customer NeedCorrect Action
Needs another AI specialist##transfer_agent##
Wants a specific human##assign_human_member##
Wants someone from the support/sales team##assign_human_role##
Says "I want to talk to a human"Human assignment
Changes from sales question to order supportAI Agent transfer

Human assignment respects configured business hours.
AI Agents can remain available 24/7.

Avoid Unnecessary Transfers

Simple messages should not cause agents to transfer conversations unnecessarily.

Examples include:

Hi, Hello, Thanks, Okay, Yes, No, emojis, or simple typos.

Transfer only when another specialist is actually required.

Shopify Actions

BotSailor AI Agents can work with a connected Shopify store.

First add the connected store:

##shopify_store## : 12

Shopify ##actions in botsailor

Then you can give the agent the Shopify actions it needs.

Shopify ActionWhat It Does
##shopify_store## : 12Connects the selected Shopify store
##shopify_get_order_details##Retrieves live order information
##shopify_recommend_products##Searches and recommends products
##shopify_update_order_tag## : whatsapp-connectedAdds the specified Shopify order tag
##shopify_cancel_order##Cancels an order when clearly requested
Important Shopify Rules
RuleExplanation
Connect store firstShopify actions require the Shopify Store action
Customer provides order numberDo not use the store ID as the order ID
Order lookup is liveCurrent Shopify information is retrieved when required
Product context can be reusedSize/color follow-ups can reuse previous search results
Do not invent order tagsUse the exact configured tag
Cancel only when requestedDo not cancel an order based on an unclear request

WooCommerce Actions

WooCommerce works in a similar way.

WooCommerce ActionWhat It Does
##woocommerce_store## : 12Connects the selected WooCommerce store
##woocommerce_get_order_details##Retrieves live order information
##woocommerce_recommend_products##Searches and recommends products
##woocommerce_update_order_note## : whatsapp-connectedAdds the specified order note
##woocommerce_cancel_order##Cancels an order when clearly requested

The main difference is that WooCommerce uses order notes instead of Shopify order tags.

Conversation Control Actions

These are optional actions. The AI Agent can only use them if you add them to its System Prompt.

ActionWhat It Does
##mark_as_solved##Marks a completed live chat as resolved
##block_subscriber##Blocks genuine spam
##skip_reply##Sends no customer reply when a reply is unnecessary

Important:##block_subscriber## should only be used for genuine spam such as: Scam links, Repeated junk, Bot flooding, Clearly malicious messages.
A legitimate customer should not be blocked simply because they are angry or rude.

Step 3

Enable and Configure Your AI Agents

Creating an AI Agent does not automatically enable it.

Open:

Agent Configuration

Then configure your agents.

ConfigurationWhat to Do
Active AgentsEnable the agents that should work on this bot
Routing RulesDefine which agent handles different customer topics
Intent MappingOptionally map Training Campaign intents to agents
Business HoursConfigure availability rules for human assignment

Until an AI Agent is enabled here, it will not respond to customers.

Configure Multi-Agent Routing

One of the biggest advantages of BotSailor AI Agents is the ability to create specialized agents that work together.

For example:

Customer TopicAssigned Agent
Product questionsSales Agent
PricingSales Agent
Product recommendationsSales Agent
Order trackingSupport Agent
Shipping issuesSupport Agent
Refund questionsSupport Agent
Lead qualificationLead Qualification Agent
multi ai agent configuration and rule adding

A conversation can also move from one specialist to another.

Example
ConversationAgent
"I need a black shirt."Sales Agent
Agent searches ShopifySales Agent
"Do you have XL?"Sales Agent
"Actually, where is my previous order?"Transfer
Order lookupSupport Agent
Customer requests a personHuman Support

This lets businesses build a team of specialized AI Agents rather than relying on one AI assistant for every type of conversation.

Knowledge Campaign

You can attach a Training Campaign to an AI Agent so it can use your business information while answering customers.

A Knowledge Campaign can contain:

Knowledge TypeExample
FAQsShipping policy, refund policy, common questions
URLsWebsite pages and documentation
FilesProduct guides, manuals, business documents
Business InformationServices, pricing rules, company information
BotSailor knowledgebase, content, url, file, media, google sheet, API

The difference between the System Prompt and Knowledge Campaign is important:

System PromptKnowledge Campaign
Defines what the agent should doProvides information the agent can use
Controls behaviorSupplies business knowledge
Defines available actionsSupports the answers
Higher prioritySecondary to System Prompt instructions

If information in the Knowledge Campaign conflicts with the System Prompt, the System Prompt takes priority.

Example: Sales and Support AI Agent Setup

Here is a simple example of a Shopify business using two specialized agents.

Sales Agent

              You are the Sales AI Agent for our store.
                                                                          Help customers choose products, sizes, and prices.
                                                                          Be short, friendly, and accurate.
                                                                          Never invent stock, prices, or discounts.
                                                                          Search our Shopify catalog when customers ask for products.
                                                                          If the customer asks about an existing order,
                                                                          shipping, refund, or cancellation, transfer to Support.##shopify_store## : 12
                                                                          ##shopify_recommend_products##
                                                                          ##add_label## : 12
                                                                          ##save_custom_field## : 42
                                                                          ##transfer_agent## : 18
                                                                        
Sales Agent Capabilities
CapabilityAction
Search products##shopify_recommend_products##
Add lead label##add_label##
Save customer information##save_custom_field##
Transfer order issues##transfer_agent##

Support Agent

                You are the Support AI Agent.
                                                                            Help customers with orders, shipping, tracking, and refunds.
                                                                            Always check live order information before answering
                                                                            questions about an order.
                                                                            If the customer asks to cancel an order,
                                                                            cancel only after the request is clear.
                                                                            If the customer requests human assistance,
                                                                            assign the support team.
                                                                            Mark the conversation solved when the issue is complete.
                                                                            Block only genuine spam.##shopify_store## : 12
                                                                            ##shopify_get_order_details##
                                                                            ##shopify_update_order_tag## : whatsapp-connected
                                                                            ##shopify_cancel_order##
                                                                            ##assign_human_role## : 3
                                                                            ##mark_as_solved##
                                                                            ##skip_reply##
                                                                            ##block_subscriber##
                                                                          
Support Agent Capabilities
CapabilityAction
Check live orders##shopify_get_order_details##
Update order tag##shopify_update_order_tag##
Cancel orders##shopify_cancel_order##
Assign human support##assign_human_role##
Resolve completed chats##mark_as_solved##
Block genuine spam##block_subscriber##

Then configure routing:

Routing RuleAgent
Product, price, buy, recommendationSales Agent
Order, shipping, tracking, refundSupport Agent

Now if a sales conversation changes into an order-support conversation, the Sales Agent can transfer the customer directly to Support.

How AI Agent Actions Work

Shared Inbox

Shared inbox- botsailor ai agent transfer and label add

The AI model does not directly execute BotSailor operations.

The process is:

StepProcess
1Customer sends a message
2AI Agent understands the request
3AI Agent decides whether an action is required
4BotSailor executes the action
5Results are returned to the AI Agent when required
6AI Agent replies naturally to the customer

For example:

Customer Where is order #12542?

AI Agent Determines that Shopify order lookup is required.

BotSailor Retrieves live Shopify order information.

AI Agent "Your order has been shipped and is currently in transit."

This is what allows BotSailor AI Agents to do more than simply generate text responses.

Best Practices for Writing AI Agent Prompts
Best PracticeRecommendation
Give each agent a clear roleCreate specialized agents for different responsibilities
Explain when actions should runDon't rely only on action tags
Limit available actionsGive each agent only the tools it needs
Use ## autocompleteAvoid entering incorrect IDs manually
Connect ecommerce store firstAdd Shopify/WooCommerce store before related operations
Use live informationNever invent order status, stock, or API information
Avoid raw JSON responsesLet the AI explain API results naturally
Control agent transfersTransfer only when another specialist is required
Separate AI and human handoffTransfer for AI; assignment for humans
Never self-transferAn agent should never transfer to itself
Limit transfersMaximum one AI Agent transfer per customer message

Test Your AI Agents Before Going Live

Always test your AI Agent with different types of customer messages.

Test MessageWhat You Should Verify
"Hello"Agent replies normally without unnecessary transfer
"Do you have black shirts?"Product search works
"Does the second one come in XL?"Conversation context works
"Where is my order?"Agent asks for required order information
"My order is #10542"Live order lookup works
"I want to talk to a human"Human assignment is used
Customer changes topicCorrect specialist receives the conversation
Spam messageSpam rules work correctly
Angry real customerCustomer is not incorrectly blocked
Irrelevant messageSkip Reply behaves correctly if enabled

Complete AI Agent Action Reference

CategoryActionPurpose
Subscriber##add_label## : 12Add label
Subscriber##remove_label## : 12Remove label
Automation##assign_sequence## : 8Start sequence
Automation##remove_sequence## : 8Stop sequence
Data##save_custom_field## : 42Save customer information
Automation##trigger_bot_flow## : 15Trigger visual bot flow
Integration##call_http_api## : 5Execute HTTP API
Human##assign_human_member## : 335Assign specific human
Human##assign_human_role## : 3Assign team role
AI Agent##transfer_agent## : 18Transfer to another AI Agent
Conversation##mark_as_solved##Resolve conversation
Conversation##skip_reply##Send no reply
Conversation##block_subscriber##Block genuine spam
Shopify##shopify_store## : 12Connect Shopify store
Shopify##shopify_get_order_details##Retrieve order details
Shopify##shopify_recommend_products##Recommend products
Shopify##shopify_update_order_tag## : whatsapp-connectedUpdate order tag
Shopify##shopify_cancel_order##Cancel order
WooCommerce##woocommerce_store## : 12Connect WooCommerce store
WooCommerce##woocommerce_get_order_details##Retrieve order details
WooCommerce##woocommerce_recommend_products##Recommend products
WooCommerce##woocommerce_update_order_note## : whatsapp-connectedUpdate order note
WooCommerce##woocommerce_cancel_order##Cancel order

Final Thoughts

BotSailor AI Agents combine AI-powered conversations with real business actions.

The complete setup is straightforward:

Create AgentWrite System PromptAdd ActionsAttach KnowledgeEnable AgentConfigure RoutingTest

You can create specialized agents for sales, support, ecommerce, lead qualification, order management, and other customer-facing roles.

These agents can use your business knowledge, save customer information, trigger automations, call external APIs, search products, check orders, transfer conversations to another AI specialist, and assign human team members when necessary.

For the best results, keep every agent focused on a clear responsibility and give it only the actions it actually needs.

With BotSailor's multi-agent system, you are not limited to building a chatbot that simply answers questions.

You can build an AI workforce that understands conversations, takes real actions, and routes every customer to the right specialist.

Fatema Khatun

Fatema Khatun

Team
FAQ

Frequently Asked Questions

Find answers to common questions about this topic

A BotSailor AI Agent is a specialized AI assistant that understands customer conversations, uses your business knowledge, and performs real actions like checking orders or transferring conversations — instead of just generating text replies.

Go to Bot Manager → AI Agents → Create Agent, then fill in the Name, Description, System Prompt, and optional Knowledge Campaign. After saving, you must still enable it in Agent Configuration before it can respond to customers.

The System Prompt defines an AI Agent's role, responsibilities, communication style, and which actions it's allowed to use — similar to instructions you'd give a new team member.

Yes. BotSailor supports multiple specialized agents — such as a Sales Agent, Support Agent, and Lead Qualification Agent — that each handle a different type of customer conversation.

BotSailor uses Agent Configuration routing rules to match customer topics (like pricing or order tracking) to the correct agent, and can transfer a conversation to another agent mid-chat when the topic changes.

AI Agents can add labels, save custom fields, trigger automation sequences, call HTTP APIs, look up Shopify or WooCommerce orders, transfer to another agent, assign a human teammate, or mark a conversation as solved.

When a customer asks for a person, the AI Agent can assign the conversation to a specific team member or an available member of a team role, respecting configured business hours — while AI Agents themselves stay available 24/7.

Yes. After connecting the store, an AI Agent can retrieve live order details, recommend products, update order tags or notes, and cancel orders when a customer clearly requests it.

A Knowledge Campaign gives an AI Agent access to FAQs, URLs, files, and business information it can reference when answering customers. If it conflicts with the System Prompt, the System Prompt always takes priority.

Yes. Creating an agent does not activate it automatically — it must be enabled from Agent Configuration, where you also set routing rules and business hours, or it will never respond to customers.