Actions12
- Sesiones Actions
- Mensajería Actions
- Chats y Mensajes Actions
Overview
This node allows sending various types of messages through the "Expertos en IA" API, specifically focusing here on sending video messages within chats. It is useful for automating multimedia communication in chat applications, such as sharing promotional videos, tutorials, or personal video messages.
For the Enviar Video operation under the Mensajería resource, the node sends a video file to a specified chat by providing the chat ID and the URL of the video. Optionally, it can include a caption describing the video and reply to a specific message in the chat.
Practical examples:
- Sending a product demo video to a customer support chat.
- Sharing event highlights via video in a group chat.
- Automatically replying with a video tutorial when a user requests help.
Properties
| Name | Meaning |
|---|---|
| ID del Chat | The unique identifier of the chat where the video will be sent (e.g., 12345@c.us). |
| URL del Video | The direct URL to the video file to send (must be accessible online). |
| Título del Video | Optional text caption that accompanies the video message. |
| Responder a Mensaje | Optional ID of a message in the chat to which this video message will reply. |
Output
The node outputs an array of JSON objects, each representing the response from the API for each input item processed. Each output object contains the full JSON response returned by the Expertos en IA API after attempting to send the video message.
The structure typically includes confirmation details about the sent message, such as message ID, status, timestamps, or error information if the request failed.
No binary data is output by this node; all responses are JSON-formatted metadata about the messaging action.
Dependencies
- Requires an active API key credential for the Expertos en IA service.
- Needs network access to the Expertos en IA API endpoint (
https://api.expertosenia.com). - The video URL must be publicly accessible or accessible by the API service.
- Proper session management is handled internally but requires a valid session name (default is
"default").
Troubleshooting
Common issues:
- Invalid or inaccessible video URL: Ensure the URL points directly to a video file and is reachable by the API.
- Incorrect chat ID format: The chat ID must follow the expected pattern (e.g.,
number@c.us). - Missing required parameters:
chatIdandfileUrlare mandatory. - API authentication errors: Verify the API key credential is correctly configured and active.
- Reply-to message ID not found: If specifying
reply_to, ensure the message ID exists in the chat.
Error messages:
"Operación no válida."— Indicates an unsupported or incorrectly specified operation.- HTTP errors related to authorization or bad requests usually mean invalid credentials or malformed parameters.
- Network timeouts or connection errors suggest connectivity issues to the API endpoint or inaccessible video URLs.
To resolve errors, verify all input properties, check API key validity, and confirm network accessibility.