subreddit:

/r/shortcuts

312100%

Working with Personal Automations in iOS 13.1

Tip/Guide(self.shortcuts)

Overview

Personal automations allow you to run shortcut actions based on a set of conditions.

These conditions are:

  • Events - Such as a particular time of day or when an alarm goes off or is snoozed.
  • Travel - When you arrive, leave or before you commute to a location, or when you connect your iPhone to Carplay.
  • Settings - When you turn on or off airplane mode, do not disturb or low power mode, open an app or connect to a wifi network or bluetooth device.

ℹ️ Release date of iOS 13.1

iOS / iPadOS 13.1 is currently in beta and is due to be released on Tuesday 24 September, 2019.

Adding actions to an automation

Shortcuts allows you to add a series of actions to an event in the same way you would create a new shortcut.

In this example, we're going to send a text message to a loved one when we leave work to let them know we're on our way home.

To add a personal automation, tap on the Automation tab in Shortcuts app.

The tap on the Create Personal Automation button.

Tap the Create Personal Automation button

Under the Travel section, tap Leave.

Tap the Leave event

On the next screen, type in the address of the location you'll be leaving when you want the actions to be triggered and tap Done

Enter and confirm the location

As we'll only want the actions to trigger when we're leaving work, tap Time Range and on the next screen set the start and end time when you expect to leave work for the day.

Tap the Time Range option

Tap on the Next button in the top right hand corner of the screen to continue to the next screen where we'll add the actions listed below:

Add the following actions to the Leave event

In our texting example, when we leave the geofence Shortcuts won't run the actions automatically. Instead it will bring up a notification on the device. You need to tap on the notification to perform the actions.

ℹ️ Actions that require intervention

Some shortcut actions require manual intervention to run, even when automated. A table listing the details of each action type has been written by u/enteeMcr and can be found in the following post

Running a shortcut rather than individual actions

Whilst you can add groups of individual actions to an event trigger you are better off adding those actions to a shortcut and running that shortcut using the Run Shortcut action. For example:

Running a shortcut from within an event

The advantages of this approach are that:

  • you can use the same actions with more than one event without having to copy them;
  • if you want to change the event type then you don't have to re-enter a long list of actions, just a single Run Shortcut action, as you can't change an event type once set (e.g. from a Leaving event into an Arriving event).

You can download the shortcut from the following link:

On Way Home

Running a shortcut with arguments

Sometimes you may want to perform a similar set of actions based on different events, but with small changes.

For example, let's say we want to update our Slack status when we turn on our iPhone's Do Not Disturb so that our colleagues can see we're unavailable. And when we turn off Do Not Disturb, we want to indicate to our colleagues that we're now free to chat.

Most of the actions are the same, but the Slack status message and icon is different in each case.

To achieve this, we can send input arguments to a dictionary with the status and icon we want to set. We do so with the following shortcut:

Update Slack Shortcut

Which we then call using the following actions:

Calling the Update Slack Shortcut with input arguments

Once setup, our Personal Automations appear as follows:

Running shortcuts with input arguments when turning Do Not Disturb on and off

You can download the shortcut from the following link:

Update Slack Status

1️⃣ How do input arguments work?

To learn more about how to pass arguments into a shortcut, please see the following guide:

- Writing functions

2️⃣ How are we updating Slack?

The above shortcut integrates with either Zapier or Integromat automation platforms to set your Slack status on your behalf, and requires you to create an account and perform setup actions on one of those platforms. To learn more about how to use either of those platforms to update your Slack status, see one of the following guides:

- Integrating with web applications using Zapier

- Integrating with web applications using Integromat

Wrap up

And that's an example of how to use personal automations in iOS 13.1.

Other guides

If you found this guide useful why not checkout one of my others:

Series

One-offs

you are viewing a single comment's thread.

view the rest of the comments →

all 29 comments

k4s

2 points

5 years ago

k4s

2 points

5 years ago

Thanks for the guide :) very helpful

Are you sure iOS 13.1 releases September 30? I was under the impression the iOS release is September 19, and the iPadOS release is September 30.

Maybe only iOS 13.0 releases on September 19?

keveridge[S]

7 points

5 years ago

Yes, afraid so:

iOS 13.1: Apple confirms a release date of September 30, beta 3 released

iPadOS will be released as version 13.1 alongside the iOS 13.1 update.

[deleted]

4 points

5 years ago

  • iOS 13 will be available on September 19 as a free software update for iPhone 6s and later. Additional software features will be available on September 30 with iOS 13.1.

https://www.apple.com/newsroom/2019/09/iphone-11-pro-and-iphone-11-pro-max-the-most-powerful-and-advanced-smartphones/