How to end the Messaging Session using Einstein Bot and Business Hours in Salesforce?

1. Create a Business Hours.

2. Configure the Business Hours in the Messaging Channel.

3. Use the No Agent dialog in the Einstein Bot to notify the customers.

1. I am Using Rules and End Chat to end the Messaging Session immediately. So, after sending "Contact us Mon-Fri 9 AM to 4 PM", it will auto end the Messaging Session.


If  you want to create a Case record to capture details and log, follow the below
1. Create a Auto Launched Flow to create a Case Record.

Flow Variables:
Case Assignment:

Create Case: 

Get Case Number:


Case Number Assignment:

Bot configuration: