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.
This recipe contains the following sections:
Creating 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 works only when the Run trigger condition is set to When a visitor has loaded the chat widget. See more in this article: Department routing is not working correctly in chat.
For more on routing chats with triggers, see the article: Automatically route chats to departments.