Actions90
- Sessions Actions
- Messages - Sending Actions
- Chats Actions
- Messages - Actions Actions
- Groups Actions
- List Groups
- Group Info
- Get Invite Link
- Revoke Invite Link
- Join via Link
- Preview via Link
- Create Group
- Delete Group
- Update Group Description
- Toggle Announcement Mode
- List Participants
- Add Participants
- Remove Participants
- Demote Participants
- Approve Join Request
- Reject Join Request
- List Join Requests
- Get Group Picture
- Set Group Picture
- Delete Group Picture
- Leave Group
- Update Group Name
- Lock Group Edits
- Promote Participants
- Profile Actions
- Server Actions
- Miscellaneous Actions
Overview
This node operation sends a location message via the WARest WhatsApp REST API. It allows users to share geographic coordinates (latitude and longitude) along with optional name and address details to a specified recipient or chat session. This is useful for scenarios where you want to share a precise location, such as meeting points, event venues, or places of interest, directly through WhatsApp messaging.
Use Case Examples
- Sending a location of a meeting point to a contact or group chat.
- Sharing a restaurant's location with friends via WhatsApp.
Properties
| Name | Meaning |
|---|---|
| Session | The WhatsApp session ID to use for sending the location message. It can be selected from a list of active sessions or entered manually. |
| Recipient / Chat (to) | The phone number or JID of the recipient or chat where the location message will be sent. Can be a single or comma-separated list. |
| Location | The geographic coordinates and optional descriptive details of the location to send. Includes latitude, longitude, name, and address. |
| Additional Fields | Optional message settings such as sending typing indicators before the message, replying to a specific message ID, or marking the message as forwarded. |
Output
JSON
jsonlatitude- Latitude of the sent location.longitude- Longitude of the sent location.name- Optional name of the location.address- Optional address of the location.
Dependencies
- Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.
Troubleshooting
- Ensure the session ID is valid and active; otherwise, the message will not send.
- Latitude and longitude are required fields; missing these will cause an error.
- The recipient field must be a valid phone number or JID; invalid formats will cause failures.
- If using replyMessageId, ensure the referenced message ID exists in the chat.
- Check API credentials and base URL configuration if authentication errors occur.
