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 Plus resource with the Enviar Link operation, it allows sending a message containing a link via WhatsApp using the WhatMaster service.

Common scenarios where this node is beneficial include automating customer notifications, marketing campaigns, or transactional messages that require sending clickable links directly to users' WhatsApp numbers.

For example, a business can use this node to automatically send a payment link or a product catalog link to customers after an order is placed.

Properties

Name Meaning
Número do WhatsApp The recipient's WhatsApp number in international format (e.g., 5511999999999).
Mensagem The text content of the message to be sent, which can include the link.
External Key An optional external identifier key to track or correlate the message externally.

Output

The node outputs JSON data representing the response from the WhatMaster API after attempting to send the message. This typically includes confirmation details such as message status, IDs, or error information if the request failed.

No binary data output is produced by this node.

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 environment variables are required beyond the API credentials.

Troubleshooting

  • Missing Credentials:
    Error: "No credentials found. Please configure the WhatMaster API credentials."
    Resolution: Ensure the WhatMaster API credentials are properly set up in n8n with both the Bearer token and external code.

  • Missing Bearer Token or External Code:
    Errors indicating these are required mean the credentials are incomplete.
    Resolution: Verify that both token and external code fields are filled in the credential settings.

  • Required Parameters Missing:
    For example, if the WhatsApp number or message body is empty, the node throws errors like:

    • "Número do WhatsApp é obrigatório."
    • "Mensagem é obrigatória."
      Resolution: Provide valid values for all required input properties.
  • Unsupported Operation:
    If an operation other than those implemented is selected, the node will throw an error indicating the operation is not supported.

  • Network or API Errors:
    Any HTTP request failure will result in an error. Check network connectivity and API availability.

Links and References

Discussion