Set the conversation-feedback configuration
Replaces the whole configuration. Only enabled is required, and any wording you leave out goes
back to the default rather than staying as it was.
The change reaches conversations the bot is already having.
Path Parameters
- Type: stringFormat: uuidbot
_id required
Body·
required
application/json
What the bot asks at the end of a conversation.
A wording that is too long, empty or blank is refused rather than trimmed. An answer never carries a blank one: you get the default instead.
- Type: booleanenabledrequired
- Type: stringmessagemin length:1max length:256
What the bot asks.
- Type: stringnegative
_label min length:1max length:20 - Type: stringpositive
_label min length:1max length:20 - Type: stringthank
_you _message min length:1max length:256What the bot answers once the user has replied.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for put/bots/{bot_id}/feedback
curl https://api.landbot.io/v0-alpha/bots/123e4567-e89b-12d3-a456-426614174000/feedback \
--request PUT \
--header 'Content-Type: application/json' \
--header 'Authorization: Token YOUR_AGENT_TOKEN' \
--data '{
"enabled": true,
"message": "How did that go?",
"positive_label": "Great",
"negative_label": "Not great",
"thank_you_message": "Thanks!"
}'
{
"data": {
"enabled": true,
"message": "How did that go?",
"positive_label": "Great",
"negative_label": "Not great",
"thank_you_message": "Thanks!"
}
}