User State
Page describing the user state API
Last updated
Page describing the user state API
Last updated
GET
https://api.jelou.ai/v1/users/:userId/state
This endpoint retrieve a specific user state.
Name | Type | Description |
---|---|---|
POST
https://api.jelou.ai/v1/users/state
This endpoint allows you to change the state of the user from manual to automatic or the other way around.
Take to account that when the bot is set to manual, answers won't be replied and sent by the bot to the chatbot user. To answer in manual state is up to you. The sending messages endpoints must be used for answering when the user is in manual state.
Name | Type | Description |
---|---|---|
userId
string
User phone number. (Without the "+" sign)
ttl
number
Manual state expiration time
botId
string
Bot id
userId
string
User phone number. (Without the "+" sign)
state
string
State of the user that we want to change it for. (Option: "manual" or "auto")