Triggers

Triggers are there so that your story can start. They trigger your story on your website according to your preconfigured specifications.

You can see how many triggers Trigger_icon.png are specified for each story in your story overview in the Chatbot module:

Storyliste_Trigger.png

If there is no number on the left side of the icon, no trigger has been specified yet.

 

There are three types of triggers:

  1. Page Load Trigger
  2. Delayed Opening Trigger
  3. Custom Event Trigger

Below, you can find instructions on how to set up the different triggers.

Bildschirmfoto_2020-10-15_um_10.29.46.png

 

1️⃣ Page Load Trigger

If you decide to use the page load trigger, the chatbot avatar will appear unopened on the bottom right of the website you configured for that story. If you want to display the story on all sites, you can also choose this option.

Name the trigger so you can later analyze it on the KPI Dashboard. Additionally, you have the option to activate or deactivate the chatbot on mobile devices.

triggerpageload.png

 

2️⃣ Delayed Opening Trigger

The difference between the delayed opening and page load trigger is that you can indicate a time delay after which the chatbot will open automatically, specified in seconds. Additionally, you have to add the names of the triggers as well as the path and the preference for activation on mobile devices.

triggerDelayedopening.png

 

3️⃣ Custom Event Trigger

To use this trigger, a proficiency in JavaScript and access to the «source code» of your website are required. The event name, which is defined in the trigger, must be sent via JavaScript.

We can prevent triggers from firing based on different constraints, i.e. a User has seen a story already. Please contact the aiaibot team for this purpose.

Here is an example of the JavaScript code for triggering a custom event with the name custom-event:
 
const event = new Event('custom-event');
document.dispatchEvent(event);

As with the other triggers, the name, path, and preference on mobile devices must be specified here. A time-delayed opening of the chatbot can also be set.

triggerCustomevent.png

Full screen mode

You can specify whether you want to allow switching between full screen and normal chatbot view in the trigger settings:

fullscreenmode.png

This could then look like the following:Backgroundnochat.png

It is recommended to set the fullscreen mode to open automatically when the chatbot is used on a mobilephone.

You can make the custom appearance of the full screen in the chatbot styler.

Was this article helpful?
0 out of 0 found this helpful