Skip to content
SoulFire LogoSoulFire

Submit dialog

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

Submits a dialog with input values. Used for dialogs containing text fields, checkboxes, dropdowns, or sliders. The dialog is closed after submission. Note: Full dialog response packets are not yet implemented; this clears local 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 submitting the dialog.

Formatuuid

Request Body

application/json
  1. body

Request to submit a dialog with input values. Used for dialogs that have input fields requiring user data.

inputValues*

Map of input key to value for each input field. Keys must match the key field of DialogInput elements.

Response Body

Response for dialog submission.

application/json
  1. response

Response for dialog submission.

success*boolean

Whether the submission was processed successfully.

error?|

Error message if success is false. Possible errors: "No dialog is currently displayed"

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:submit' \
  -H 'Content-Type: application/json' \
  -d '{
  "inputValues": {
    "property1": "string",
    "property2": "string"
  }
}'
Example Response
{
  "success": true,
  "error": "string"
}

Was this page helpful?