WhatsApi icon

WhatsApi

Connect with WhatApp HTTP API

Overview

This node integrates with a WhatsApp HTTP API to create new groups on WhatsApp. It allows users to specify the group subject and participants, facilitating automated group creation workflows. This is useful in scenarios such as customer support, community management, or event coordination where groups need to be dynamically created based on external triggers or data.

For example, a business could automatically create a WhatsApp group for each new project team, adding relevant members and setting the group name accordingly.

Properties

Name Meaning
Phone The phone number associated with the WhatsApp session used to authenticate the request.
Subject The name or title of the WhatsApp group to be created.
Participants A JSON array specifying the participants to add to the group. Each participant is typically identified by their WhatsApp ID or phone number.

Output

The node outputs JSON data representing the response from the WhatsApp API after attempting to create the group. This typically includes details about the newly created group such as its ID, subject, and participant list. The output does not include binary data.

Dependencies

  • Requires connection to a WhatsApp HTTP API endpoint.
  • Needs an API key or authentication token configured in the node credentials to authorize requests.
  • The base URL for the WhatsApp API must be set in the node credentials.
  • The node uses the @devlikeapro/n8n-openapi-node package internally to build and send requests based on an OpenAPI specification.

Troubleshooting

  • Invalid or missing phone number: Ensure the "Phone" property is correctly set and matches the authenticated WhatsApp session.
  • Malformed participants JSON: The "Participants" field expects valid JSON. Invalid JSON will cause errors; validate the input format before execution.
  • API authentication errors: Verify that the API key or authentication token is correctly configured and has sufficient permissions.
  • Network or connectivity issues: Confirm that the WhatsApp API endpoint URL is reachable from the n8n instance.
  • Group creation failures: Check the API response message for reasons such as exceeding participant limits or invalid participant IDs.

Links and References

Discussion