#1274: Setting up automatic messages in web chat
Отредактирована: сегодняSymptoms
Automatic messages are required for the web chat:
- At chat start
- If the chat is running outside of business hours
Solution
Configuration is possible using scripts and macros.
- Take the example script and edit the message texts in it
- Make sure you have a created schedule assigned to the company/group or SLA policy
- Go to Settings > Scripts and click Create. Select the role Administrator and enter the script name.
- In the window that opens, in the script field, upload the edited script from step 1. Click Save.
- Go to Settings > Action by event and click Create
- Fill in the name, Event Type = TicketEvent, Action Type = Script, and in Action select the created script. Click Save
- In the window that opens, in the Run if event meets conditions field, insert
{
"event": 9,
"ticket__status__in": [
"NEW",
"OPEN"
],
"ticket__source__channel_type": "WIDGET"
}
Save the event and in the list of actions, click Run selected action 