WhatMaster icon

WhatMaster

Integração com a API WhatMaster para envio de mensagens

Overview

This node integrates with the WhatMaster API to send WhatsApp messages and perform related operations. Specifically, for the API Oficial resource with the Enviar Link operation, it sends a WhatsApp message containing a link to a specified phone number.

Common scenarios where this node is beneficial include:

  • Automating sending promotional or informational links via WhatsApp.
  • Integrating WhatsApp messaging into customer support workflows.
  • Sending quick access URLs to clients or contacts directly from an automation workflow.

For example, you can use this node to send a product catalog link or a booking confirmation URL to a customer's WhatsApp number automatically after an order is placed.

Properties

Name Meaning
Número do WhatsApp The recipient's WhatsApp number in international format (e.g., 5511999999999). Required.
Mensagem The text content of the message to be sent. Required.
External Key An optional external key to associate with the message for tracking or reference purposes.

Output

The node outputs a JSON object representing the response from the WhatMaster API after attempting to send the message. This typically includes status information about the message delivery request.

If the operation succeeds, the output JSON will contain details confirming the message was accepted by the API. If there is an error, the output will contain an error message describing what went wrong.

The node does not output binary data for this operation.

Dependencies

  • Requires configuration of WhatMaster API credentials including:

    • A Bearer token for authorization.
    • An external code identifier used in the API endpoint URL.
  • The node makes HTTP POST requests to the WhatMaster API endpoint:

    https://back.whatmaster.com.br/v1/api/external/{externalCode}
    
  • No additional external services are required beyond the WhatMaster API.

Troubleshooting

  • Missing Credentials: Errors like "No credentials found" or "Bearer Token is required" indicate that the WhatMaster API credentials have not been configured properly. Ensure the API token and external code are set in the node credentials.

  • Required Parameters Missing: Errors such as "Número do WhatsApp é obrigatório" or "Mensagem é obrigatória" mean that mandatory input fields were left empty. Verify that the WhatsApp number and message text are provided.

  • Invalid Phone Number Format: The WhatsApp number must be in the correct international format (e.g., 5511999999999). Incorrect formatting may cause message sending failures.

  • API Errors: If the API returns errors, check the message content and network connectivity. Also verify that the external code and token are valid and active.

  • Operation Not Supported: Using an unsupported operation for the selected resource will throw an error indicating the operation is not supported.

Links and References


Note: This summary focuses on the API Oficial resource and the Enviar Link operation based on the provided properties and source code analysis.

Discussion