WSAPI icon

WSAPI

Interact with WSAPI WhatsApp API

Overview

The node provides integration with the WSAPI WhatsApp API, allowing users to perform various operations on WhatsApp resources such as contacts, messages, chats, groups, and more. Specifically, for the Update Contact operation under the Contact resource, it enables updating details of an existing WhatsApp contact by specifying its unique identifier and new information like full name or first name.

This node is beneficial in scenarios where you need to programmatically maintain or synchronize your WhatsApp contact list, update contact names after changes, or automate contact management workflows. For example, a business could use this node to update customer names in their WhatsApp contact list based on CRM data changes.

Properties

Name Meaning
Contact ID WhatsApp contact identifier in the format: phone number with country code + @s.whatsapp.net (e.g., 1234567890@s.whatsapp.net). This uniquely identifies the contact to update.
Full Name The complete display name for the contact as it should appear in your contacts (e.g., "John Smith" or "ABC Company").
First Name The given or first name of the contact (e.g., "John").

Output

  • The node outputs JSON data representing the result of the update operation.
  • The exact structure depends on the WSAPI response but typically includes confirmation of the updated contact details or status.
  • If the operation returns binary data (not typical for contact updates), it would be included accordingly, but this operation primarily deals with JSON data.

Dependencies

  • Requires an API key credential for authenticating with the WSAPI WhatsApp API.
  • The base URL for the API is configured via credentials.
  • No additional external dependencies are indicated beyond the WSAPI service.

Troubleshooting

  • Common Issues:

    • Incorrectly formatted Contact ID (must include country code and @s.whatsapp.net suffix).
    • Missing required fields such as Contact ID or Full Name when updating.
    • Network or authentication errors due to invalid or missing API credentials.
  • Error Messages:

    • "The resource \"contacts\" is not known!": Occurs if the resource parameter is incorrect; ensure "contacts" is selected.
    • "The operation \"update\" is not implemented yet!": Indicates the operation parameter is invalid or unsupported; verify operation name.
    • API errors related to invalid contact identifiers or permission issues will be returned from WSAPI and surfaced here.
  • Resolution Tips:

    • Double-check input parameters for correct formatting.
    • Ensure valid and active API credentials are provided.
    • Use the node's "Continue On Fail" option to handle partial failures gracefully.

Links and References


Note: The summary is based solely on static analysis of the provided source code and property definitions.

Discussion