MegaAPI icon

MegaAPI

Interact with MegaAPI WhatsApp service

Message → Forward Message

AI-generated

Overview

This node operation forwards an existing WhatsApp message to another contact. It is useful in scenarios where you want to resend or share a received message with a different WhatsApp user without manually copying the content. For example, a customer support bot can forward a customer's message to a supervisor for review.

Use Case Examples

  1. Forward a received WhatsApp message to a different contact by providing the original message key and message content.
  2. Automate message forwarding in a WhatsApp-based workflow to share important messages with team members.

Properties

Name Meaning
To (Contact) The WhatsApp contact to forward the message to, formatted as phone_number@s.whatsapp.net (e.g., 551199999999@s.whatsapp.net).
Key (JSON) The message key object containing remoteJid, fromMe, and ID fields to identify the original message to forward.
Message (JSON) The message object containing the message content and metadata to forward.

Output

JSON

  • status - The status of the forward message operation, indicating success or failure.
  • messageId - The ID of the forwarded message returned by the WhatsApp service.

Dependencies

  • Requires an API key credential for MegaAPI WhatsApp service authentication.

Troubleshooting

  • Ensure the 'To (Contact)' field is correctly formatted as phone_number@s.whatsapp.net; otherwise, the message will not be delivered.
  • The 'Key (JSON)' must correctly identify an existing message; incorrect keys will cause forwarding to fail.
  • The node may throw errors if the MegaAPI service is unreachable or if authentication credentials are invalid. Verify API token and network connectivity.

Discussion