How a Rasa or Dialogflow bot fits in front of agents in Rocket.Chat Omnichannel
A support team that wants automated first answers without losing human handover can use Rocket.Chat Omnichannel, which ships Dialogflow and Rasa apps for conversational bots, and its routing can try a bot agent before assigning a human agent. The supported method is to install the bot app that matches your engine, register the bot as an agent, and then set the routing configuration so that new customer chats reach the bot first and move to a human when the bot cannot resolve them. The bot handles greetings, frequently asked questions and simple intake such as collecting an order number or account reference. Agents still own anything that requires judgment, account changes, complaints, refunds and any conversation the customer asks to escalate. The bot apps and bot-first routing depend on a supported Rocket.Chat release, because versions past end of life stop receiving security fixes and lose Omnichannel integrations, so confirm your version's support window in the version durability documentation before you build.
This section sets out the sequence the rest of the page follows: setup, identity and data mapping, security, testing and failure points. Before configuring anything, decide which intents the bot may answer and which data it may read or write, because every field the bot collects becomes customer data that your retention and transcript rules apply to. Confirm where the Dialogflow or Rasa service runs, who holds its credentials, and whether messages leave your network. The bot apps are configured in the Omnichannel administration area, and the exact setting names and steps should be checked against the Omnichannel administrators guide for your release, since they can change between versions. Ask your team to verify the bot app list against the Omnichannel apps documentation and the Marketplace compatibility table before you commit to a bot engine.
Plan the handover test as carefully as the bot itself. Test cases should cover a bot answer that resolves the question, a bot failure that must reach a human without the customer repeating details, an out-of-hours chat, a customer who asks for a person in plain words, and a chat with no available agent. Watch for the common failure points: the bot holding a chat that no fallback serves, context lost at transfer, duplicate greetings, and bot replies that expose internal data. For a self-hosted Rasa bot, a data residency case is often the reason to choose it, since the model, training data and conversation logs can stay in infrastructure you control. Dialogflow is a hosted Google service, so its data path must be reviewed against your residency and processor obligations. Confirm both points with your compliance team and the vendor documentation before go-live.
What you need in place before connecting a bot
A bot in front of human agents only works when the Omnichannel foundation already runs cleanly. The cards below cover the release, workspace, plan, app, endpoint and ownership checks that connect the bot to routing and handover.
A supported Rocket.Chat release line
Confirm your workspace runs a release line that still receives fixes. Rocket.Chat states that after end of life a version gets no security or bug fixes, and cloud services such as Omnichannel integrations stop working. A bot integration built on an end-of-life line can fail without any change on your side. Check your version against the version durability documentation before you install any bot app, and plan the upgrade first if you are close to end of life.
- Standard release support
- 6 months
Omnichannel running with agents
Before adding a bot, make sure human handling already works. Create at least one department, add agents who are online and assigned to it, and send test chats from the Livechat widget to confirm they reach an agent. Bot-first routing depends on this path, because the bot hands conversations to human agents when it cannot resolve them. If the queue is broken for humans, the bot will only hide the fault.
A plan that fits your deployment
Check that your plan covers the deployment model you intend. Rocket.Chat's free Starter plan does not include air-gapped deployment, which is a paid-plan capability. If your bot endpoint, Omnichannel setup or hosting model depends on a paid feature, get the plan confirmed in writing before the build. Ask the vendor which Omnichannel and app capabilities your specific plan includes, because plan contents change.
Rocket.Chat plans docsCompatible Rasa or Dialogflow app
Confirm in the Marketplace compatibility table that the Rasa or Dialogflow app supports your workspace type. The table lists Rasa as available on Community workspaces, so check Dialogflow separately for your edition. Record the app version installed in your own workspace and the Rocket.Chat version it targets, rather than assuming either. Repeat this check after every Rocket.Chat upgrade and every app update.
Marketplace docsA reachable bot endpoint with TLS
The Rocket.Chat server must reach your bot endpoint over HTTPS with a valid certificate. Decide where the Rasa action server or the Dialogflow webhook runs, and confirm that firewall, proxy and DNS rules allow the call in both directions. Test latency and timeouts with realistic message volumes, since a slow bot response delays the customer before handover. In a self-hosted Rasa setup, the endpoint sits inside your network, which is usually the reason to choose it.
An owner for training data and transcripts
Name one person or team who owns the bot's training data, intents, responses and the conversation content it stores. Chats the bot handles are still Omnichannel conversations, so they fall under the same transcript and retention settings as human chats. Decide who reviews intent accuracy, who approves changes to bot answers, and who answers privacy requests about stored messages. Without a named owner, the bot will drift away from current products and policies.
Choosing between Rasa and Dialogflow for this deployment
Rasa runs in infrastructure your organization controls, alongside your Rocket.Chat deployment. This is the main reason to choose it when data residency matters: conversation text is processed inside your network rather than by an external cloud service. Your team owns the training data, the intents and stories, and the dialogue design, so the quality of the bot depends on maintaining those assets over time.
- Where it runs: on servers, Kubernetes, or private cloud that you provision and patch.
- Who owns training: your conversation designers and engineers, who build and retrain models from your own transcripts.
- Where text is processed: inside your environment, subject to the logging and storage settings you configure.
- What the Omnichannel app needs: a network path from the Rocket.Chat Omnichannel bot app to the Rasa endpoint, with TLS and access control between them.
- What you operate after go-live: model retraining, Rasa version upgrades, capacity for inference, and monitoring of fallback and handover rates.
Before committing, confirm the Rasa version and the Omnichannel app version you plan to run are compatible, and check the Rocket.Chat Marketplace compatibility table for your workspace type.
Dialogflow is a Google Cloud service, so the bot's language processing happens on the provider's infrastructure rather than in your network. Your team designs intents, entities, and flows in the provider's console or API, and the Rocket.Chat Omnichannel Dialogflow app connects your deployment to that service. It can reduce the infrastructure you run for the bot, but it shifts questions about where conversation data is processed and retained to the provider's terms.
- Where it runs: as a managed Google Cloud service, outside your own servers.
- Who owns training: your team configures agents and intents, but the service and its model are operated by the provider.
- Where text is processed: on Google Cloud. Confirm the processing location, retention, and data use terms with the provider's current documentation before sending customer messages.
- What the Omnichannel app needs: outbound connectivity from your Rocket.Chat server to the Google Cloud API, plus Google credentials stored securely in your deployment.
- What you operate after go-live: credential rotation, Google Cloud project access and billing oversight, agent versioning, and review of conversations flagged for handover.
If your network policy blocks outbound calls to external cloud services, Dialogflow will not fit without an approved exception.
A mixed or staged approach starts with one platform and moves to another, or routes different departments or languages to different bots. Teams often use this path when a pilot is needed to test handover quality before a data residency decision is final, or when some conversations are low-sensitivity and others are not. Each bot still needs its own app configuration, its own training assets, and its own compliance review, so the scope grows with every additional bot.
- Where it runs: each bot runs where its platform runs, so a mixed design has two processing locations to document.
- Who owns training: the team responsible for each bot owns its intents, stories, or agent configuration.
- Where text is processed: determined per bot. Map which departments, channels, and data classes go to which platform.
- What the Omnichannel app needs: separate app configurations and routing rules, so bot-first routing sends each chat to the correct bot.
- What you operate after go-live: two sets of upgrades, monitoring, and handover reporting, plus a documented migration path if you later consolidate onto one platform.
Before you start, ask your partner to write down the criteria for moving a conversation to each bot and who approves changes to those criteria.
How a customer message moves from the bot to a human agent
The flow starts in the Livechat widget on the customer's website, where the message enters Rocket.Chat Omnichannel. Routing is configured to try a bot agent first, so the message is sent to the Rasa or Dialogflow app. The bot's reply returns to the customer through the same widget. When the bot cannot resolve the request, the chat is handed to a department queue and then to a human agent. Check where the bot endpoint sits and whether the Dialogflow path leaves your network boundary.
Message path from the widget through bot-first routing to a human agent, with the external boundary marked.
Configuring the bot, bot-first routing and handover
This sequence takes a Rasa or Dialogflow bot from an installed Omnichannel app to a working front door that answers first, hands off to the right department, and leaves a complete transcript.
Confirm release and Marketplace compatibility
Before installing anything, confirm which Rocket.Chat release your workspace runs and check the Marketplace compatibility table for the bot app you plan to use. The Marketplace docs list Rasa as available on Community workspaces, so check the entry for your edition and version rather than assuming it applies to Dialogflow as well. Ask your Rocket.Chat contact to confirm the exact version support in writing. You know this step is done when you have a recorded release number and a compatibility result for each bot app you intend to use.
Install the chosen bot app from Omnichannel apps
Using an administrator account, install the Dialogflow or Rasa app from the Omnichannel apps set described in the Omnichannel apps documentation. Keep the app version recorded alongside your Rocket.Chat release so future upgrades can be tested against both. The app should appear in the installed apps list with an active status. If it does not activate, check the app logs and the compatibility entry from the previous step before going further.
Register the bot agent and connect the endpoint
Create the bot agent user in Rocket.Chat and enter the bot endpoint details (for Rasa, the URL of your Rasa server; for Dialogflow, the project settings the app requests) in the app configuration. For a self-hosted Rasa bot, the endpoint sits inside your network, which is the usual reason to choose it when data residency matters. Follow the Omnichannel configuration guide for the exact menu names. You know this step is done when the bot agent shows as available and a simple greeting sent from a test visitor receives a reply from the bot.
Set bot-first routing
In the Omnichannel routing settings, configure the queue so the bot agent is tried before any human agent is assigned, as the routing documentation allows. Keep the routing method for human agents unchanged so the handover path works as expected. Confirm the bot is the first assignee in the routing order for the departments that should use it. You know this step is done when a new visitor chat is assigned to the bot agent first, and the chat record shows the bot as the assigned agent.
Define the handover rule and department target
Decide what triggers a handover, such as the visitor asking for a person, a bot intent that the bot cannot resolve, or repeated fallback responses, and implement it in the bot logic or app settings. Map each handover to a target department so the chat lands in the right queue. Document the rule in your runbook with the department name it targets. You know this step is done when a forced handover from the bot creates a queued chat in the intended department and not in a general queue.
Test the bot path
Start a test chat from the widget or Omnichannel test page and send messages that the bot should answer. Confirm the reply comes from the bot agent and that no human agent receives the chat. Repeat with a message the bot should not resolve. You know this step is done when the bot answers in-scope questions and the chat stays with the bot until the defined handover condition is met.
Test the handover and transcript
Trigger the handover rule in a test chat and confirm an available agent in the target department receives it, with the bot turns visible in the conversation history. Open the chat transcript and check that it records both bot and agent turns in order. If the bot turns are missing, review the app configuration before rolling out to live visitors. You know this step is done when the handover lands in the correct department queue and the transcript shows both sides of the conversation.
Which conversation and visitor fields reach the bot and the agent
This table maps each conversation and visitor data element to what the bot uses it for, what the human agent uses it for, and how it should be classified. Read it before you configure the bot app, so the handover payload carries only what the agent needs. Confirm exact field names in your Omnichannel and bot app versions, since they vary between releases.
| Field or concept | Bot-side use | Agent-side use | Classification to confirm with privacy owner |
|---|---|---|---|
| Visitor identifier | Keeps the bot session tied to one visitor across turns | Links the chat to the visitor record and prior conversations | Personal data; confirm whether it is pseudonymous under your policy |
| Message text | Input for intent detection and entity extraction | Shows the customer's own words and context for the reply | Often contains personal data; confirm retention and whether it reaches the bot server |
| Department or intent tags | Selects the flow or intent set the bot should run | Tells routing which queue or skill group should receive the chat | Usually operational; confirm no customer attributes are embedded in tag values |
| Verified contact details | Personalizes responses only when verification has completed | Lets the agent confirm identity without asking again | Personal data; confirm the bot may receive it at all before sending |
| Unverified contact details | Should not drive account actions or identity checks | Shown with a warning so agents treat them as claims | Personal data; confirm how unverified values are labeled and stored |
| Conversation ID | Correlates bot logs with the bot platform's own session records | Lets agents and support teams find the full transcript | Operational identifier; confirm it cannot be used to reach customer records outside the chat |
| Handover payload with bot summary | Produced at the point of transfer to a human agent | Gives the agent a short account of what the customer already said and tried | Derived personal data; confirm the summary excludes fields the bot was not permitted to collect |
When a self-hosted Rasa bot suits data residency needs
A self-hosted Rasa bot suits a team when customer messages carry regulated personal data and the organization must keep dialogue processing in infrastructure it runs. A Dialogflow bot sends each visitor message to a hosted Google service, so the question becomes whether that transfer, and the contract and data handling around it, is acceptable for the content your customers type. Start by listing what visitors actually write in the Livechat widget, such as account numbers, health details or identifiers, because that content, not the bot's purpose, decides where the natural language processing should run. Confirm the hosting and data processing terms for the Dialogflow edition you would use with your legal and privacy teams before comparing it to a self-hosted option.
Choosing Rasa moves work to your team. Someone must own the NLU model, the intents and entities, the dialogue flows and the custom actions that call your systems, and those artifacts need version control and review just like application code. Training data is the sensitive part: conversation logs used to improve the model contain the same personal data as live chats, so you need a documented rule for which turns are exported, how they are anonymized, where they are stored and when they are deleted. You also operate the Rasa servers, action server, upgrades, certificates and monitoring, and you should confirm the current Rasa release and support lifecycle before you commit to a version. Pricing for any Rasa component and the effort for these tasks should come from your own estimate or a written quote, not from assumptions.
Residency does not cover everything. Omnichannel transcript retention applies to bot turns as well as agent messages, so the bot's replies and the visitor's words are kept in Rocket.Chat under the same rules you set for transcripts and Livechat data. Map each bot handover point to the department that will receive the chat, and decide whether the bot's intermediate turns should be stored at all. Self-hosting Rasa keeps the model and dialogue processing under your control, but it does not make the whole conversation record compliant on its own, so ask your compliance lead to review the full data path from widget to archive.
Securing the bot endpoint, handover and customer data
A bot in front of agents sits between customers, Rocket.Chat, a bot runtime and sometimes a cloud API, so each hop needs its own controls. The cards below cover the connections, the secrets, the people who can change flows, what gets passed to agents, the training assets and the patch cadence that keeps all of them current.
TLS and network reachability
Rocket.Chat calls the bot app and the bot runtime over HTTP, so every hop should use TLS with certificates your team controls, and the bot endpoint should not be reachable from the public internet unless you have decided it must be. Confirm which network path the Omnichannel apps use, whether a proxy or egress policy blocks the call, and what happens to chats when the bot endpoint times out. Test a failed bot call before go-live, because routing that depends on the bot needs a defined fallback.
Omnichannel apps docsCredential handling for bot apps
Dialogflow authenticates with a service account or key, and a self-hosted Rasa endpoint may use its own token. Store these values in the Rocket.Chat app settings or your secrets manager, never in a repository, chat transcript or shared runbook. Confirm who can view app settings, how keys are rotated, and whether the cloud project is scoped to the one agent this workspace uses.
Least-privilege access to bot flows
Editing intents, responses and routing order changes what customers are told and who receives their chats. Limit Rocket.Chat administrator roles and Omnichannel manager roles to the people who own those changes, and keep a short list of who can enable or disable the bot-first setting. Record changes in a review step, because a single edit to routing can move every new chat away from agents.
Limiting what the bot stores and forwards
Decide which customer fields the bot collects, and what it passes to the agent at handover. Only send the details the agent needs, avoid asking for card numbers, health details or national identifiers in free text, and check whether the bot runtime keeps conversation logs on its own servers. Review the handover message and the Livechat record together, since both hold what the customer typed.
Protecting training data and models
Intent examples, entity lists and training stories can contain real customer phrases, and trained Rasa models can memorize them. Keep training data in a controlled repository with access logs, remove personal data before training, and store model artifacts in storage with the same access rules as the bot runtime. For Dialogflow, confirm where the agent and its logs are stored and who in your cloud project can read them.
Patching the bot runtime with Rocket.Chat
Rocket.Chat standard releases are supported for 6 months and LTS releases for 12 months. After end of life, Omnichannel integrations stop working, so the bot app, the Omnichannel configuration and the Marketplace apps must move with the server. Put the bot runtime, its dependencies and each Rocket.Chat release on one calendar, and test a bot conversation on staging after every upgrade.
Version durability docsWhy bot replies stall or handover fails
This table pairs common symptoms of stalled bot replies and failed handovers with their likely causes and the first check to run. Start with the Rocket.Chat server logs and the installed app version, because most stalls trace back to an unreachable bot endpoint or an unsupported version. Work down the configuration areas in order before changing routing or the bot itself.
| Symptom | Likely cause | Fix or check |
|---|---|---|
| Bot never answers the visitor | Bot endpoint unreachable from the Rocket.Chat server, or the Dialogflow or Rasa app is on a version that does not match the Rocket.Chat release | Check server logs and the app version first, then confirm the bot endpoint responds from the Rocket.Chat host and the app is supported on your version |
| Bot answers, then the chat stays with the bot | Routing is set to try the bot agent but no handover trigger or fallback to a human agent is configured | Review the Omnichannel routing settings and confirm a human agent or department is set as the next step when the bot cannot resolve the request |
| Handover lands in the wrong department | The handover target department is not set, or points to a department without online agents | Set the target department explicitly in the bot app configuration and test a handover with an agent online in that department |
| Agent receives the chat without the bot summary | Bot conversation history is not passed with the handed-over chat, or the agent view does not show the bot messages | Test one handover end to end as an agent, compare the room history with what the visitor saw, and check the app logs for the handover payload |
| Bot replies appear after a human has joined | Bot response was already in flight when the agent accepted the chat, or the bot was not disabled for the room at handover | Confirm the bot is removed from the room at the moment the agent joins, and test with a slow bot endpoint to reproduce the race |
| Transcripts are missing bot turns | Transcript export runs from agent-visible messages only, or bot messages were posted by a user account excluded from the export | Export a sample transcript after a test chat, compare it with the room history, and confirm which message types the export includes for your version |
| Rasa bot fails only in production | Rasa action server or model is not reachable from the Rocket.Chat container network, or the model was not deployed with the expected version | Check connectivity from the Rocket.Chat container to the Rasa endpoint and confirm the deployed model matches the tested one |
What buyers ask before hiring help with Rocket.Chat chatbots
How much effort does a Rocket.Chat chatbot project usually take?
Effort depends mostly on the scope of the bot rather than on Rocket.Chat itself. The main drivers are the number of intents the bot must recognize, the number of departments that will receive handed-over chats, the internal systems the bot must query (such as order status or account lookups), the handover rules that decide when a human takes over, and any data residency constraints that force a self-hosted model or a specific hosting location. Each added system integration and each added department usually adds testing work. Ask any provider to break its estimate down by these drivers so you can see which ones move the total. No fixed duration is stated here because it depends on your environment and scope.
Can our team set up a Rocket.Chat bot without outside help?
A capable internal team can do it, provided it has someone who understands the Omnichannel administration model, someone who can build and maintain the bot, and time to test conversations before customers see them. Omnichannel features such as bot apps, routing and handover are configured inside Rocket.Chat, while the bot itself (Rasa or Dialogflow) is trained and hosted separately. The harder parts for most teams are designing intents and fallback paths, wiring secure access to backend systems, and proving that data handling meets your privacy rules. Outside help is most useful for those parts and for a structured review before go-live.
What does the work need from our side?
You will need four roles to be named and available. An Omnichannel administrator owns departments, routing, business hours and the bot app settings in Rocket.Chat. A bot owner decides which questions the bot answers, what it escalates and how success is measured. A privacy reviewer checks what visitor data the bot collects, where it is stored and how long it is kept, including any transcripts. Finally, your staff must run test conversations covering normal, unusual and abusive input, and agents should review handed-over chats during a pilot. Confirm these commitments in writing before the project starts, because delays on any of them usually delay the whole project.
Should we choose Rasa or Dialogflow for our bot?
The right choice depends on where your conversation data may be processed and how much control you need over the model. Rocket.Chat Omnichannel includes both Dialogflow and Rasa apps for conversational bots, so the integration path exists either way. A self-hosted Rasa bot fits organizations whose data residency rules require that conversation content stays in infrastructure they control. Dialogflow is a Google-hosted service, so its data handling and location need review against your policies. Also consider your team's skills, the languages you must support and how the bot will be maintained over time. Ask providers to document the data flow for each option before deciding.
How do Rocket.Chat upgrades affect a chatbot?
Rocket.Chat upgrades can change how Omnichannel apps and their settings behave, so the bot should be retested after each upgrade rather than assumed to keep working. Rocket.Chat supports standard releases for 6 months and LTS releases for 12 months, and an end-of-life version stops receiving security fixes and loses access to cloud services such as Omnichannel integrations. Plan upgrades on your Rocket.Chat schedule, keep the bot app versions compatible with the target release, and run a regression set of test conversations in staging first. Confirm with the vendor which app versions support the release you plan to run.
What should a fixed-scope quote for a chatbot project list?
A fixed-scope quote should list each deliverable, the assumptions behind it and what is excluded. Ask for the number of intents and departments in scope, the list of backend systems the bot will query and the authentication method for each, the handover rules and business hours involved, the hosting model for Rasa or Dialogflow, and the data retention and transcript handling you need. Also ask for the test plan, the number of rounds of conversation testing, the pilot period, training for your administrators and the process for upgrades after go-live. Written acceptance criteria and a clear change process for new intents should be part of the same document.
What breaks most often in bot handover to human agents?
The most common failures are handover rules that fire too late or too early, lost conversation context when a chat moves to an agent, and queues that stall because no department or agent is available. Test each path deliberately, including after-hours behavior, agents at their chat limit and fallback when the bot cannot answer. Confirm how routing order and last-agent preference interact with bot-first routing in your configuration, and check that agents see the bot's transcript before replying. Include these cases in your acceptance tests so they are verified before customers use the bot.
How DeployOpen works on this
DeployOpen plans, implements, customizes, integrates, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For a Rocket.Chat Omnichannel bot, that means agreeing in writing which bot app, routing behavior and handover rules you need before any configuration starts.
How we scope
- Confirm which bot app fits the use case, Rasa or Dialogflow, and where the bot will run relative to your data.
- Map the bot-first routing rules, fallback paths and conditions for handing a chat to a human agent.
- Agree the written scope, deliverables and timeline with you before work starts, since most engagements are fixed-scope.
How we build
- Install and configure the Dialogflow or Rasa Omnichannel app in your Rocket.Chat environment, confirming the version and plan support first.
- Set up bot-first routing so the bot agent is tried before a human agent is assigned, with tested fallback behavior.
- Test handover, transcript capture and departments end to end, including the cases where the bot cannot answer.
How we hand over
- Document the routing configuration, bot intents or flows, handover rules and the environment each component runs in.
- Walk your operations and support teams through how to change bot content and how agents receive escalated chats.
- Record the upgrade and dependency checks your team needs to repeat when Rocket.Chat or the bot app changes versions.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover.
- Re-verify bot routing and handover after each Rocket.Chat upgrade, since unsupported versions stop receiving fixes.
- Review bot conversations and handover quality with your team on a schedule agreed in the retainer.

