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.
1. Create a simple Bot.
Welcome Dialog:
Close Case Dialog:
2. Test by making an exception. I have made my Flow to cause an exception.