Skip to content

A list of Siri Shortcuts (macOS/iOS/iPadOS) that I've made

License

Notifications You must be signed in to change notification settings

twilsonco/SiriShortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SiriShortcuts

1. ChatGPT

A. I have a question đź”—

  • Starts a voice-only conversation with ChatGPT using the ChatGPT iOS/iPadOS app (does not work on macOS)
  • Using the ChatGPT app has the following advantages
    • A paid ChatGPT Plus account is optional, but you'll need at least a free ChatGPT account
    • If you do have a ChatGPT Plus subscription, you can optionally use GPT4 as the model
    • ChatGPT will remember previous messages as you continue your conversation
  • You can specify initial and followup system prompts in order to better control ChatGPT's behavior (as well as setup "custom instructions" in the ChatGPT app)
  • When run from lock screen, dictation of your prompt to ChatGPT will end automatically when a pause is detected
  • When run while unlocked, dictation will continue until you press the stop button ⏹️
  • Shortcut can be modified to use OpenAI or ElevenLabs TTS by replacing the "Speak Text" action with "Run Shortcut" pointing to (2A) or (2B) below

Known issues

  • The Shortcut may complain that you are not logged into the ChatGPT app, even though you are
    • The workaround is to simply rerun the Shortcut, which will work on subsequent runs
    • Every Shortcut using the ChatGPT app may have this same issue
    • Please let me know if you find a reliable solution for this; I've tried including a very short use of the "Ask ChatGPT" action so that its later use will always succeed, but any failure of the action causes the Shortcut to fail, so this approach doesn't work
  • Similar to (1), but unlocks phone first in order to avoid some issues that happen on the lock screen (does not work on macOS)
  • Uses OpenAI TTS to read back response in a more natural voice (needs "Speak text with OpenAI" (2A) shortcut installed)
  • Can modify shortcut to use ElevenLabs TTS for reading back response if desired, or to use iOS built-in TTS

C. Weather summary đź”—

  • Fetches weather data for your current location and have ChatGPT read back a natural language summary of the upcoming weather
  • Uses the ChatGPT app like (1), so does not work on macOS
  • Same but for weekly agenda đź”—
  • Define a list of iOS calendars and reminder lists which are used to fetch your scheduled events for the day, and have ChatGPT read back a summary of your agenda along with the weather
  • Uses the ChatGPT app like (1), so does not work on macOS

E. ChatGPT via API đź”—

(And voice-only version)

  • Drop-in replacement for the ChatGPT app's "Ask ChatGPT" Shortcut action
  • Provide text or a valid dictionary as input and use the OpenAI API to submit the text to ChatGPT as a prompt
    • Valid input dictionary contains optional keys “prompt”, “model”, “temperature”, and “apikey”
  • If run with no input, the Shortcut will ask for text input
  • Requires your own OpenAI API key đź”—
  • Includes back and forth conversation capability
  • Takes text (or an image/screenshot containing text), e.g. from an email client or Messages and uses ChatGPT to suggest one or more calendar events from the text content
  • You can choose which identified events will be added, and edit details beforehand if necessary
  • Messages and email clients suck at suggesting events; they're always incomplete and unhelpful and require additional user input. This lets ChatGPT improve the process by parsing out the necessary information automatically
  • Automatically populates
    • an appropriate event title
    • start/end time and all day status
    • location
    • url
    • an appropriate calendar
    • attendee list
    • notes with references to relevant part(s) of the text used for creating the event
  • Does your work send you your upcoming schedule in a text or email? (Those jerks...)
  • This shortcut will take that message and create calendar events with them automatically
  • Can be setup to run as an automation to be triggered by a text message/email, assuming the sending phone number or email address is consistent
  • If the message/email is an amended schedule, this will check for conflicts with previously created shifts and delete the old ones
  • Uses the "ChatGPT via API" shortcut (see E above) to make it more reliable, since it's meant to be run automatically. You can modify it easily to use the ChatGPT app instead.

2. Google Gemini Pro

A. Gemini via API đź”—

  • Drop-in replacement for the "Ask ChatGPT" shortcut action, or
  • Runs standalone for voice/text/image/pdf/document/url/video-based Gemini requests
  • Logs conversations/images to Files App at /Shortcuts/GeminiAPI
  • Beautiful rich text display of Gemini response with ability to show entire conversation
  • View/continue Gemini conversation with this companion shortcut đź”—
  • Currently, Gemini-Pro API access is FREE for up to 15 queries per minute with 1.5-flash, or 2 per minute with 1.5-pro.

Screenshots of the View/continue Gemini conversation companion shortcut

