1
Retrieve the company's available tags
Get the catalog with the
id of each tag.2
Check the conversation's current tags
Review which tags the conversation already has before modifying them.
3
Assign or update the tags
Send the complete list of
id values the conversation should end up with.Authentication
Every endpoint on this page belongs to thehttps://api.jelou.ai domain and uses basic authentication.
See Introduction to learn how to build the
Authorization: Basic header.How the roomId is built
The roomId identifies the conversation between a channel and an end user. It is not a random value: it is built by joining the G prefix, the channel’s botId, and the end user’s id with colons.
Example
For channel1234 and user 987654, the roomId is:
You can get both values from Get a conversation: the
botId in data.Bot.id and the userId in data.User.id.1. Retrieve the company’s available tags
Returns the catalog of tags available to a company. Use this endpoint to find theid values you need when assigning tags.
Endpoint
Path parameters
Query parameters
Request example
Response example
Response details
2. Get a conversation’s information
Returns the full information of a conversation, including the tags currently associated with it.Endpoint
Path parameters
Query parameters
Request example
Response example
3. Assign or update a conversation’s tags
Assigns or updates the tags of a conversation.Endpoint
Path parameters
Body parameters
Request example
Response example
Considerations
- Every tag you send must exist and be available to the specified channel.
- To keep the already assigned tags and add new ones, send both the existing and the new tags in the array.
- If you send an empty array (
[]), all tags associated with the conversation are removed.
Example
Say the conversation currently has the tags[14, 15].
To add tag 20 and keep the existing ones, send all three:
14 and 15 are replaced and the conversation keeps tag 20 alone: