Skip to content

Workflow Create Chat Message Actions

List of valid attributes:

AttributeDescriptionSpecifics
author_idID of the author of the messageCannot be set, defaults to the ID of the user who creates the action
chat_idID of the chat for which a message will be createdRequired
contentHTML content of the messageRequired, supports liquid templates

Create

Example request:

{
"data": {
"id": "85579c3b-22ea-43b8-ab79-d60d05680be5",
"type": "workflow_create_chat_message_action",
"attributes": {
"chat_id": "6d9b9b37-c047-4bc9-a2ed-e22d1a443fe6",
"content": "Hello World"
}
}
}

Example response:

{
"data": {
"id": "85579c3b-22ea-43b8-ab79-d60d05680be5",
"type": "workflow_create_chat_message_action",
"attributes": {
...
}
}
}

This endpoint adds a new create chat message action to a workflow.

HTTP Request

POST /api/v1/workflows/:workflow_id/create_chat_message_actions

URL Parameters

ParameterDescription
workflow_idThe ID of the workflow that the action will be added to