⭐️ Triggers

Feature: Triggers

Triggers are buttons that show up when they’re triggered by their flags; they have text and, when clicked, open a new link.

There are two types of triggers:

  1. Input: Check if the flag exists in the end user’s message. For example, if the user sends “Hi, How can I schedule a call?” and “Call” is a flag, then this triggers it.

  2. Page: Check if the flag exists in the URL. Eg: ”https://www.await.ai/home” and “home” is a flag, then this triggers it.

Instructions (Input Triggers):

  1. Go to the agent's tab and click on an agent you have created

    image-20240424-185813.png
  2. Once inside your agent panel click triggers

    image-20240702-022857.png

    3. Click Create

  3. For input triggers, Flags are the keywords that when found in the user input (message), a button will show up; the button will have the text from the Text field, and then when clicked, it’ll open the link from the Link field

  4. Click “Save”

  5. When the user sends an input that includes the flag, “Schedule” in this case, a button that says “Schedule a call” appears.

  6. When clicked, it opens the link from the link field, Google, in this case


Instructions (Page Triggers):

  1. Go to the agent's tab and click on an agent you have created

  2. Once inside your agent panel click triggers

  3. For the Page type of triggers, Fill in the fields, Flags are the keywords that when found in the page URL a button will show up, the button will have the text from the Text field, and when clicked, it’ll open the link from the Link field

  4. Click “Save”

  5. Since the URL “https://preview-html5.playcode.io/” Contains the word “playcode” the button shows up at the top

  6. When the button is clicked, the link from the link field is opened