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.
2 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
Hi Pankaj,
If you want to route Chats to a department based on the domain instead of the specific URL, the solution is very similar to what Sheena describes above. The only difference is in the Condition:
Instead of Visitor page > equals > www.xyz.com.au/sales/index
You can change to Visitor page > contains > www.xyz.com.au
This way, anyone in your page, regardless of their specific path will be automatically routed using this trigger.
I hope this helps!
Please sign in to leave a comment.