Triggers allow you to set up automated actions when certain conditions are met.
Chat triggers willnotfire if:
- No agents are online.
- All agents' availability status is set to Invisible (seeSetting your availability status).
This article contains the following sections:
Related articles:
Creating Chat triggers
Chat triggers are created on the Chat dashboard.
In the example below, we're creating a trigger that sends a message to users visiting your product's pricing page:
To create a trigger
- From the dashboard, selectSettings > Triggers.
- ClickAdd trigger.
- Enter a name and brief description for your trigger.
- ClickEnabledat the top to enable your trigger.
- If the trigger should fire only once per individual, select theEach visitor will receive this message only oncecheck box. Deselect this box if you want the trigger to fire every time an individual meets the trigger conditions.
- In the Customize Trigger section, use theRun triggerdrop-down to select one of the following events that should fire the trigger:
- SelectWhen a visitor has loaded the chat widgetif you want the trigger to run when the chat widget appears on the page, but the visitor has not interacted with it.
- SelectWhen a visitor requests a chatif you want the trigger to run when the visitor has requested a chat.
- SelectWhen a chat message is sentif you want the trigger to run when the visitor has entered and sent text in the chat widget.
- UnderCheck conditions:
- SelectCheck all of the following conditionsif you want every condition you create to be met before the trigger is fired.
- SelectCheck any of the following conditionsif you want one or more of the conditions you create to be met before the trigger is fired.Note:You cannot use a combination ofCheck all of the following conditionsandCheck any of the following conditionswhen creating a Chat trigger. You can only select one option or the other. This is also not possible in Developer view.
- Select actions underPerform the following actions. To add placeholders, type @.
- ClickCreate triggers.
When the trigger is created and enabled, a check mark appears in the Enabled column on the Triggers settings page.
Duplicating Chat triggers
If you want to duplicate an existing Chat trigger to use as a template for creating new triggers, you need to copy the trigger's developer code, then create a new trigger using the copied code.
To copy the developer code
- On your Chat dashboard, go toSettings>Triggers.
- From the list, click the trigger you want to copy.
- Click theDeveloperbutton on the top right and copy the code you see on the box:
- ClickCancel.
To create the new trigger using the copied code
- Return to the trigger list page and clickAdd Trigger.
- Click theDeveloperbutton again.
- Replace the code in the Customize trigger box with the code you copied.
- Update the code as needed. Click theVisualbutton to see the changes before saving them.
- ClickSave changes.
Disabling Chat triggers
If you want a trigger to stop running, but do not want to delete it, you can simply disable it. Disabled triggers can be re-enabled at any time.
To disable a trigger
- From the Chat dashboard, clickSettings > Triggers, then click the trigger you want to disable.
- In the Trigger status section, clickDisabled.
- At the bottom of the page, clickSave changes. On the Triggers settings page, the check mark is removed from the Enabled column.
- To re-enable a disabled trigger, click the trigger you want to enable, then clickEnabled.
Deleting Chat triggers
If needed, you can also delete triggers from the Triggers settings page. Deleted triggers cannot be recovered.
To delete a trigger
- From the Chat dashboard, clickSettings > Triggers.
- Click the checkbox to the left of the trigger you want to delete. To select all triggers, click the checkbox to the left of the Name heading.
- Click删除所选at the top of the page.
- 确认you want to delete the trigger. The trigger is removed from the Triggers list.
15 Comments
When will all the same chat triggers be available for messaging?
Hi, I would like to fire a trigger only once per client: sending them a one time message. Even if I set fire once per visitor, if the user logs out and logs back again it will fire again. How could we fix this? Thank you!
Hi I'm unable to select "When a visitor has loaded the chat widget" as a trigger. Is this possible?
How are you accessing your chat triggers? You can select it from the Chat dashboard >Settings>Triggers.
It can be selected from the "Run trigger" option. Kindly check the screenshot I've shared above for reference.
Thank you!
Kind regards,
When I follow your instructions these are the options I see. What do I need to change to get teh option for "when visitor has loaded the chat widget"?
You need to change your selected Channel, the reason why you're not seeing the following option is that you have messaging selected as Channel.
Thank you!
Kind regards,
Hi! I have the same question asAnthony BrantleyAnd the only channel option is Messaging even though I'm in Chat settings.
It is possible you are accessing it from the Admin Center and not in the actual Chat product . Depending on when you enabled Messaging you may need to disable and re enable to see these options. The below article is specific to Chat Triggers in Messaging.
https://support.zendesk.com/hc/en-us/articles/4408822204698-Chat-triggers-in-messaging
Thanks!
Need some clarification. This article indicates chat triggers willnot如果没有在线代理。然而,在选择trigger conditions, there's the option of Account status - offline or Department status - offline. In many/most instances, the offline status presupposes no agents are online. So, how do you reconcile what seems to be a contradiction?
The Account status - Equals - Offline condition statement is not applicable for sending a message to the visitor but it can work for triggers that do other things like add/remove tags, set visitor name or append notes. This isn't clear since the dropdown options do not filter currently, but this is definitely something that can be improved on down the road (changing the behavior in the UI or updating our docs about chat triggers).
Thanks Chris!
Hi,
How can I access the Chat triggers revision history?
Regards,
I'm afraid, we don't have the revision history feature for Chat triggers. This feature is only available to Zendesk Support > Business rules > Triggers.
For reference, please see this article:Viewing the trigger revision history
I hope this answer your question. Thank you!
What role (in Support or Chat) is required to create or modify a chat trigger? Does it need to be an Admin?
Yes, it is. Only Chat Admins can create and edit chat triggers:
Hope it helps
I'd suggest an update to this article in the section about cloning a trigger.
Step 4 makes it sound like when cloning, then any changes must be done in the code from the Developer view. The truth is, you can copy/paste the code from another trigger, then switch back to visual and edit it as before. Much easier than trying to update the Developer code.
Pleasesign into leave a comment.