Przejdź do treści
SoulFire LogoSoulFire

Close dialog

Ten poradnik jest dostępny tylko po angielsku.

POST
/v1/instances/{instance_id}/bots/{bot_id}/dialog:close

Closes/dismisses the current dialog. Clears the local dialog state.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string

The UUID of the SoulFire instance containing the bot.

Formatuuid
bot_id*string

The profile UUID of the bot to close dialog for.

Formatuuid

Response Body

Response for dialog close.

application/json
  1. response

Response for dialog close.

success*boolean

Whether the dialog was successfully closed.

error?|

Error message if success is false.

Example Request
curl -X POST 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/dialog:close'
Example Response
{
  "success": true,
  "error": "string"
}

Czy ta strona jest pomocna?