Actions29
- Chat Actions
- Contact Actions
- Group Actions
- Message Actions
- Status Actions
Message → Send Location
AI-generatedOverview
This node operation sends a location message via WhatsApp using the Green API. It allows users to specify the chat ID, latitude, longitude, and optionally the location name, address, and a quoted message ID to reply to. This is useful for sharing precise geographic locations in chats, such as sending a restaurant location or meeting point.
Use Case Examples
- Sending a location message to a friend with latitude and longitude coordinates.
- Sharing a business address with a name and address details in a group chat.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The identifier of the chat where the location message will be sent. For private chats, use phone@c.us; for group chats, use chatId@g.us. |
| Location Name | Optional name of the location to display in the message. |
| Address | Optional address of the location to display in the message. |
| Latitude | Latitude coordinate of the location to send. |
| Longitude | Longitude coordinate of the location to send. |
| Override Credentials | Optional override for the instance ID and API token credentials for this specific operation. |
| Quoted Message ID | Optional ID of a message to quote in the location message reply. |
Output
JSON
chatId- The chat ID where the location message was sent.latitude- Latitude of the sent location.longitude- Longitude of the sent location.nameLocation- Name of the location if provided.address- Address of the location if provided.quotedMessageId- ID of the quoted message if provided.messageId- ID of the sent location message returned by the API.
Dependencies
- Green API service with instance ID and API token credentials
Troubleshooting
- Ensure the chat ID is correctly formatted (e.g., phone@c.us for private chats or chatId@g.us for groups).
- Verify that latitude and longitude are valid numeric values.
- Check that the API credentials (instance ID and API token) are correct and have permission to send messages.
- If quoting a message, ensure the quoted message ID exists and is valid.
- Common error messages include failures to send the location due to invalid parameters or authentication errors; verify the data sent matches the API requirements.
Links
- Green API Send Location Documentation - Official documentation for sending location messages via Green API.