...
Navigate to the Flow Builder. Select an action block and choose "Advanced actions." Explore the "Bot User API" options.
...
Video Tutorials
...
Available Actions
List all tags
Check if the user has a certain tag
Add or remove tags
List subscribed sequences
Retrieve shopping cart details
List shop orders
List chat text messages
...
You can access the chat history of the last 50 messages. You have the option to include agent messages, and bot messages, and choose the format (default, text, or text with time) according to your preference.
Remove All Smart Delays
Description
The Remove All Smart Delays action clears all smart delay actions associated with a specific bot user. This feature is useful for instantly removing any queued delays, allowing for immediate bot responses.
How to Remove All Smart Delays
Go to the Flow, Select Action Node and choose Advance Action. Then select the Bot User API option
...
Now Select the option Remove All Smart Delays action.
...
Now you have to add User NS of the User you want to remove all smart delays or You can use a System Fields which contains User Ns.
...
In the Sample Data you will see status: "ok" and delete: "0" which means all smart delay have been removed Successfully.
Use Cases
Instant Reset: Instantly remove all pending delays for a user to improve response times.
Response
Success: Returns a
200 OK
status with a message confirming all smart delays have been removed.
Error: Returns an appropriate error code if the user Ns is not found or if the request fails.
Remove All Scheduled Messages
Description
The Remove All Scheduled Messages action allows for the deletion of all scheduled messages queued for a particular bot user. This action ensures that no further scheduled messages are sent to the user, enabling quick modifications in user interaction plans.
How to Remove All Scheduled Messages
Go to the Flow, Select Action Node and choose Advance Action. Then select the Bot User API option.
...
Now Select the option Remove All Scheduled Messages action
...
Now you have to add UserNS of the User you want to remove all Scheduled Messages.
...
In the Sample Data you will see status: "ok" and delete: "0" which means all Scheduled Messages have been removed Successfully
Use Cases
Bulk Message Removal: Quickly clear all pending messages to prevent redundant or outdated information from being sent.
Precise Flow Adjustment: Modify scheduled messaging plans by removing all queued messages for immediate updates to user interaction.
Response
Success: Returns a
200 OK
status with a message confirming all scheduled messages have been removed.Error: Returns an appropriate error code if the user Ns is not found or if the request fails.