Actions53
- Account Actions
- Contact Actions
- Group Actions
- Message Actions
- Session Actions
Message → Send Location
AI-generatedOverview
This node operation sends a location message via WasenderAPI. It allows users to specify the recipient, geographic coordinates (latitude and longitude), and optional details such as location name and address. This is useful for sharing precise location information in WhatsApp messages, for example, sending a meeting point or a place of interest to a contact or group.
Use Case Examples
- Sending a location to a contact by specifying their phone number and the coordinates of the location.
- Sharing a location with a group chat including a descriptive name and address for clarity.
Properties
| Name | Meaning |
|---|---|
| Session | Select or specify the WhatsApp session to use for sending the message. Optional if the session is auto-selected from incoming data. |
| Recipient | The phone number, group JID, or channel JID of the message recipient. Required. |
| Text | Optional text message to accompany the location. |
| Message Options | Additional options for the message, such as replying to a specific message ID. |
| Latitude | Latitude coordinate of the location to send. Required. |
| Longitude | Longitude coordinate of the location to send. Required. |
| Location Name | Optional name or label for the location. |
| Address | Optional address or description of the location. |
| Options | Request options for API call behavior, including retry settings on failure. |
Output
JSON
to- The recipient identifier (phone number, group JID, or channel JID).locationlatitude- Latitude coordinate of the sent location.longitude- Longitude coordinate of the sent location.name- Optional name of the location.address- Optional address or description of the location.
text- Optional accompanying text message.replyTo- ID of the message this location message is replying to, if specified.
Dependencies
- WasenderAPI service with API key credential
Troubleshooting
- Ensure the session ID is correctly specified or auto-selected; missing session causes errors.
- Recipient must be a valid phone number or group/channel JID; invalid format will cause failure.
- Latitude and longitude must be valid numbers; zero or missing values may cause the message to fail.
- Reply To Message ID must be a positive integer if used; otherwise, an error is thrown.
- Network or API errors may occur; retry options can help mitigate transient failures.