Workflow Create Chat Message Actions
List of valid attributes:
Attribute | Description | Specifics |
---|---|---|
author_id | ID of the author of the message | Cannot be set, defaults to the ID of the user who creates the action |
chat_id | ID of the chat for which a message will be created | Required |
content | HTML content of the message | Required, 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
Parameter | Description |
---|---|
workflow_id | The ID of the workflow that the action will be added to |