z-api by @jaimeflneto icon

z-api by @jaimeflneto

Interact with Z-API to send WhatsApp messages

Overview

This node sends a video message via WhatsApp using the Z-API service. It is useful for automating the sending of video content to specified phone numbers, optionally including captions and message options such as typing delay, message delay, and replying to specific messages. Practical applications include marketing campaigns, customer support, and automated notifications with video content.

Use Case Examples

  1. Sending a promotional video to a customer with a caption describing the offer.
  2. Sending a tutorial video to a user with a delay to simulate typing before sending.
  3. Replying to a specific message in a chat with a video response.

Properties

Name Meaning
Phone Number The recipient's phone number including country code, formatted as digits only without any special characters or spaces.
Caption Optional text caption to accompany the video message.
Video URL The URL of the video file to be sent in the message.
Options Additional optional settings for the message such as typing delay, message delay, and reply message ID.

Output

JSON

  • phone - The phone number to which the video was sent.
  • caption - The caption text sent with the video.
  • videoUrl - The URL of the video that was sent.
  • messageId - The unique identifier of the sent message.
  • status - The status of the message sending operation (e.g., sent, failed).

Dependencies

  • Z-API service for WhatsApp messaging

Troubleshooting

  • Ensure the phone number is correctly formatted with country code and contains only digits.
  • Verify the video URL is accessible and points to a valid video file.
  • Check that the API credentials for Z-API are correctly configured and have the necessary permissions.
  • If delays are set, ensure they are within the allowed range (0-15 seconds).
  • Common error messages may include invalid phone number format, inaccessible video URL, or authentication failures with the API. Resolving these involves correcting the input data or updating credentials.

Discussion