Actions22
- Broadcasts Actions
- Embeddings Actions
- Contacts Actions
- Conversations Actions
- Tags Actions
Overview
This node operation allows sending a message to a specific conversation using the Cogfy Messenger API. It supports sending different types of messages such as text, images, and documents. This is useful in scenarios where automated communication or notifications need to be sent within a messaging platform, for example, customer support bots sending updates or alerts directly into user conversations.
Practical examples include:
- Sending a text confirmation message after a user completes a form.
- Sharing an image or document file as part of a support ticket update.
- Automating reminders or announcements by posting messages into ongoing conversations.
Properties
| Name | Meaning |
|---|---|
| Conversation Id | The unique identifier of the conversation where the message will be sent. |
| Content | The textual content of the message. Required for text messages; optional for media messages. |
| Type | The type of message to send. Options: Text, Image, Document. |
| Media | JSON object containing media details (e.g., URL, caption) required when sending media types. |
Output
The node outputs JSON data representing the response from the Cogfy Messenger API after sending the message. This typically includes information about the sent message such as its ID, status, timestamp, and any metadata returned by the API.
If media is sent, the output may also contain references or URLs related to the uploaded media.
Dependencies
- Requires an API key credential for authenticating with the Cogfy Messenger API.
- The base URL for the API must be configured in the node credentials.
- The node depends on the external Cogfy Messenger service to send messages.
Troubleshooting
- Missing or invalid Conversation Id: Ensure the conversation ID is correct and exists in the Cogfy Messenger system.
- Content required for text messages: When sending a text message, the content property must not be empty.
- Invalid media JSON: For media messages, ensure the media property contains valid JSON with all required fields.
- Authentication errors: Verify that the API key credential is correctly set up and has necessary permissions.
- API connectivity issues: Check network access and the configured base URL for the Cogfy Messenger API.
Links and References
- Cogfy Messenger API Documentation (example placeholder link)
- n8n documentation on Creating Custom Nodes