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 perform various operations related to communication and customer management, including sending messages, managing contacts, tickets, sessions, and opportunities. Specifically for the Opportunity - Delete operation, it allows users to delete an existing sales opportunity by providing its unique ID.

Common scenarios where this node is beneficial include automating CRM workflows such as removing outdated or closed sales opportunities directly from WhatsApp-integrated systems, keeping opportunity data clean and up-to-date without manual intervention.

Practical example: A sales automation workflow that deletes an opportunity when it is marked as lost in another system, triggered via n8n, ensuring the WhatsApp-based CRM reflects the current sales pipeline accurately.

Properties

Name Meaning
Opportunity ID The unique numeric identifier of the opportunity to be deleted. This property is required for the delete operation on the Opportunity resource.

Output

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

Example output JSON structure:

{
  "success": true,
  "message": "Opportunity deleted successfully",
  "opportunityId": 12345
}

If an error occurs, the output will contain an error field describing the issue.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the WhatsApp API.
  • The node uses the base URL and instance ID configured in the credentials to construct API requests.
  • The WhatsApp API must support endpoints for managing opportunities, including deleting them via a RESTful interface.

Troubleshooting

  • Common issues:

    • Invalid or missing Opportunity ID: Ensure the Opportunity ID provided is correct and exists in the system.
    • Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
    • Network or connectivity problems: Check that the WhatsApp API endpoint is reachable from the n8n environment.
  • Common error messages:

    • "Opportunity not found": The specified Opportunity ID does not exist; verify the ID.
    • "Unauthorized" or "Authentication failed": The API key credential is invalid or expired; update credentials.
    • "Request timeout" or "Network error": Temporary connectivity issues; retry the operation later.

Resolving these usually involves verifying input parameters, refreshing credentials, and ensuring network access.

Links and References

Discussion