Actions65
- Custom Field Definitions Actions
- Knowledge Documents Actions
- Media Actions
- Used Tags Actions
- Webhooks Actions
- Sse Actions
- Accounts Actions
- User Management Actions
- Inbox Management Actions
- Conversations Actions
- Conversation Messages Actions
- Bot Actions
- Contacts Actions
Conversation Messages → Conversation Message Controller Create
AI-generatedOverview
This node operation allows sending a message to a conversation in Kuantia CRM. It supports creating a new conversation if no conversation ID is provided, or sending a message to an existing conversation by specifying its ID. The message can be of different types (USER, BOT, NOTE) and formats (TEXT, IMAGE, AUDIO, VIDEO, FILE, CONTACT CARD). Additional metadata can be included depending on the message type. This operation is useful for automating communication workflows, such as sending notifications, updates, or multimedia messages within conversations.
Use Case Examples
- Sending a text message to an existing conversation by specifying the conversation ID.
- Creating a new conversation and sending an image message with a caption.
- Sending a contact card message to a contact through a specified inbox.
Properties
| Name | Meaning |
|---|---|
| Conversation Id | The ID of the conversation to send the message to. If not provided, a new conversation will be created. |
| Message | The message content to send. |
| Type | The type of the message, indicating the sender or nature of the message. |
| Message Type | The format/type of the message content. |
| Content | Additional metadata for the message, structured according to the message type. For example, media details for images or contact details for contact cards. |
| Inbox Id | Required when conversationId is not provided. The ID of the inbox to send the message through. |
| Contact Id | Required when conversationId is not provided. The ID of the existing contact to send the message to. |
| Request Options | Settings for request handling such as batching, SSL certificate validation, proxy configuration, and timeout. |
Output
JSON
id- The unique identifier of the created or updated conversation message.conversationId- The ID of the conversation to which the message was sent.message- The text content of the message.type- The type of the message (USER, BOT, NOTE).messageType- The format/type of the message content (TEXT, IMAGE, AUDIO, VIDEO, FILE, CONTACT CARD).content- Additional metadata associated with the message, structured according to the message type.inboxId- The ID of the inbox used to send the message, if applicable.contactId- The ID of the contact to whom the message was sent, if applicable.createdAt- Timestamp when the message was created.
Dependencies
- An API key credential for authenticating with Kuantia CRM API
Troubleshooting
- Ensure that either conversationId is provided or both inboxId and contactId are specified; otherwise, the message cannot be sent.
- Verify that the message content and content metadata match the specified messageType to avoid errors.
- Check network connectivity and proxy settings if requests fail or time out.
- If SSL certificate validation errors occur, consider enabling the 'Ignore SSL Issues' option if appropriate.