NodeAction

Single action to perform when the candidate enters a Node. This has many different variations like say-text, say-contact, ask-text, say-location, say-list, etc..

Endpoints

  • GET /node-actions - Retrieve all node actions (of all flows and nodes)

  • GET /node-actions/{id} - Retrieve a single node action by ID

  • POST /node-actions - Create a new node action

  • PATCH /node-actions/{id} - Update a node action by ID

  • DELETE /node-actions/{id} - Delete a node action by ID

Attributes

Field
Type
Description

actionType

String

Type of action (can be either 'ask' or 'say')

value

Object

A json-object containing the data required to perform the action

variableName

String

Where to store the user answer in the session (only for type 'ask')

index

Integer

Position within the node, index 0 is the first action

subType

String

Type of the content to be delivered: 'text', 'contact', 'location', 'list', 'appointment', 'image', 'video', 'audio', 'document', 'set-variable'

HTTP methods

Field
GET
POST
PATCH

actionType

X

X

X

value

X

X

X

variableName

X

X

X

index

X

X

X

subType

X

X

X

Example bodies

Post

variableName is only required when actionType is set to ask.

Patch

OpenAPI

Get a NodeActions

get
Authorizations
AuthorizationstringRequired

Bearer

Path parameters
idstringRequired
Responses
200

NodeActions found

application/vnd.api+json
get
/node-actions/{id}
200

NodeActions found

Patch a NodeAction

patch
Authorizations
AuthorizationstringRequired

Bearer

Path parameters
idstringRequired
Body
Responses
200

NodeTransition updated

application/vnd.api+json
patch
/node-actions/{id}
200

NodeTransition updated

Last updated