Get Workflows
Query all workflows available in your bot.Path Parameters
| Field | Location | Type | Required | Description |
|---|---|---|---|---|
| botId | Path | string | Yes | Unique identifier of the bot. |
Request Example
Responses
200 - Successful response
200 - Successful response
401 - Unauthorized
401 - Unauthorized
404 - Not Found
404 - Not Found
Response Detail
| Property | Type | Description |
|---|---|---|
| id | integer | Workflow ID. This ID must be used to configure redirects. |
| name | string | Workflow name. |
| description | string | Workflow description. |
| type | string | Workflow type. |
| state | boolean | Workflow state. Only workflows with state true can be used. |
| default | boolean | Indicates whether the workflow is selected as the default for the bot. |
| createdAt | date | Workflow creation date. |
| updatedAt | date | Date of last update of the workflow. |
Configure User Workflow
Redirect a user to a specific workflow within the conversational flow.Requirements
- The user must have an active session.
Path Parameters
| Field | Location | Type | Required | Description |
|---|---|---|---|---|
| botId | Path | string | Yes | Unique identifier of the bot. |
| userId | Path | string | Yes | Unique identifier of the user. |
| skillId | Path | string | Yes | Identifier of the workflow to which the user will be redirected. |
Request Body
| Field | Location | Type | Required | Description |
|---|---|---|---|---|
| memoryParams | Body | object | No | Optional parameters that can be injected and used later in the workflow. |
Request Example
Responses
200 - Successful response
200 - Successful response
400 - Bad Request
400 - Bad Request
401 - Unauthorized
401 - Unauthorized
404 - Not Found
404 - Not Found