How to Configure Subscription to Broadcast Topics?
Subscription to broadcast topics allows users to automatically receive broadcasts after completing a certain step in the bot. The user subscribes to a topic, and the system automatically sends them corresponding broadcasts according to automatic broadcast settings.
When Needed
- You need to add the ability to subscribe to broadcasts in the bot scenario.
- You need to configure automatic broadcast for users who performed a specific action.
- You need to organize user segmentation by broadcast topics.
What's Important to Know
- Topic subscription — action in the bot scenario that adds the user to the topic subscribers list.
- After subscription, the user automatically receives broadcasts according to automatic broadcast settings.
- There can be multiple topics. The user can subscribe to different topics after different actions in the bot.
- For operation, you need to previously create a broadcast topic and configure automatic broadcasts.
Prerequisites
You are logged in with integrator or administrator rights. There is a created broadcast topic in the system. Automatic broadcasts are configured for this topic in the system. You have access to the scenario constructor.
Step-by-Step Instructions
- Go to the bot's scenario constructor.
- Find the block after which you need to add topic subscription (for example, after registration or category selection).
- Add an "Action" block to the scenario.
- In the "Action" block settings, select the
broadcast__subscribefunction. - In the action parameters, specify the broadcast topic name to which the user should subscribe.
- Connect the block to subsequent scenario blocks.
- Save changes in the scenario.
What Happens After
After going through this block, the user automatically subscribes to the specified topic and receives corresponding broadcasts according to automatic broadcast settings. For example, if an automatic broadcast "24 hours after subscription" is configured, the user will receive it 24 hours after going through the subscription block.
💡 Tip: There can be multiple topics. The user can subscribe to different topics after different actions in the bot. This allows segmenting users and sending them relevant messages.
How to Verify It Worked
- Check that the
broadcast__subscribeaction block is added to the scenario. - Make sure the topic name is specified correctly and matches an existing topic in the system.
- Test the scenario by going through the subscription block and check that the user actually subscribed to the topic.