Shortcuts
This article is a stub. You can help the IndieWeb wiki by expanding it with relevant information.
Shortcuts is an iOS app formerly known as Workflow used to automate various actions. With the advanced "Get contents of URL" action it can be used to make Micropub requests or upload files to a media endpoint.
Instagram POSSE
Sebastiaan Andeweg uses Shortcuts to post photo's to his site, and then POSSE them to his Instagram.
A desciption of the (old) flow can be found at Shortcuts/Instagram POSSE
A new, pre-build version can be downloaded. This one makes use of a few other flows. After import, you can customize to your needs.
- The Location as Geo URI Shortcut for location: https://www.icloud.com/shortcuts/f88b056be79946699aa351d26efb348b
- The Fetch Micropub endpoint Shortcut for the endpoint: https://www.icloud.com/shortcuts/efeae51596784fb7844791d7159d642a
- The IndieAuth Shortcut for authentication: see below.
- The Post Photo Shortcut itself: https://www.icloud.com/shortcuts/fbdebaac81ae4de69cb623f7fbfa8bed
Note: currently Shortcuts is not able to parse the Location header out of the Micropub request. This means it cannot show you your new post, unless your Micropub endpoint returns the link also in the body. This is non standard, but the Shortcut will detect it and show you your post if it can. If you see your post and want to POSSE to Instagram after it, just return to the Shortcuts app.
IndieAuth
Sebastiaan Andeweg made a Shortcut that does the IndieAuth dance for you, in order to pick up a token. It can be embedded into Micropub workflows, as it returns the token.
The current version required one weird copy-paste step, because iOS is not able to parse attributes after a redirect to the Shortcut app.
You can download the Shortcut here.
Micropub Media Endpoint
Pre-Built Shortcut
You can download a pre-built Shortcut that allows you to upload files to your media endpoint using the Share Sheet, or if the Shortcut is activated outside the share sheet it will present an option to upload from your Photos library or from the Files app.
You can download the Shortcut here
iOS Reminders app Shopping list dictation
Mike Kupietz uses this shortcut to dictate his shopping list and create separate items in his iOS Reminders "Shopping" list. It's based on a technique found on the web long ago, the source is lost to time.

So you might run the shortcut, say the phrase "milk and eggs and mayonnaise", and it will add "milk", "eggs", and "mayonnaise" checkbox items to the Shopping list. It's handy for rattling off your shopping list as you're staring into your fridge.
Obviously you need a list called "Shopping" set up in your Reminders app.
This shortcut executes the following steps:
- Dictate text - listens for spoken input. Make sure set to stop listening after pause.
- Split
Dictated TextbyCustomand- splits the text into a list with "and" as the delimiter - Repeat with each item in
Split Text- begins the loop that adds the items - Add
Repeat ItemtoShoppingwithNo Alert- adds each item as a separate checkbox line to the "Shopping" list in Reminders.app - End Repeat - ends the repeat loop
- Open
Shopping- opens the shopping list. Scroll to the bottom to see the newly-added items.
You can
download the shortcut from iCloud here.
Mike Kupietz created this link from his working copy, but you assume all risk from importing or running code from iCloud.
Creating Your Own Custom Shortcut


Create a new shortcut
- Accepts: Images, Media
- What type of shortcut? Action Extension
add the following items:
- URL: Set the URL to your media endpoint
- Get Contents of URL: Advanced
- Method: POST
- Headers:
Authorization: Bearer XXXX(insert a Micropub access token) - Request Body: Form
- file: Shortcut magic variable, choose "Shortcut Input"
- Show Notification: Contents of URL (This will display the response from your media endpoint so you can confirm the upload worked)
See Also
- Template for the Photo to Micropub and Instagram shortcut
- Template for the Save Syndication shortcut
- https://workflow.is
- Warning against running Shortcuts from unknown people, at least one malicious Shortcut exists. Shortcuts has access to loads of highly persona information.
- A proof-of-concept was released 2019-01-30, the Twitter thread contains some more information about what information could be accessed.
- The issue was patched in Shortcuts 2.1.3, released 2019-02-07. The CVEs do not seem to be public (yet) but from the Twitter thread it looks like Shortcuts wasnโt correctly sandboxed and was able to access internal databases used by iOS.
- 2019/Amsterdam/shortcuts
- How to make a custom icon for any iOS app https://icons.tr.af/how