Cativa icon

Cativa

Consume Cativa API

Overview

This node allows you to post content to a specific group using the Cativa API. It is designed for scenarios where you want to automate posting messages or updates to groups within the Cativa platform directly from your n8n workflows. For example, you could use this node to automatically share announcements, updates, or notifications to a group when certain events occur in your workflow.

Properties

Name Meaning
Content The text or message you want to post to the group.
Group ID The unique identifier of the group where the content will be posted. This is required.

Output

The output will be a JSON object (or array of objects) representing the result of the "Post on Group" operation. The structure typically includes information about the created post, such as its ID, content, timestamp, and possibly metadata returned by the Cativa API. If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Example output:

[
  {
    "id": "12345",
    "content": "Your post content",
    "groupId": "67890",
    "createdAt": "2024-06-01T12:34:56Z"
  }
]

Or, in case of error (with "Continue On Fail"):

[
  {
    "error": "Invalid group ID"
  }
]

Dependencies

  • Cativa API: Requires access to the Cativa API.
  • API Credentials: You must configure the cativaApi credential in n8n for authentication.

Troubleshooting

  • Authentication Errors: If credentials are incorrect or missing, you may see errors like "Authentication failed" or "401 Unauthorized". Ensure your cativaApi credentials are set up correctly in n8n.
  • Invalid Group ID: If the provided Group ID does not exist or is invalid, the API may return an error such as "Invalid group ID".
  • Missing Required Fields: If "Group ID" is not provided, the node will throw an error indicating that a required parameter is missing.
  • API Rate Limits: Excessive requests may trigger rate limiting by the Cativa API.

Links and References

  • n8n Documentation
  • (If available) Cativa API documentation – refer to your organization's resources or contact Cativa support for API details.

Discussion