For the complete documentation index, see llms.txt. This page is also available as Markdown.

Dynamic follow-ups

Dynamic follow-ups are designed in such a way that the context of the dialogue is now analyzed and follow-ups are sent at the optimal time for the client, rather than at a fixed interval.

Dynamic follow-ups automatically adjust message sending times to the client's specific situation, making reminders more personalized. In addition to standard intervals, the system can now take into account important dates and events in the conversation, sending messages precisely when they are most relevant.

For example, if a client has scheduled an appointment for a specific time, a reminder will be sent just before the appointment, rather than after a fixed time interval.

Adding and creating a Dynamic Follow-up

To add the ability to generate a dynamic follow-up in a dialog, you need to create a new Action.

1

Go to the Workflows tab and click Add.

2

Select the step type Set follow-up

3

Fill in the general settings fields in the Trigger Conditions tab

4

Add Arguments in the Action Variables tab

5

Go to the Action Steps section, click Add Step and select Set Follow-Up from the list:

Fill in the required argument in the Follow-up Launch Date-Time field by clicking the gear icon ⚙️ on the right.

6

Now, at each step, you need to configure the message that will be sent to the user:

In our case, we will use the Call Bot function:

Click Save

7

Similarly, we configure steps 2 and 3 and create a message sending for each scheduled reminder. Ultimately, we need to add three separate steps to this action:

8

Click the gear icon ⚙️ to the right of the Add Step button and select Bot Response Rules — All:

Click Save

9

Not only date and time can be passed as arguments, but also any other arguments that can be used as a template for generating a message.

To add an argument to the template of the sent reminder, go to the step settings and insert the generated argument in the desired place in the text:

10

Next, you need to add instructions to the prompt that will tell the Bot to add dynamic follow-ups to the dialog and generate the necessary arguments.

When a client is successfully registered, call the notify_customer function and pass three dates to it: the current date and time, the date and time 1 day before the scheduled meeting (event), and the date and time 2 hours before the scheduled meeting (event).

Where to view scheduled reminders

You can see a full list of scheduled reminders for a specific conversation by going to the Chats section:

Canceling and changing a Dynamic Follow-Up

When working with dynamic follow-ups, you may need to cancel already scheduled reminders—for example, when rescheduling an event, changing a meeting date, or canceling a service. There are two main ways to do this:

  1. Built-in option to remove old follow-ups when installing them.

In the "Set Follow-Up" step settings, you can enable the option "Delete all reminders associated with this step in the dialog when the step is activated." When this step is called again, all previously set reminders will be automatically deleted and replaced with new ones.

Pros of this approach:

  • Simplifies the scenario—no separate action is required for cancellation.

  • Useful for scenarios with regular date changes (automatic replacement).

  • Fewer setup steps.

Cons:

  • Less flexibility—all reminders associated with a step are deleted, with no option to select individual reminders.

  • Reminders cannot be canceled without setting new ones; it functions more like a reminder rescheduling feature.

  1. Using the separate "Undo Follow-Up" action

In this case, a separate action is created in the Actions section, which is entirely responsible for deleting previously set reminders.

Enable the Cancel all follow-ups (Reminders) function for the dialog.

Fill in the name and description of the function.

Click Save

In the main instruction, we write the following: When canceling reminders, call the cancel_follow_ups() function.

Pros of this approach:

  • Full control: you can explicitly call cancel only when necessary.

  • Clear script structure—cancel is not mixed with setup logic.

Cons:

  • Requires an additional script step and separate call logic.

  • Inconvenient for frequent transfers—you'll have to call two actions (cancel + setup).

Last updated