iPhone Arrive/Leave shortcuts plus a Grok Bot webhook routine for client visits
Overview
The author shows how an iPhone Arrive or Leave shortcut can POST to a Grok Bot webhook routine, so arrival prepares a client brief and departure captures what was agreed.
Workflow
Trigger: Use a location-triggered routine for two different jobs: prepare on arrival, and capture what happened on departure. The author describes walking into someone's office and getting a message from Grok Bot about a promise of two pricing options for that day's meeting, and the person needing to choose one for Friday's budget meeting. On the way out, Grok Bot posts a question in the chat:
What did you agree to?
The author then opens the conversation, dictates the names, commitments and dates, and asks the bot to draft the follow-up while the details are fresh. The iPhone detects when the user enters or leaves a chosen place. Grok Bot uses that signal to do the work assigned to it.
Giving Grok Bot location access alone will not start this workflow. The author says the mobile location feature reads the current position on request in a one-to-one chat with a bot the user owns, with permission and the app open. In this setup, Apple Shortcuts detects the event and the routine runs in Grok Bot.
Five places the author says this could work in a business:
- Bot: A client's office. On arrival, the author would have Grok Bot pull three things from the account record: what was promised last time, what has changed since, and the decision needed today. On departure, dictate what each person agreed to do and by when. The bot can turn that reply into a CRM note and a follow-up email for review.
- Bot: A job site. Give a technician the work order, parts list, and a detail buried in the previous visit's notes, such as the replacement pump being in the storeroom and needing to ask the site manager for the key. When the technician leaves, ask what was fixed, which parts were used, and whether a return visit is needed. That one reply can become a job report and a customer update.
- Bot: A store or warehouse. If the reader manages several sites, have the bot pull the open issues for the site just arrived at. A missing delivery at another branch can wait; an order a customer is collecting there that afternoon deserves attention. When leaving, record what was resolved and who is picking up the remaining items.
- Bot: A freight depot. On arrival, bring up the booking reference, dock time, collection contact and expected pallet count. On departure, ask what actually went on the truck. If the booking says eight pallets and only seven were ready, that is the detail the author wants in the draft customer update.
- Bot: A trade show. On arrival, bring up target contacts, booth numbers, and the question planned for each person. On departure, dictate who was met and what was promised. Give a promise such as sending Alex the wholesale price list on Monday a place in the next day's follow-up list before it becomes a business card the reader cannot place.
To set this up for one client visit, the author says three things are needed: an iPhone automation to spot the arrival or departure, a Grok Bot routine to receive the signal, and a client record the bot can read.
- By hand: Pick one client and one source. Choose an office visited regularly and a record already maintained, such as a Notion client page or a shared account document. Use a source the bot can reach through an authorised account. Ask it to open the record and tell the last outstanding commitment. If it cannot find the answer now, fix the source or its access before connecting the phone.
- Bot: Give Grok Bot this prompt. The author presents this as a setup prompt for the reader. Copied as shown:
Create a webhook-triggered routine called “Client visits”. My iPhone will send two text fields called place and event. For the place client_office, use this client record: [paste link].When event is arrive, send me a short brief in this chat. What did I promise last time? What’s still open? What decision do I need today? Flag anything the record doesn’t tell you. When event is leave, post this question in our chat and finish the run: “What did we agree to, who owns each action, and by when? Reply here with the details and ask me to draft your CRM note and follow-up email.” Keep both drafts in this conversation for me to review. Show me where to find the routine’s webhook URL and authorization header on desktop.
- By hand: Connect the arrival on the iPhone. On desktop, click the bot's name, select the Client visits routine and find Webhook. The reader will need the POST to URL and the authorization header, and should keep the key private. On the iPhone, open Shortcuts → Automation, add an automation and select Arrive. Choose the client's office and adjust the circle on the map. A time window can also be applied. Add the Get Contents of URL action. Paste the routine's URL and set the method to POST. Under Headers, enter Authorization as the name and Bearer followed by a space and the routine key as the value. Choose JSON for the request body. Add two text fields: place with the value client_office, and event with the value arrive. Select the option to run without confirmation if the iPhone offers it. Apple lists Arrive and Leave as automations that can run automatically. The author says to check how it behaves with the phone locked.
- By hand: Connect the departure. Create a second Shortcuts automation and choose Leave for the same office. Use the same URL, header and place label. Change the event value to leave. Both automations call the same routine with different event values. The shortcut sends only those two fields. The bot reads the client record separately and posts the relevant details in the conversation.
Check: The source has no results from the author's own run. The author tells the reader that Apple and Grok Bot document the components, and that on the first trip the reader should check that the bot delivers the right client brief on arrival, asks the question on leave, and produces a usable draft after the reader answers. An HTTP 200 confirms the run started. Check the result in the bot's chat and, if needed, open the routine's Run history on mobile. If the chat has the message but the phone did not alert, check the bot's notification settings. While Grok Bot is in use on desktop, its notifications can go there instead. For a week, the author suggests a simple tally: how often the trigger fired, how often the information was right, and how often the output was used. The question the author calls most revealing is what the routine caught that the reader would otherwise have forgotten.
Key points and results
- This is a setup tutorial, not a results report. The source has no log of the author's own Arrive or Leave runs, no HTTP results, and no week-long tally.
- Arrival and departure are two different jobs. Arrival is for preparing for the visit; departure is for capturing what happened. The iPhone detects entering or leaving a chosen place; Grok Bot does the assigned work.
- Grok Bot location access alone will not start this workflow. The mobile location feature reads the current position on request in a one-to-one chat with a bot the user owns, with permission and the app open. In this write-up, Apple Shortcuts detects the event and the routine runs in Grok Bot.
- The four setup steps are: pick one client and a reachable record, create a webhook-triggered Client visits routine, connect an Arrive shortcut, and connect a Leave shortcut. Both shortcuts POST to the same routine with the fields place and event; only the event value changes. The shortcut sends only those two fields; the bot reads the client record separately.
- The author suggests trying it for a week and starting with the place the reader regularly leaves intending to write up later. A first-trip check is whether the brief, the leave question, and a usable draft all appear; HTTP 200 only confirms the run started.
Source
- Platform
- X
- Author
- Michael | AI + Agents
- Published
- Categories
- Getting started
What this evidence label means
Source read in full
We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.