About the Chat trigger:
Use this recipe to create a Chat trigger that fires based on which page the visitor is on when they request a Chat. For example, route customers who request a chat from your pricing page to your sales team.
How to create the trigger in Chat:
- Run trigger: When a visitor has loaded the chat widget
-
Check conditions: Check all of the following conditions
- Visitor page URL | Equals | www.sampleurl.com/pricing
-
Perform the following actions
- Set visitor department | Sales
Note: the Set visitor department condition only works when you have the Run trigger condition set to When a visitor has loaded the chat widget. See more in this article: Department routing is not working correctly in chat.
In product example:

For more on routing chats with triggers see the article: Automatically route chats to departments.
1 Comments
Is there a way to assign the chat to a department based on domain url rather than special page url? for example instead of wwww.xyz.com.au/sales/index i want evey chat that get started to be routed to a department based on domain url e.g. wwww.xyz.com.au irrespective of whatever page visitor are on that side.
Appreciate any insight you can share around this.
Regards,
Pankaj
Please sign in to leave a comment.