All use cases

Personal

Make your bot location-aware with an Apple Shortcut and a webhook routine

Your bot has no idea when you wake up, leave home, or get in the car.

Share

What hurt

Stephen Bolger (@stephenjbolger) wired iPhone automations to a webhook-triggered routine in about ten minutes, so his bot gets an event ping with a label and coordinates instead of polling. Not affiliated with xAI.

What to install or create

Ask the bot for a webhook-triggered routine and say what to do with location pings. Build one Shortcut that receives Text, gets current location (latitude, longitude, city), and POSTs JSON with the label, time and coordinates using an Authorization: Bearer header. Then add personal automations (arrive/leave, CarPlay connects, alarm stopped) that each pass a Text label into that Shortcut.

Bots

  • Main bot

    Receives location events and turns them into briefs, reminders or logs.

Plugins

  • None on day one. Follow the first-run steps.

Routines

  • Location ping. On webhook (from iPhone automations). Read the label and coordinates, then do what you set for that event.

The prompt

This is a tip, not a pasteable system prompt. The author did not publish one. Follow the first-run steps.

First run

  1. 1Read https://x.com/stephenjbolger/status/2108140285897367968 (credit @stephenjbolger).
  2. 2Ask your bot to create a webhook-triggered routine for location pings; keep the URL and key private.
  3. 3In Shortcuts, build one Shortcut that receives Text, gets location details, and POSTs JSON with a Bearer Authorization header; tap play to test.
  4. 4Add personal automations set to Run Immediately: a Text action with a label like "left home", then Run Shortcut with that Text as input (Text must sit above Run Shortcut).
  5. 5Tell the bot what each label should trigger: a wake-up brief, arrival reminders, or a quiet start/finish log.

Approval fence

Keep the webhook URL and key private. Anything the routine does beyond briefs and reminders (messages, bookings) should ask you first.

What to tweak

Events beat polling: no battery drain, and the bot only wakes when something actually happened.

Source

Stephen Bolger @stephenjbolger · Original post

Not affiliated with xAI. We did not write this prompt. Third-party template terms still apply.

Browse templates

Browse team blueprints

Pro pack

Want the full setup, not just the idea?

Pro packs give you the job text, prompts, schedules and pitfalls for popular use-cases.

See Pro