Buttons with a link
How to create a button 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.
Note!
Each messenger has its own specifics. For example, in Telegram and Instagram, you can only add a link to an inline button (buttons in the text).

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.

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:

Please note!
The builder has a limit of 500 trigger blocks per project.
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