Behavioral triggers
Engage with users based on browsing behavior
Use case example: You want to engage with your users whenever they visit a particular page.
You can do that by creating a trigger with browsing history:
Stories with triggers do not need to start with a user message
Since trigger stories are initiated by the virtual assistant, they can start with a bot response. However, if you want to make the same story accessible from a user message you can start it with a user utterance or payload.
Enforce a sequence
The example above does not require that pages are visited in a particular order. We are simply looking for a visit to a particular page. If page order matters to you, check this option:
Partial or full match
By default, all subsequent paths will be matched. For example, the url .../pmbf/#/roadmaps/timeline
would activate the trigger.
If you don’t want that you can uncheck this option:
Protocol, host, and port
Protocol, host, and port are always ignored. Which means that if you set http://localhost:8000/pmbf/#/roadmaps/timeline
it will also match https://yoursite.com/pmbf/#/roadmaps/timeline
.
Engage with returning users
Example use case: users returning several times to Roadmaps might be interested in receiving help.
The following video shows how to engage with a user visting Roadmap for the third time, after staying 15 seconds on the page:
Number of page visits vs. website visits.
If you set 3 website visits, the assistant will engage at the third visit regardless of the page. If you set 3 page visits without specifying a URL, the assistant will engage everytime you visit a page on the site for the third time.