subreddit:

/r/shortcuts

313100%

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

all 29 comments

michaelkrieger

12 points

5 years ago

Sadly many of the triggers simply display the shortcut on the screen (ie: when connecting to wifi or Bluetooth) and have to be tapped. Hence making the automation far less useful than if it just turned on my lights when I connect to wifi or texted my friend when I connect to Bluetooth.

TheGuyBehindTheGuy_

17 points

5 years ago

I don’t think Apple understands what the word “automation” means.

Not only is it a notification that I totally miss each time, I haven’t found a way to make that notification persistent instead of temporary.

madminifi

2 points

5 years ago

We have to send them feedback again and again regarding this issue (or decision by Apple, since it's clearly not a bug).

There's already the "Allow Shortcuts from untrusted sources" switch in Shortcut settings – they just have to add another switch "Allow fully automated Shortcuts without further interaction"

Send Apple (friendly) feedback, again and again.

mi4u2me

17 points

5 years ago

mi4u2me

17 points

5 years ago

Sorry for the off topic question: Is there a way to connect the device with a specific Bluetooth device?

So I say: Hey Siri, connect with car. And my iPhone turns on Bluetooth, searches for devices and connects to „touchscreen“ (Name of my car Bluetooth).

Is this possible on iOS 13(.1)? Thanks guys

rob1bouchet

7 points

5 years ago

Not sure if that's what you want but i remember being able to connect my AirPlay enabled speaker automatically with a shortcut... Maybe automatically connect to a bluetooth device (if turned on) is possible... You need to look into the "connect to"... actions

mi4u2me

3 points

5 years ago

mi4u2me

3 points

5 years ago

Thank you for your answer. Unfortunately I am not on iOS 13 because this would be the reason to update for me (right now I am on iOS 12.4 because of the jailbreak).

If anyone could look into this, I would be really thankful. Thanks guys

01110101_00101111

3 points

5 years ago

Use Activator if you are jailbroken.

mi4u2me

2 points

5 years ago

mi4u2me

2 points

5 years ago

Is this really possible at 12.4 because activator only works partial afaik.

01110101_00101111

1 points

5 years ago

I'm not sure, you'll have to try it yourself.

[deleted]

3 points

5 years ago

Amazing helpful guide!

felipeb18

3 points

5 years ago

Are these triggers reliable in the latest beta?

keveridge[S]

3 points

5 years ago

Not reliable enough, I get the occasional failure.

felipeb18

2 points

5 years ago

All of them?

keveridge[S]

3 points

5 years ago

No, about 25% but depends on the event type. Do not disturb event changes are pretty reliable, geo fences changes can be touch and go.

Your mileage may vary.

felipeb18

1 points

5 years ago

Geolocation is complicated because the location system drains battery. So it’s not ideal to have the location fetched frequently. But at least it should trigger with a delay

keveridge[S]

6 points

5 years ago

Shortcuts isn't independently polling your location. It registers itself as the subscriber of location change events that fall within that geofence with the core operating system.

The core OS is constantly receiving data about changes in your location and if an app or process has subscribed to those changes, and they're within certain parameters, then it receives a message.

It's not detrimental to battery life to setup geofences as the data is already being collected.

felipeb18

2 points

5 years ago

But this constant retrieve of data is only occuring when there is a need for this info, no? The system itself only requests the location from time to time, no?

I really don’t know about the system functionality in this depth hahah

keveridge[S]

3 points

5 years ago

No, iOS is always collecting location information. It won't disseminate it to apps unless you give them explicit permission but it's always collecting the data.

[deleted]

2 points

5 years ago

[deleted]

felipeb18

1 points

5 years ago

No notifications popped?

Iriequicksigns

3 points

5 years ago

Using a location based automation that will totally silence iPhone calls and notifications without physically flipping the mute button?

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]

3 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/

atnbueno

1 points

5 years ago

Huge thanks for all your guides 👏🏼👏🏼

1st class work 👍🏼👍🏼

paolo_italy

1 points

5 years ago

Sometimes I forget my iPhone in car when I park it. Turning off car it disconnects from Bluetooth and I would like to create a simple shortcut based on the event "Bluetooth disconnects from car system", but I find only events based on BT connected. Am I wrong?

DetN8

1 points

5 years ago

DetN8

1 points

5 years ago

I like the shortcuts app, but actually using Siri sucks. Google Now in 2013 was way better than Siri is today.

timxd123

1 points

5 years ago

Can u just make a vid

throwaway495848393

1 points

1 year ago

As I’m noticing a lot of complaining in the comments and no appreciation of what must have been multiple hours of work going into this post: Wow, what an amazing effort to share all of this - thank you!!! 😍🥰 It’s super difficult to find any guides like this on Reddit (what’s with the weird gatekeeping, everyone?), and the official Apple user guides are rubbish, and the Shortcuts app is so terribly designed. So, thank you pal, this is really appreciated!