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. Show Avatar only
  2. Open Chatbot
  3. Custom Event

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

trigger__bersicht_en.jpg

1️⃣ Show Avatar only

If you decide to use the <show avatar only> 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.

trigger_avatar_only_en.jpg

2️⃣ Open Chatbot

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.

trigger_open_chatbot_en.jpg

3️⃣ Custom Event

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.

trigger_custom_event_en.jpg

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?
1 out of 1 found this helpful