Skip to content

Apple Health

Ray can receive activity and recovery data from your phone automatically β€” no manual entry needed. It works through two private webhook URLs that you generate inside the bot, plus two ready-made iOS Shortcuts that upload your Apple Health data to those URLs.

What gets synced

ChannelFrequencyFields
πŸ“ˆ ActivityHourlyActive energy, resting energy
πŸ›Œ RecoveryOnce each morningSleep duration, resting heart rate, HRV

Once data arrives, Ray uses it in every recommendation. Ask β€œHow active was I this week?” or β€œWhat was my sleep like yesterday?” and Ray will answer from your real numbers.

Install the two shortcuts

  1. Generate your personal webhook URLs.

    In the bot, go to βš™οΈ Settings β†’ πŸ”Œ Integrations β†’ 🍎 Apple Health and tap πŸ“² Set up Apple Health. You’ll receive two private URLs β€” one for Activity, one for Recovery. Keep them handy for the next step.

  2. Add both shortcuts from these links (open them on your iPhone):

    Tap Add Shortcut on each, and paste the matching webhook URL from step 1 when prompted.

  3. Run each shortcut once to confirm it connects.

    The first time a shortcut runs, iOS asks for permission. Tap Allow for the connection prompt, and Always Allow for the health-data prompt so future background runs aren’t blocked. These prompts appear only on the first run.

    iOS privacy prompt allowing Upload Activity Data to connect to askray.app iOS privacy prompt allowing Upload Recovery Data to send health samples to askray.app β€” choose Always Allow

Make it run automatically

Set up one automation per shortcut so your data uploads on its own whenever you open Telegram β€” no need to launch the shortcuts by hand.

  1. Open the Automation tab in the Shortcuts app.

    Shortcuts app tab bar with Automation selected
  2. Tap the οΌ‹ button in the top-right to create a new automation.

    Automation screen with an arrow pointing at the plus button
  3. Choose the App trigger and configure it: set the app to Telegram, select Is Opened, choose Run Immediately, and turn Notify When Run off. Tap Next, then pick the Upload Activity Data shortcut as the action.

    Automation 'When' screen: App set to Telegram, Is Opened checked, Run Immediately selected, Notify When Run off
  4. Repeat for Recovery. After saving both, your Automation list shows two entries β€” Upload Recovery Data and Upload Activity Data, each running when Telegram is opened.

    Automation list showing two 'When Telegram is opened' automations: Upload Recovery Data and Upload Activity Data

Confirm the data is flowing

Open the 🍎 Apple Health screen in the bot (βš™οΈ Settings β†’ πŸ”Œ Integrations β†’ 🍎 Apple Health). After a successful upload you’ll see a recent Last sync time for both Activity and Sleep.

Bot's Apple Health card showing Last sync β€” Activity: 2 min, Sleep: 2 min

As a final check, ask Ray β€œHow active was I today?” and β€œWhat was my sleep last night?” β€” if the numbers match your watch, everything is wired up correctly.

Use a different source

The webhook accepts plain JSON POSTs, so anything that can make an HTTP request works β€” Android’s Tasker, a Home Assistant automation, a custom script. The iOS Shortcuts are just a convenience wrapper.

Refer to the payload format in the 🍎 Apple Health screen inside the bot.