Actions20
- Session Actions
- Message Actions
- Contact Actions
- Typing Actions
- Webhook Actions
Overview
The "Send Document" operation of the WhatsApp Multi-Session node allows users to send documents via WhatsApp using a specified session. This functionality is particularly useful for businesses and developers who need to automate document sharing, such as sending invoices, reports, or any other files directly to clients or contacts through WhatsApp. For example, a user could set up an automated workflow that sends a PDF invoice to a customer after a purchase is made.
Properties
| Name | Meaning |
|---|---|
| Session ID | The WhatsApp session ID used to authenticate the request. |
| Phone Number | The recipient's phone number, including the country code but without the '+' sign. |
| Document URL | The URL where the document to be sent is located. |
| Filename | An optional filename for the document being sent, which can help the recipient identify it. |
Output
The output of the "Send Document" operation will typically include a JSON object indicating the success of the operation along with any relevant details about the sent document. If the operation is successful, the response may contain information such as message status or confirmation of delivery. If there are issues, error messages will be included in the output.
Dependencies
To use this node, you will need:
- An API key credential for authenticating requests to the WhatsApp Multi-Session API.
- Access to the WhatsApp Multi-Session API endpoint.
Troubleshooting
Common issues users might encounter include:
- Invalid Session ID: Ensure that the provided session ID is correct and active.
- Document Not Found: Verify that the document URL is accessible and points to a valid file.
- Authentication Errors: Check that the API key is valid and has the necessary permissions.
Error messages may include:
- "HTTP 404": Indicates that the document could not be found at the specified URL.
- "HTTP 401": Suggests that authentication has failed, possibly due to an invalid API key.
- "HTTP 403": Implies that access to the requested resource is forbidden.