WhatsApp MB icon

WhatsApp MB

Use WhatsApp Cloud API

Overview

The WhatsApp MB node for n8n allows you to interact with the WhatsApp Cloud API. Specifically, when using the Default resource and the Mark as Read operation, this node marks a specific received WhatsApp message as "read" using its Message ID. This is useful in automated workflows where you want to programmatically acknowledge incoming messages, such as after processing or responding to them.

Practical Example:

  • After receiving and processing a customer inquiry via WhatsApp, use this node to mark the message as read, signaling that it has been handled.

Properties

Name Meaning
Message ID The Received Message ID. This is the unique identifier of the WhatsApp message you want to mark as read.

Output

  • The output will be a JSON object (or array) reflecting the result of the "mark as read" action. The structure typically includes confirmation details from the WhatsApp API about the message status update.
  • No binary data is produced by this operation.

Dependencies

  • External Service: Requires access to the WhatsApp Cloud API.
  • Credentials: You must configure whatsappCredentialsApi in n8n, which should include:
    • wppToken: Your WhatsApp API token.
    • number_id: The WhatsApp Business Account phone number ID.

Troubleshooting

  • Missing or Invalid Credentials:

    • Error: "No credentials found" or authentication errors from the API.
      Resolution: Ensure your WhatsApp API credentials are correctly set up in n8n.
  • Invalid Message ID:

    • Error: The API may return an error if the provided Message ID does not exist or is not associated with your account.
      Resolution: Double-check the Message ID value.
  • Unsupported Operation:

    • Error: The operation "..." is not supported!
      Resolution: Make sure you select a valid operation as defined in the node.

Links and References

Discussion