Messaging Sessions getting transferred to Agents from Einstein Bot in Salesforce
When an error or exception occurs, Bot immediately transfers the Messaging Session to an agent(Omni-Channel).
Error Handler Dialog can be used to avoid this issue. Using Error Handler Dialog, we can show user-friendly message to the customer. We can avoid transferring it to the agent also.
- Create a simple Bot.
Welcome Dialog:

Close Case Dialog:

Error Handler dialog:

2. Test by making an exception. I have made my Flow to cause an exception.
