NotificaMe Hub icon

NotificaMe Hub

Integração com NotificaMe Hub API

Overview

The "Messenger - Enviar Arquivo" operation in this custom n8n node allows users to send a file (either an image or a video) to a recipient on the Messenger platform. This is useful for automating the delivery of media content such as promotional images, product videos, or any other visual material directly through Messenger channels.

Practical scenarios include:

  • Sending marketing images or video clips to customers automatically after they subscribe or interact with a chatbot.
  • Delivering instructional videos or product demos to users who request them via Messenger.
  • Sharing event photos or highlights with participants in a Messenger group or channel.

Properties

Name Meaning
ID Do Canal The unique identifier of the Messenger channel from which the file will be sent.
ID Do Destinatário The unique identifier of the recipient user on Messenger who will receive the file.
Tipo Do Arquivo The type of file to send. Options are: Imagem (image) or Vídeo (video).
URL Do Arquivo The publicly accessible URL of the file to be sent.

Output

The node outputs JSON data representing the result of the file sending operation. This typically includes confirmation details such as message IDs, status, timestamps, or error information if the sending failed.

If the node supports binary data output (not explicitly shown here), it would represent the actual file content or related media metadata. However, based on the provided code and properties, the output focuses on JSON response data confirming the action.

Dependencies

  • Requires an API key credential for authenticating with the NotificaMe Hub API.
  • The node uses the NotificaMe Hub API endpoint at https://hub.notificame.com.br/v1.
  • Proper configuration of the API key credential within n8n is necessary.
  • The file to be sent must be accessible via a public URL.

Troubleshooting

  • Common issues:

    • Invalid or missing channel ID or recipient ID can cause failures in message delivery.
    • Providing a non-public or inaccessible file URL will prevent the file from being sent.
    • Incorrect file type selection (e.g., choosing "video" but providing an image URL) might lead to errors or unexpected behavior.
    • Network or API authentication errors due to invalid or expired API keys.
  • Error messages:

    • Authentication errors indicating invalid credentials require checking and updating the API key.
    • File not found or inaccessible URL errors suggest verifying that the file URL is publicly reachable.
    • Validation errors about missing required fields mean ensuring all mandatory properties are correctly filled.

Links and References

Discussion