Green API icon

Green API

Send WhatsApp messages via Green API

Overview

This node enables creating a new WhatsApp group via the Green API service. It allows users to specify a group name and add multiple participants by their chat IDs. This is useful for automating group creation in WhatsApp, such as setting up project teams, event groups, or customer support groups dynamically from workflows.

Practical examples:

  • Automatically create a WhatsApp group for a new project team with all relevant members added.
  • Set up a customer support group including specific agents based on incoming requests.
  • Create event-specific groups with invited participants listed by their phone numbers.

Properties

Name Meaning
Group Name The name of the WhatsApp group to be created.
Group Participants Comma-separated list of WhatsApp chat IDs (phone numbers with domain) to add to the group.

Output

The output is a JSON array containing the response from the Green API after attempting to create the group. This typically includes details about the newly created group such as its ID and status. The exact structure depends on the Green API's response format.

No binary data output is involved in this operation.

Dependencies

  • Requires an active Green API account with valid credentials (instance ID and API token).
  • The node uses HTTP POST requests to the Green API endpoints.
  • Proper configuration of the Green API credentials in n8n is necessary for authentication.

Troubleshooting

  • Failed to create group: This error may occur if the group name is missing, invalid chat IDs are provided, or the API credentials are incorrect. Verify that the group name is set and chat IDs follow the correct format (e.g., 972501234567@c.us).
  • Network or API errors: Ensure that the Green API service is reachable and your credentials have sufficient permissions.
  • Invalid chat IDs: Make sure the participant chat IDs are valid WhatsApp identifiers and separated by commas without extra spaces.
  • If the node throws an error with detailed data sent, review the payload to ensure all required fields are correctly formatted.

Links and References

Discussion