Home · Blog · Can you trust an AI to edit a bot flow: versions, rollback and confirmations in CHBT
Can you trust an AI to edit a bot flow: versions, rollback and confirmations in CHBT
The main fear when an AI gets access to your bot: “it will break something and customers will see it”. That is a reasonable fear, and we built CHBT MCP so that it does not go unanswered. Below: what exactly the assistant can change by itself, what needs your “Run”, how versions and rollback work and how to withdraw access. No generalities: with real screens and an honest list of what is protected worse than it seems.
The short answer: what is allowed, what is not, what only with your “Run”
| Assistant action | How it is performed |
|---|---|
| View statistics, conversations, leads, flows | Immediately, if the connection allows reading |
| Create a flow | Immediately, but the flow is created switched off |
| Edit a flow | Immediately; if the flow is on, customers see the change at once. The previous version is saved |
| Restore a flow version | Immediately; the current state is also saved as a version |
| Turn a flow on | Only after your confirmation in the cabinet |
| Turn a flow off | Immediately (conversations in the middle of the flow will be interrupted) |
| Reply to a customer | Only after your confirmation; the bot goes quiet in that conversation |
| Start a broadcast, connect a channel, run a flow for a customer | Cannot do it at all |
Note the row about editing a running flow: this is the only place where an AI can affect what customers see without your confirmation. The protection here is not confirmation but versions and rollback. That is what this article is about.
Level one: connection rights
When you connect an AI with the “Allow” button, you decide two things: which projects to open to it and whether to allow actions. The second checkbox is off by default: without it the assistant only reads.

What this means in practice:
- If you want the AI only to analyse the funnel and conversations, leave read-only. It will not be able to edit flows.
- If you want it to build flows, enable actions, but open only the project where this is needed.
- A bot operator cannot give a project to an AI: owners and administrators can. If you lose that role, the AI’s access to the project disappears at once.
Level two: “before AI edit” versions
Every edit of an existing flow through update_flow replaces the whole graph. Before writing, CHBT saves the previous state labelled “before AI edit”. This happens automatically; the assistant does not have to “remember”.
On our demo “Appointment booking” flow the assistant edited it three times: it added the “Address and opening hours” branch, fixed the block layout and added an “any message” trigger. The result is three versions in the history, each with the exact time:

Versions are visible both to you in the editor and to the assistant: list_flow_versions shows them as a list (the 30 most recent, newest first).
Rollback: two roads
- In the editor: the “History” button → “Restore” next to the version you need. No AI and no conversation needed: you see the time and return within seconds.
- By command to the assistant: “Roll the flow back to the version before the last edit”. The assistant calls
list_flow_versions, picks the right one and runsrestore_flow_version.
An important detail: rollback is reversible too. Before restoring, the current state is saved as “before AI restore”. If you went back to the wrong version, go back once more; nothing disappears.
Versions store the flow itself (blocks, texts, branches, triggers). They do not undo the leads and conversations that went through the flow while it was running in its changed state. So do not postpone checking.
Level three: the “Run” confirmation
The assistant cannot perform two actions by itself, because they instantly affect customers: turning a flow on and sending a reply in a conversation. Instead it gets a confirmation link from CHBT and gives it to you.

Features of the link:
- single-use and valid for 30 minutes;
- opens only after signing in to the cabinet: turning a flow on is confirmed by a project owner or administrator, a reply to a customer by any project member;
- until you press “Run”, nothing has happened; “Cancel” cancels what was prepared.
After you press it, you see the result:

The same mechanism protects replies to customers: the assistant prepares the text, you see to whom and what will be sent, and press “Run”. Only then does the message reach the customer in their messenger.
Weak spots we do not hide
- Editing a running flow takes effect at once. This is a deliberate trade-off: otherwise every small text edit would need confirmation and the point of an assistant would be lost. But the risk is real. If a flow works with live customers, ask the assistant to make a copy first and edit that, then switch the triggers.
- A project token gives the full set of tools. Fine-grained rights exist only for the button connection. If you use a token (for example in Claude Code or a script), issue one per person and withdraw it when someone leaves.
- Turning a flow off is instant and interrupts conversations in the middle of the flow. That is handy as a “red button”, but switch off deliberately.
- Personal data. The assistant reads conversations and contacts. This is a decision to pass data to an AI service: connect only a provider you trust and take Federal Law 152-FZ into account.
- An AI can get the meaning wrong. The flow structure is validated (CHBT checks the graph the same way as when saving in the editor), but the correctness of prices and terms is on you. Check the texts before switching on; the test chat helps.
A practical scheme for safe work
- Connect only the projects you need. For a first acquaintance, a test bot.
- Start with reading. Let the assistant show the funnel and propose edits as text without changing anything.
- New work always on a copy. “Create a copy of the flow and make the edits in the copy”: the copy is created switched off.
- Check in the test chat before switching on.
- Switch on yourself through the confirmation link and look at conversations right away: at your request the assistant will show the latest ones.
- Keep a log. Versions in “History” are labelled with time; note on your side what you changed and why.
- Withdraw access when the work is done: “Connected AI” → “Withdraw”. A new connection takes a minute.
Comparison with ordinary work in the editor
Editing by hand in the editor can also break a flow. The difference is elsewhere: when you click yourself, you see every change; when the assistant edits, it replaces the whole graph and you see the result. So open the result with your own eyes: after the assistant’s edit, open the flow in the editor and walk through it as a customer. The article “10 mistakes in bot flows” helps here: a checklist for a quick check before switching on.
And if you just need to understand what the assistant can do and connect it step by step, start with the article “How to create a chatbot with AI and MCP”.
FAQ
Can an AI break my flow?
It can change it differently from what you wanted, like any contractor. Before every edit CHBT saves the previous version, so you can go back within seconds: in the editor (“History” → “Restore”) or by asking the assistant.
Will customers see an AI edit at once?
If the flow is on, yes. An edit of a running flow takes effect immediately and needs no separate confirmation. To avoid risk, ask the assistant to edit a copy rather than the live flow.
Can the AI switch the bot on without me?
No. Turning a flow on happens only after your confirmation through a single-use link in the cabinet. The same applies to replies to customers.
How do I return a flow to its previous state?
In the editor press “History” and “Restore” next to the version you need. Or ask the assistant: “Restore the version before the last edit”. Before the rollback the current state is also saved as a version.
How do I withdraw the AI’s access?
A button connection: “Account” → “Connected AI” → “Withdraw”. A project token: “API connections” → “API tokens” → “Withdraw”. Access disappears immediately.
Can I give the AI read-only access?
Yes, that is the default when connecting with the “Allow” button. Actions (prepare replies, edit flows) are enabled by a separate checkbox.
How to create a chatbot with AI and MCPAnalysing a funnel with AIMCP server for a chatbotHow to test a chatbotHelp: connecting MCP