The Crisp Bot plugin lets you automatically respond to user messages. You may want to respond conditionally, for instance only during weekend. This articles explains how you can do that. This can also be used to respond during weekdays.

Weekend bot response flow

Here's the flow and how you would like the bot to behave; to warn your users that the support is unavailable during weekend:

An user sends a message over your Crisp chatbox (either a new conversation, or existing conversation);
The bot detects that current day of the week is either Saturday or Sunday;
The bot detects that no operator is online (ie. your website support is away);
The bot sends a response message to inform that support is closed on weekends (and that you will get back on Monday);
IMPORTANT: the bot stops the scenario there, using an exit block (this prevents the scenario to fire over and over again if the user sends more messages);

Bot scenario setup

The general bot flow is as follows:

Event Block: "User Message Matches" to match pattern: * (ie. any message);
Condition Block: "Day Of The Week Matches" to match: saturday and sunday days;
Condition Block: "Check Website Availability" to match: away (ie. support offline);
Action Block: "Send Message" to send your weekend notice message;
Exit Block: "Stop Scenario" to ensure your weekend message is not sent over and over again in the same conversation;

The flow as configured in the Bot plugin:

Weekend response bot flow

Block configuration details

You can find below the configuration details of each block for this bot. You may use this configuration as a reference to how you can configure your own bot:

Block #1 setup (Line #2 of flow)

Block #2 setup (Line #3 of flow)

Block #3 setup (Line #4 of flow)

Block #4 setup (Line #5 of flow)

Result in chatbox

"Et voilà!"
Was this article helpful?
Thank you!