WhatsApp Multi-Session icon

WhatsApp Multi-Session

Interact with WhatsApp Multi-Session API

Overview

The "Send Location" operation of the WhatsApp Multi-Session node allows users to send geographical location information to a specified recipient via WhatsApp. This feature is particularly useful in scenarios where sharing precise locations is necessary, such as coordinating meetups, providing directions, or sharing location-based services. For example, a user could send their current location to a friend to help them find their way to a specific venue.

Properties

Name Meaning
Session ID The WhatsApp session ID required to authenticate the request.
Phone Number The recipient's phone number (including country code but without the '+' sign).
Latitude The latitude coordinate of the location to be sent.
Longitude The longitude coordinate of the location to be sent.
Location Name An optional name for the location being shared, which can provide context to the recipient.

Output

The output of the "Send Location" operation typically includes a JSON object that confirms the successful sending of the location message. The structure may include fields such as:

  • success: A boolean indicating whether the operation was successful.
  • message: A confirmation message regarding the action taken.
  • Additional metadata related to the sent location, if applicable.

If the node can output binary data, it would generally pertain to any media files associated with the location message, though this operation specifically focuses on textual and location data.

Dependencies

To use this node, an API key credential for the WhatsApp Multi-Session service is required. Users must ensure they have valid credentials configured within n8n to authenticate requests successfully.

Troubleshooting

Common issues users might encounter include:

  • Invalid Session ID: If the provided session ID does not exist or is incorrect, the node will fail to send the location. Ensure the session ID is valid and active.
  • Authentication Errors: If the API key is invalid or expired, users will receive authentication errors. Verify that the API key is correct and has the necessary permissions.
  • Network Issues: Problems with internet connectivity or server availability can lead to failed requests. Check network settings and the status of the WhatsApp Multi-Session API.

Error messages may include:

  • "HTTP 401: Authentication failed" - Indicates issues with the API key.
  • "HTTP 404: Resource not found" - Suggests that the session ID or endpoint is incorrect.
  • "Media link has expired" - Occurs when trying to access a temporary media URL that is no longer valid.

Links and References

Discussion