Plug Chat icon

Plug Chat

Create and edit data in PlugChat

Overview

The Plug Chat node's "Message" resource with the "Send Video" operation allows you to send a video message via WhatsApp to a specified phone number. This is useful for automating communication workflows where sending multimedia content (specifically videos) is required, such as marketing campaigns, customer support, or notifications that benefit from rich media.

Example scenarios:

  • Sending promotional video clips to customers.
  • Sharing instructional or informational videos in response to user queries.
  • Automating follow-up messages with video content after a form submission.

Properties

Name Type Meaning
Phone String Phone number with country code to which the video will be sent.
Media URL String URL or Base64 string of the video file to send.
Caption String Optional caption text to accompany the video.
Message ID String (Optional) ID of the message to reply to; used for threading replies.
Delay Number (Optional) Delay in seconds before sending the message.

Output

The node outputs a json object containing the response from the PlugChat API after attempting to send the video message. The exact structure depends on the API response, but typically includes fields such as status, message ID, and any error information if applicable.

If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Example output:

{
  "status": "success",
  "messageId": "abc123",
  "details": { ... }
}

or, on error:

{
  "error": "Invalid phone number format"
}

Dependencies

  • External Service: Requires access to the PlugChat API.
  • API Key/Credentials: You must configure the plugChatApi credential in n8n.
  • Environment: No special environment variables are required beyond standard n8n setup.

Troubleshooting

Common issues:

  • Invalid phone number: Ensure the phone number includes the country code and contains only digits.
  • Media URL problems: The provided URL or Base64 string must point to a valid, accessible video file.
  • Missing credentials: Make sure the plugChatApi credential is set up correctly in n8n.
  • API errors: If the API returns an error, check the error message in the output for details.

Error messages:

  • "Invalid phone number format": Check that the phone number is correct and formatted properly.
  • "Media not found": Verify the media URL or Base64 data is valid and accessible.
  • "Authentication failed": Ensure your API credentials are correct and active.

Links and References

Discussion