Affibot icon

Affibot

Send messages and manage WhatsApp via Affibot

Message → Send Location

AI-generated

Summary

Send a location message via WhatsApp using the Affibot API.

Inputs

  • session (required) — The session ID of the device.
  • to (required) — The recipient JID (e.g., 628xxx@s.whatsapp.net).
  • latitude (required) — Latitude coordinate of the location to send.
  • longitude (required) — Longitude coordinate of the location to send.
  • isGroup — Set to true if the recipient is a group chat; defaults to false.

Output shape

Array of objects, each containing a json property with the API response from the /api/send-location endpoint.

If continueOnFail is enabled, errors are returned as { json: { error: <message> } } instead of throwing.

Examples

Example 1: Send your current location to a WhatsApp contact.

Set Session ID, To (contact JID), Latitude, Longitude, and optionally enable Is Group for group chats.

Links

Discussion