Личное
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.
Что болело
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.
Что установить или создать
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.
Боты
Main bot
Receives location events and turns them into briefs, reminders or logs.
Плагины
В первый день не нужны. Следуйте шагам первого запуска.
Рутины
Location ping. On webhook (from iPhone automations). Read the label and coordinates, then do what you set for that event.
Промпт
Это совет, а не системный промпт, который можно вставить. Автор его не опубликовал. Следуйте шагам первого запуска.
Первый запуск
- 1Read https://x.com/stephenjbolger/status/2108140285897367968 (credit @stephenjbolger).
- 2Ask your bot to create a webhook-triggered routine for location pings; keep the URL and key private.
- 3In Shortcuts, build one Shortcut that receives Text, gets location details, and POSTs JSON with a Bearer Authorization header; tap play to test.
- 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).
- 5Tell the bot what each label should trigger: a wake-up brief, arrival reminders, or a quiet start/finish log.
Барьер одобрения
Keep the webhook URL and key private. Anything the routine does beyond briefs and reminders (messages, bookings) should ask you first.
Что поправить
Events beat polling: no battery drain, and the bot only wakes when something actually happened.
Источник
Stephen Bolger @stephenjbolger · Исходный пост
Не связаны с xAI. Этот промпт написали не мы. Условия сторонних шаблонов по-прежнему действуют.
Пакет Pro
Нужна полная настройка, а не только идея?
В пакетах Pro — текст задачи, промпты, расписания и подводные камни для популярных сценариев.