Migration guide

How to upgrade a rules-based chatbot to an AI agent

The short answer

Upgrading a rules-based chatbot to an AI agent means replacing intents, training phrases and decision trees with a model that answers from your approved content and calls tools such as order lookup or booking. Keep scripted flows for regulated steps, test against real past conversations, and roll out by channel with human handoff in place.

ConceptRules-based chatbotAI agent
Understanding the userIntents trained on example phrases, such as training phrases in Dialogflow or trigger phrases in Copilot Studio topicsA language model reads the full message and conversation history
Capturing detailsEntities and slot filling with fixed promptsTool parameters defined as a schema; the agent asks only for what is missing
Conversation designDecision trees and dialog flows built by handInstructions, tools and guardrails; scripted flows kept only where wording must be exact
AnswersCanned responses written for each intentAnswers generated from your knowledge base, with retrieval and source links
Taking actionWebhook fulfillment wired to specific intentsTool calls the agent chooses, such as order status, rescheduling or ticket creation
When it does not understandFallback intent, then rephrase prompts or a menuClarifying question, then handoff to a person with a summary
HandoffTransfer to a live agent, often without contextTransfer with the conversation summary, customer details and what was already tried
TestingCheck that sample phrases hit the right intentAn evaluation set of real past conversations scored for accuracy, tone and correct tool use
MaintenanceAdd intents and phrases as new questions appearUpdate source content and tools; review flagged conversations weekly
Running costPlatform fee, usually flat or per conversationPlatform or hosting plus model usage per conversation, which you should monitor

Stay on Rules-based chatbot if

  • Users ask a small, stable set of questions that a menu handles well
  • Every reply must use exact, pre-approved wording, such as some regulated disclosures
  • Your conversation volume is low and the current bot rarely fails
  • You have no reliable source content for an agent to answer from yet

Move to AI agent if

  • The fallback intent fires often and users ask for a person to escape the bot
  • Questions vary widely and the intent list keeps growing
  • Users want things done, such as checking an order or moving an appointment, not just answers
  • Your help content, policies and product data are written down and kept current
  • Support staff spend time on questions the content already answers

Why teams migrate

Rules-based chatbots work when people ask predictable questions in predictable words. Most real conversations are not like that.

The fallback problem. A bot that only knows its intents ends many conversations with “I didn’t understand that.” Users learn to type “agent” to get past it, and support gets the conversation anyway, without context.

Intent sprawl. Every new question needs a new intent, training phrases and a response. Over a few years the intent list grows into hundreds of overlapping entries that nobody wants to touch.

Answers, not actions. Many bots can explain a refund policy but cannot check whether an order is eligible. An agent with tools can look up the order, apply the policy and start the return. For the difference in detail, see chatbot vs AI agent.

The migration plan

  1. Inventory. Export the bot’s intents, flows and a few months of transcripts. Note which intents get the most traffic, where the fallback fires and where users ask for a person.
  2. Prioritize. Group conversations into answer questions (policy, hours, how-to) and action requests (order status, booking, account changes). Answer questions are usually the fastest win.
  3. Prepare content and tools. Gather the help articles and policies the agent may answer from, fix what is out of date, and define each tool with a narrow purpose and required parameters. Our AI customer support agent guide covers the architecture.
  4. Rebuild. Write the agent’s instructions, connect retrieval over your content, add tools, and keep scripted flows for steps that must be exact. Define clear handoff rules.
  5. Run in parallel. Replay a few hundred real past conversations through the agent and score the answers. Then run it in shadow mode or for staff only before customers see it.
  6. Cut over. Launch on one channel or a share of traffic first, with handoff to a person always available. Review flagged conversations daily for the first two weeks.
  7. Decommission. Once the agent handles the full volume, retire the old intents and flows, keeping any scripted flows the agent still uses.

What to watch for

  • Webhook and integration changes. Webhook fulfillment endpoints built for specific intents need to become general tools. Update any channel integration that pointed at the old bot.
  • Credentials and permissions. Give each tool its own API credentials with the narrowest access it needs. An agent that can look up orders should not also be able to issue refunds unless you decide it should.
  • Conversations in flight. Pick a cutover time when traffic is low. Conversations started on the old bot should finish there.
  • Error handling. Decide what happens when a tool fails or times out: retry once, then apologize and hand off with context. Never let the agent guess at a failed lookup.
  • Prompt injection and abuse. Users will try to make the agent ignore its instructions. Keep tool permissions narrow, validate tool inputs and log every action.
  • Cost per conversation. Long conversations with large retrieved context cost more. Monitor model spend weekly and cap context size.

Timeline and cost

An agent that answers from your documents and hands off cleanly fits our AI chatbot band of $5,000–$20,000 and typically takes 2–4 weeks. An agent that also takes actions in your systems through tools fits our custom AI agent band of $15,000–$60,000 over 3–8 weeks. The AI chatbot cost guide explains where the budget goes.

What we recommend

Keep the rules-based bot if it is small, accurate and rarely hits fallback. Otherwise, start with answer questions grounded in your own content, add tools for the top two or three action requests, and keep human handoff one message away.

Frequently asked questions

Will an AI agent make things up?

It can if you let it answer from general knowledge. We restrict answers to retrieved source content, tell the agent to say when it does not know, show sources, and test against real questions before launch. Actions go through tools with fixed parameters, so the agent cannot invent an order status.

Can we keep parts of our existing bot?

Yes. Scripted flows for identity checks, payment steps or regulated wording can stay exactly as they are. The agent hands off to those flows when the conversation reaches them. Your existing intent list is also a useful map of what users ask most.

Do we need to change chat platforms?

Usually not. Most agents connect to the same website widget, Slack, Microsoft Teams or messaging channels the bot used. Some support platforms, such as Intercom and Zendesk, offer their own AI agents, which can be the faster choice if you already run support there.

How do we measure whether the agent is better?

Compare resolution rate without a person, handoff rate, customer satisfaction and the share of conversations needing correction, using the same period before and after. Track model cost per conversation alongside those numbers.

What about privacy and healthcare data?

Send the model only what it needs and use API providers that do not train on API data by default, as OpenAI and Anthropic do not. Conversations involving patient health information require a HIPAA business associate agreement with every vendor that handles that data.

Next steps

Last updated October 14, 2026. Product details change often; check each vendor's current documentation and pricing.