NotificaMe Hub icon

NotificaMe Hub

Integração com NotificaMe Hub API

Overview

The Messenger - Enviar Arquivo operation in the NotificaMe Hub n8n node allows you to send a file (image or video) to a specific recipient via a Messenger channel. This is useful for automating workflows where you need to deliver media content—such as sending product images, promotional videos, or informational graphics—to users on Messenger.

Practical examples:

  • Sending a product image to a customer after they request information.
  • Delivering a video tutorial to a user who interacts with your Messenger bot.
  • Automating the distribution of event flyers or marketing materials.

Properties

Display Name Type Description
ID Do Canal String The Messenger channel ID through which the file will be sent. Required.
ID Do Destinatário String The recipient's Messenger ID. Required.
Tipo Do Arquivo Options The type of file to send: "Imagem" (image) or "Vídeo" (video). Default is "Imagem".
URL Do Arquivo String The public URL of the file to be sent. Required.

Output

The node outputs a json object containing the result of the file-sending operation. While the exact structure may depend on the API response, it typically includes:

  • Status of the message delivery (success/failure)
  • Any relevant IDs (e.g., message ID)
  • Error messages if the operation failed

Example output:

{
  "status": "success",
  "messageId": "1234567890",
  "recipientId": "987654321",
  "fileType": "image",
  "fileUrl": "https://example.com/image.jpg"
}

If the operation fails, the output may include an error message:

{
  "status": "error",
  "message": "Invalid recipient ID"
}

Dependencies

  • External Service: Requires access to the NotificaMe Hub API.
  • API Credentials: You must configure the notificamehubApi credential in n8n.
  • File Hosting: The file to be sent must be accessible via a public URL.

Troubleshooting

Common issues:

  • Invalid Channel or Recipient ID: Ensure both IDs are correct and correspond to valid Messenger entities.
  • Inaccessible File URL: The file must be publicly accessible; private or expired links will cause failures.
  • Unsupported File Type: Only images and videos are supported. Other file types will not be delivered.
  • Authentication Errors: Make sure your NotificaMe Hub API credentials are correctly set up in n8n.

Error messages and resolutions:

  • "Invalid recipient ID": Double-check the recipient's Messenger ID.
  • "File not found" or "URL inaccessible": Verify that the file URL is correct and publicly reachable.
  • "Unauthorized": Reconfigure your NotificaMe Hub API credentials in n8n.

Links and References

Discussion