This shortcut is design to be run standalone or from other Shortcuts. It passes the input prompt to Google via their API and returns the response if successful.

Input: Text (a prompt, possibly via Share Sheet), 
OR 
a valid Dictionary with optional keys, 
“prompt”, “messages”, “image”, “model”, “temperature”, “apikey”, “repeat”, “speak”, "datetime", and "disablelogging"
OR 
nothing. If no prompt is provided, user will be asked to provide one before continuing. 

Output: A text string containing the bot response, OR an output dictionary containing “messages” and “output”. 

Setup:  Can set default model, API key and temperature.
Dictionary input arguments:
“model” a valid model name to use.
“temperature” a number between 0 and 
“messages” a JSON array passed as the “contents” to the API. You don’t have to build it manually, since it’spart of the output. Just maintain it between calls to the shortcut. (see https://ai.google.dev/tutorials/rest_quickstart#multi-turn_conversations_chat). 
“image” is a text string that is a base64-encoded image. 
“repeat” is 0 or 1 to control if this shortcut repeats automatically (ongoing conversation). 1 to repeat. 
“speak” is 0 or 1 to control if output is read aloud. 1 to speak. 

https://ai.google.dev/docs/concepts#model_parameters
https://ai.google.dev/tutorials/rest_quickstart#configuration

Dictionary output content:
When a dictionary is used as input, this shortcut will output a dictionary with “output” string and “messages” JSON array that can be passed back into the shortcut.

B. What is this? đź”—

  • A simple example of a shortcut utilizing the “Gemini via API” shortcut.
  • This takes a picture and has gemini describe it. This is intended to be used via Siri or through a widget.

C. I have a question đź”—

  • This shortcut allows you to have a voice-only, back-and-forth conversation with Google Gemini Pro, using the “Gemini via API” shortcut.
  • You can also pass this shortcut an image/photo via the share sheet and the image will be included with every request so you can query the same image repeatedly. (No previous messages are retained when an image is used, due to Google API constraints)

D. Weather summary đź”—

  • Fetches weather data for your current location and have Gemini read back a natural language summary of the upcoming weather
  • Uses "Gemini via API"
  • Same but for weekly agenda đź”—
  • Define a list of iOS calendars and reminder lists which are used to fetch your scheduled events for the day, and have Gemini read back a summary of your agenda along with the weather
  • Uses "Gemini via API"

3. AI Text-to-speech (TTS)

4. OpenPilot navigation shortcuts

  • OpenPilot is an after-market level-II autonomous driving product by Comma.ai đź”—
  • It can now perform nearly full navigation from origin to destination, stopping for lights/signs, and performing turns completely unassisted
  • These Shortcuts simplify the process of setting a navigation destination
  • See the separate repository for the Shortcuts here đź”—

5. Mobile Safari

A. Open in Chrome đź”—

  • Use the share sheet đź”— in Safari on iOS/iPadOS to open the current website in the Google Chrome app

6. macOS Shortcuts

A. Activate/deactivate head pointer

B. Restart/shutdown Mac

  • With MacBooks with Touch ID, or when using the Magic Keyboard with Touch ID, the classic keyboard shortcuts to sleep/restart/shutdown a Mac or turn off the display no longer work
  • These two Shortcuts at least provide the ability to perform a restart or shutdown, per my answer on Apple Stack Exchange đź”—
  • After installing, you'll need to setup keyboard shortcuts to trigger the shortcuts
  • Install links:

7. Other

A. Reminders to PDF đź”—

  • You specify one or more Reminders lists along with number of past/future days to include, and when run, the shortcut produces a nicely formatted PDF that contains all reminders in the specified lists, one PDF per list
  • Shows most pertinent reminder data if present: title, name (if different from title), notes, completed, priority, flagged, tags, location (macOS only due to a bug in iOS), URL, images, and subtasks
  • Works with repeat reminders, showing next due instance of the repeat reminder and the count of completed instances
  • Here's what the resulting PDF looks like

  • Makes beautiful photo collages from the specified photos on iOS/iPadOS/macOS
  • This is a vanilla shortcut with the same functionality as (and that runs 10X slower than) my PyPhotoCollage prgrogram
  • Create beautiful photo mosaics from photos/videos on iOS/iPadOS/macOS
  • Advanced, multi-point tile matching for highest quality mosaid
  • Control over repeated mosaic tiles to reduce overuse of same tile
  • Optimize multi-stop routes by solving the travelling salesman problem
  • Optimize by travel time or distance
  • Supports driving/biking/walking/transit navigation
  • Supports Apple Maps, Google Maps, and Waze