Getting started with Events

Start a chain automatically when a certain condition happens using Events For example, let's create a simple greeting for your chatters

Creating events

Go to Events page and hit "Create My First Event" button. You will see the list of available events. We need "On Chat Message" event:

PlusButton

Here is events editor.

PlusButton

You already recognize variables and commands section from chains (To learn more click here) and there is one new section - conditions.

What are conditions?

This section allows you to trigger event only when a certain conditions happens. To simplify the understanding, chat command event is:

TIP

When chat message received, send "Welcome, ${username}" if message contains "hi" or "hello"

We have "Words Whitelist" condition:

PlusButton

PlusButton

PlusButton

Here it goes:

PlusButton

A little improvement...

Some people may start spamming command (as it usually happens 😄)

PlusButton

To fix it, we added "Cooldown" condition. You can set cooldown time to prevent event from being triggered too often.

PlusButton

There is also "Cooldown ID" option - in this case you can set separated cooldown for each user. It means that event will be triggered for both users even if they say "Hi" at the same time

PlusButton

Now it works perfectly!

PlusButton