Cativa icon

Cativa

Consume Cativa API

Overview

The "Invite to Group" operation of the Cativa n8n node allows you to invite a user to a specific group by providing their email address and the target group's ID. This is useful for automating user management tasks, such as onboarding new members into groups within your application or platform that integrates with the Cativa API.

Common scenarios:

  • Automatically adding users to project teams or discussion groups after registration.
  • Batch-inviting multiple users to a group as part of an onboarding workflow.
  • Integrating with other systems (e.g., CRM, HR) to synchronize group memberships.

Example:
You could use this node in a workflow where, after a user signs up on your website, they are automatically invited to a relevant group in your Cativa-powered community.

Properties

Name Meaning
Email The email address of the user to be invited to the group. Must be a valid email format.
Group ID The unique identifier of the group to which the user will be invited.

Output

The output is a JSON object (or array of objects if processing multiple items). The structure typically includes the result of the invitation action. If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Example output:

[
  {
    "success": true,
    "message": "User invited successfully",
    "email": "[email protected]",
    "groupId": "12345"
  }
]

Or, in case of error:

[
  {
    "error": "User already exists in the group"
  }
]

Dependencies

  • External Service: Requires access to the Cativa API.
  • API Credentials: You must configure the cativaApi credential in n8n for authentication.
  • n8n Configuration: No additional environment variables are required beyond the credential setup.

Troubleshooting

  • Invalid Email Format: Ensure the "Email" property contains a valid email address.
  • Missing or Incorrect Group ID: Double-check that the "Group ID" matches an existing group in your Cativa system.
  • Authentication Errors: If you see errors related to authentication, verify your cativaApi credentials in n8n.
  • Error Messages:
    • "User already exists in the group": The user has already been invited or is a member.
    • "Group not found": The provided Group ID does not exist.
    • "Authentication failed": Check your API credentials.

Links and References

  • n8n Documentation
  • (If available) Cativa API documentation – refer to your service provider for details.

Discussion