What it is and what it costs
When a customer sends a location, the chat shows it as a card with a map and Google Maps and Waze buttons, never as numbers. A flow can start on it with the trigger A customer sends a location, and its Distance step tells the customer how far they are from your shop and whether they are inside your delivery area.
On WhatsApp, customers send a location pin or a Google Maps link. On Messenger and Instagram they send a Google Maps link, and Welkai reads it the same way.
The straight line is free. By road gives the real driving distance and time from Google Maps and costs 2 AI credits a lookup (RM 0.07). The same customer within 24 hours is free, and each customer gets at most 10 road lookups a day; after that the step uses the straight line. With your own Google Maps key, Google bills you and no credits are used.
Only road distance uses a key. Finding places, reading links, sending places and straight-line distance stay free either way. To use your own Google Maps key:
- In Google Cloud, turn on the Routes API, set up billing and make an API key. Limit the key to the Routes API, so nobody can spend your Google bill on anything else.
- In Settings > Config, on the Integrations tab, paste it under Google Maps key and press Save and test. Welkai makes one lookup to test it before saving.
- If Google later refuses the key, the card says Google refused your key and road distance uses the straight line until you fix the key and save it again.
Save your places
You need: the name or address of each shop, branch or delivery point, or its Google Maps link. A business keeps up to 100 places.
- Open Automation > Places and press Add place.
- In Search a place or address, type a shop name, a street or a building and pick the right one, or paste a Google Maps link (in Google Maps press Share, then Copy link). You can also press Use my location or tap the map. Drag the pin onto the exact entrance if it is a little off.
- Give it a Name customers will understand, like "Main shop, Jalan Ampang". Add the Address (optional) and Opening hours (optional) if you like: customers may see them.
- Under What customers get with it, add Photos and videos (optional) of the way in and a Directions message (optional): parking, the entrance, the floor. Add a language and each customer gets theirs.
- Set the Delivery or service radius: customers inside it count as within reach. Press Save place.
Send a place
- In a chat, press Attach and pick Place. Pick one of Your places, or Another place to find one now the same way.
- Under Send as, tick any of Location pin, Google Maps link and Waze link. Messenger, Instagram and email show no pin, so the Google Maps link goes instead.
- Press Send place. A saved place goes with its photos, videos and directions, in the language of each customer.
Add distance to a flow
- On Automation > Flows, press New flow, then in the Trigger step pick A customer sends a location. A location starts this flow before keyword flows and the AI intent check, so a pin never costs an AI check.
- Add a Distance step. Under Measure to, pick one place or The nearest saved place.
- Under How to measure, pick Straight line or By road. With By road, keep If road distance can't be found, use the straight line on, so the customer always gets an answer.
- Use what you get in later steps: a Condition on
{{within_radius}}to answer differently inside your area, and{{distance}},{{distance_unit}}and{{directions_link}}in a message.
What happens next
A chat with no location yet takes the No location exit. Ask for one with Wait for reply first: a pin or a Maps link sent as the reply fills in the location.
If you delete a place, a Distance step that measures to it stops there ("no place") until you pick another place in it. A message that sends it goes without it, and a message with only that place is not sent at all. The delete box lists where the place is used, so you can change those first.
The location details a run gets, like {{location_lat}} and {{maps_link}}, are cleared when the run ends. A road lookup sends Google only the two map points, never the customer's name or number.