Inbox AI
  • Introduction
  • Quick Start
  • Hotkeys / Triggers
  • AI providers
  • Voice Commands
  • Screenshots
  • Watch Directories
  • Email Processing
  • Handle Incoming Calls
  • Actions
    • Custom Actions
      • Ask AI
      • Make API Request
      • Terminal Command
      • Multiple Choice
      • Group
    • Built-in Actions
      • Mail Actions
        • Mark as Read
        • Mark as Unread
        • Set Flag
        • Set Background Color
        • Move to Junk
        • Move to Archive
        • Move to Trash
      • Flow Control
        • Return Result to Previous AI
      • System Actions
        • Copy to Clipboard
        • Get Selected Text
        • Take Screenshot
        • Paste at Cursor
        • Speak Text
        • Send Notification
        • Add Apple Reminder
      • Do Nothing
    • Folder
    • Next Action Field
    • Action Variables
    • Export
  • Templating
  • Transcription
  • Logging
  • Limits
  • Troubleshooting
  • Advanced Settings
  • Integrations
    • AppleScript
    • Tana
    • Apple Notes
    • Reflect
    • Apple Shortcuts
    • Raycast
    • X-Callback-URL
Powered by GitBook
On this page
  1. Integrations

Apple Shortcuts

PreviousReflectNextRaycast

Last updated 6 months ago

Shortcuts allows you to run any shortcut using a X-Callback-URL with the following format: shortcuts://x-callback-url/run-shortcut?name={{ name | percentEncode }}&input=text&text={{ input | percentEncode }}

In the "Other" folder there is a pre-built example to run an Apple Shortcut called "Run Apple Shortcut".

You can add this action to any AI command and teach it to run specific Shortcuts, or duplicate it and change it to run a specific Shortcut. The latter option is more likely to have the correct results.

Note that you can use Action Variables in the URL to give your AI more options.

Alternative approach

You can also run shortcuts using the shortcuts terminal command like this, with the benefit of having their output available for a next action.

echo "{{ text | doubleQuoteEscape }}" > {{ dir.tmp }}/{{run.id}}
echo $(shortcuts run "{{ shortcut | doubleQuoteEscape }}" -i {{ dir.tmp }}/{{run.id}})
rm {{ dir.tmp }}/{{run.id}}