Buttons with a link

To make the bot display buttons with links to clients, when creating (or editing) a button, you need to:

Step 1. Create a button and Select type to "Default":

Step 2. In the URL field, enter:

а) a direct link:

b) A variable that contains a link:

Clicking the button will open the URL specified in its settings.

Click notification

To track when a client clicks a link or button and configure subsequent actions, use the "Click notification" checkbox in the button settings.

Click the checkbox to receive callbacks (event notifications) when a client clicks the button:

Next, click "Edit" or "Add" (depending on whether you are editing an existing button or creating a new one).

Example

Let's test the button. After clicking it, you should see a prompt to follow the link.

The callback will not be received until the client clicks "learn more".

If the client follows the link, a callback of the following form will appear in the Clients section in the client’s dialogue: link_was_pressed #{URL}, where link_was_pressed is the callback body (event in the project), and #{URL} is your link.

To configure a reaction to the callback, create a trigger block where you specify the callback in the trigger field, or specify the callback in the connection trigger:

Option 1. Create a trigger block that will trigger only if the callback is received:

In this example, we used the "Trigger" block — it will also trigger only if the specified callback is received, but it will not remove the client from the main funnel.

You can use another trigger block as well.

Option 2: Use a connection trigger

While both require the callback to trigger, they affect the flow differently:

  • Option 1 (Fallback block): Keeps the user in the same state.

  • Option 2 (Connection): Advances the user to the next funnel state.

Last updated