Skip to main content
Messaging

WhatsApp: Send file

WhatsApp: Send file

Sends a file (image, document, audio, video) to one or more phone numbers through a WhatsApp bot configured in the Roberty account. Optionally, a caption can be included alongside the file.


Note

You must have a WhatsApp bot configured in Roberty Studio to use this action. Go to the Devices section in the Studio, select the desired device and open the WhatsApp tab to configure the bot.

Options

Origin bot

Select the WhatsApp bot registered in the Studio that will be used to send the file.

Destination numbers

One or more phone numbers the file will be sent to. Enter the numbers in the international format with the country and area codes, without spaces or special characters, for example 5511999999999.

File

Full path of the file to be sent on the computer where the robot is being executed, for example C:\Reports\report.pdf.

File caption

Optional text shown below the file sent. Optional field.

Returns

This action has no returns.

Rules and Conditions

  • The Origin bot field is required and must reference an active WhatsApp bot.
  • At least one number must be provided in the Destination numbers field.
  • The numbers must be in the international format (country code + area code + number), without spaces, dashes or parentheses.
  • The File field is required and must contain the full path of an existing file on the computer where the robot is being executed.
  • The File caption field is optional.
  • If the origin bot is not active or the connection has been closed, the action ends with an error.
  • If the file does not exist at the path provided, the action ends with an error.