Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

This node enables interaction with WhatsApp through the Wappfy API, specifically allowing users to create a new channel in WhatsApp. Creating a channel is useful for broadcasting messages or managing groups of subscribers within WhatsApp. For example, businesses can create channels to share updates, promotions, or announcements to a large audience efficiently.

The "Create Channel" operation lets you specify the channel's name, description, and optionally upload a picture by providing its MIME type, file name, and URL. This facilitates setting up a branded channel with descriptive information and an image.

Properties

Name Meaning
Channel Name The name of the channel to be created.
Description A textual description of the channel, explaining its purpose or content.
MIME Type The MIME type of the channel's picture file (e.g., image/jpeg). Required if a picture is set.
File Name The name of the picture file for the channel. Defaults to "file" if not specified.
File URL The URL where the picture file is located.

Output

The output JSON contains the response from the Wappfy API after creating the channel. It typically includes details about the newly created channel such as its ID, name, description, and possibly metadata about the uploaded picture.

If multiple items are processed, the output is an array of such JSON objects, each representing one created channel.

No binary data output is produced by this operation.

Dependencies

  • Requires an active Wappfy API credential with:
    • Base URL of the Wappfy API.
    • Instance name identifying the WhatsApp session.
    • An API key for authentication.
  • The node makes HTTP requests to the Wappfy API endpoints.
  • Proper network access to the Wappfy API server is necessary.

Troubleshooting

  • Missing required fields: Ensure that "Channel Name" and "Description" are provided. If uploading a picture, "MIME Type" and "File URL" must also be specified.
  • Invalid MIME type or file URL: Verify that the MIME type matches the actual file type and that the file URL is accessible and correct.
  • Authentication errors: Confirm that the API key and instance name credentials are correctly configured.
  • API connectivity issues: Check network connectivity and that the Wappfy API base URL is reachable.
  • Error responses from API: The node returns error messages from the API in the output JSON under an error field if continueOnFail is enabled; otherwise, it throws an error stopping execution.

Links and References

Discussion