Ask Siri to Display Activity Data from the Health app

Wouldn’t it be great if you could ask Siri to read out information from the Health app? With the Shortcuts app, now you can! Find out how.

Ask Siri to Display Activity Data from the Health app

The iPhone stores a vast amount of data about our daily activities. Our steps, distance walked, and flights climbed, being just a few.

So wouldn’t it be great if, rather than opening up the Health app and navigating around to find the information you need, you could ask Siri to read a summary of your day’s activities?

You’d think that would be as easy as saying:

Siri, how many steps have I walked today?

Unfortunately, Siri is pretty unhelpful in this regard, replying with:

I can’t answer that on your iPhone, but you can find it in the Activity app.

Luckily, the Shortcuts app comes to the rescue.

In this article, we’ll show you how to build a Siri shortcut to tell you how far you’ve walked and how many steps you’ve taken on the current day.

💡
From watchOS 10.2, iOS 17.2, and iPadOS 17.2, and later, Siri can access health data directly if its language is set to (United States) or Mandarin Chinese (China mainland). Additional languages are to follow. If you don’t wish to change the language on your device, this shortcut is still required.

What are Siri shortcuts?

If you haven’t used shortcuts before, take a look at our in-depth how-to guide, which should help get you started. Put simply, with the Shortcuts app you can combine a set of “actions” to automate tasks on your iPhone, iPad, Mac, HomePod, and Apple Watch. A shortcut can be triggered using a Siri command.

How to build the “How much have I walked today?” shortcut

We’re going to build a shortcut that will tell you how many steps you’ve taken and how far you have walked that day.

💡
When words in an action are highlighted in blue, their value can be edited by tapping them and entering text using the on-screen keyboard or selecting from a popup list.

Step 1: Create and name a new shortcut

  1. Open the Shortcuts app on your iPhone.
  2. With the Shortcuts tab open, tap the + symbol at the top of the screen to create a new shortcut.
  3. Tap the text at the top of the screen that says New Shortcut, then tap Rename in the popup. Name the shortcut “How Much Have I Walked Today.” The name will be the phrase you use to run the shortcut with Siri.
  4. Tap Done.
Add a new shortcut and rename it
Add a new shortcut and rename it

Step 2: Get the distance walked

  1. Tap on the blue Add Action button.
  2. In the search field, type “Health” and select Find Health Samples from the actions displayed in the search results.
  3. In the inserted action, next to Type, tap on the word “Steps” and select Walking + Running Distance from the popup list.
  4. Change Start Date from “is in the last” to is today.
  5. For Unit, tap “km” if you want to change the unit of distance.
  6. Tap on “None” next to Group by and select Day.
  7. Toggle the Fill Missing switch off.
The settings for getting the distance walked
The settings for getting the distance walked

Step 3: Create a distance variable

  1. In the search field, type “Var” and select the Set Variable action from the results.
  2. The results from the previous action will automatically be inserted in the variable. Rename the variable to Distance.
Set a variable and name it “Distance”
Set a variable and name it “Distance”

Step 4: Format the distance variable

  1. In the search field, type “Round” and select the Round Number action from the list. This action will convert the distance value from the previous action into a readable format.
  2. Tap Ones Place and select Tenths from the list.
Convert the distance variable into a round number
Convert the distance variable into a round number

Step 5: Get the number of steps walked

  1. In the search field, type “Health” and select Find Health Samples from the actions displayed in the search results.
  2. Leave the Type field set to Steps.
  3. Change Start Date from “is in the last” to is today.
  4. Tap on “None” next to Group by and select Day.
  5. Toggle the Fill Missing switch off.
The settings for getting the steps taken
The settings for getting the steps taken

Step 6: Create the steps variable

  1. In the search field, type “Var” and select the Set Variable action from the results.
  2. The results from the previous action will automatically be inserted in the variable. Rename the variable to Steps.
Set a variable and name it “Steps”
Set a variable and name it “Steps”

Step 7: Create an alert

The “Show Alert” action allows us to input text using the keyboard and insert variables from previous actions by tapping them in the menu bar above the keyboard.

Add the “Show Alert” action
Add the “Show Alert” action
  1. In the search field, type “Alert” and select the Show Alert action from the list.
  2. Tap the “Do you want to continue” text and edit it to say: “Today you walked” followed by a space.
  3. Tap the Rounded Number variable displayed above the keyboard (you may need to swipe left to see it).
  4. Enter a space, then type “km and took” followed by a space.
  5. Tap the Steps variable displayed above the keyboard, enter a space, and then type “steps.”
  6. Tap on the blue around in a circle to show more options and toggle off the Show Cancel Button switch.
  7. Tap Done at the top right of your screen, and the shortcut will be added to your library.

The final alert should read:

Today you walked Rounded Number km and took Steps steps.

Type in the alert message and insert the variables
Type in the alert message and insert the variables

Test the shortcut

Now ask Siri:

Siri, how much have I walked today?

Siri will display a notification on the screen, automatically inserting the distance and steps variables into the alert.

The results of the Siri shortcut
The results of the Siri shortcut

While the Shortcuts app might seem intimidating at first, hopefully this example has offered a glimpse into its potential when used to automate tasks.

`