WhatsApp API icon

WhatsApp API

Integração com WhatsApp API para envio de mensagens e gerenciamento

Overview

This node integrates with a WhatsApp API to manage contacts, send messages, handle tickets, sessions, and opportunities. Specifically for the Contact - Update operation, it updates an existing contact's information such as name, WhatsApp number, and email address in the external WhatsApp system.

Common scenarios where this node is beneficial include:

  • Keeping contact details up-to-date in a WhatsApp-based CRM or communication platform.
  • Automating contact management workflows by syncing changes from other systems into WhatsApp contacts.
  • Ensuring customer support or sales teams have the latest contact info for messaging.

Practical example:

  • When a customer's phone number or email changes in your database, you can use this node to update their WhatsApp contact record automatically, ensuring all communications go to the correct details.

Properties

Name Meaning
Contact Name Full name of the contact to update.
Contact Number WhatsApp number of the contact (format example: 5511999999999).
Email Email address of the contact (optional).

Output

The node outputs JSON data representing the response from the WhatsApp API after attempting to update the contact. The structure typically includes confirmation of the update or error details if the operation failed.

If multiple input items are processed, the output is an array where each element corresponds to the respective input item, paired by index.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the WhatsApp API service.
  • The node expects configuration of the base URL and instance ID for the WhatsApp API, provided via credentials.
  • Network access to the WhatsApp API endpoint is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp number format may cause the API to reject the update.
    • Missing required fields like Contact Name or Contact Number will result in errors.
    • Incorrect or expired API credentials will lead to authentication failures.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Errors returned from the API are passed through in the output JSON under an error field.
    • Typical errors might include "Invalid number format", "Contact not found", or "Unauthorized".
  • Resolutions:

    • Verify that the WhatsApp number follows the expected international format without symbols or spaces.
    • Ensure all required properties are set before execution.
    • Check and refresh API credentials if authentication errors occur.
    • Confirm network connectivity and API endpoint availability.

Links and References

Discussion