Accessing bot user information or using UChat API through coding can be difficult for many users. But with our simple method, you can use API endpoints effortlessly, no coding required.
Accessing API Endpoints
Navigate to the Flow Builder. Select an action block and choose "Advanced actions." Explore the "Bot User API" options.
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
List Tags
For testing purposes, you can retrieve the list of all tags using the User_NS. For permanent storage, you can utilise the Username, First Name, and Last Name system fields.
Check has Tag
You can check whether a user has a tag or not by entering the User NS and Tag Ns.
Where to Find Tag Ns:
Navigate to Contents -> Tag -> Move the Cursor to the Tag you will see the Tag Ns.
Add Tag
To add a tag to the user, simply select the Tag NS.
Remove Tags
The process for removing tags is similar to adding tags. Simply insert the Tag NS to remove the tags.
Remove All tags
It's also the same. You don't need to input any value; it will automatically remove all the tags from the user.
List Subscribed Sequences
By inserting the user's username or first name, you can retrieve the list of subscribed sequences for testing purposes.
List of Cart Items
You will receive a list of all items currently in the cart.
List Shop Order
You will receive a list of all Orders placed by the user.
List Chat 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.
0 Comments