Run an automation from Apple Shortcuts, Siri or the Dock


How to run an automation from Apple Shortcuts, Siri or the Dock: install the Chrome extension, click Build with Browser agent, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.

Here is how the automation works. To run an automation from Apple Shortcuts, add a Get contents of URL action that sends a POST to https://lar.axiom.ai/api/v3/trigger with your API key and the automation's name. The automation starts in the cloud, and the shortcut can open the live run in your browser.

Author
Alex Barlow
Published

Build the Apple Shortcuts trigger from a description


Describe it and click the button: the agent builds and tests the automation in your Chrome extension. The shortcut that starts it needs your API key, from Authentication.

  1. Go to the page I give you
  2. Scrape the title and price of every item
  3. Add them to my Google Sheet
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

The shortcut starts any saved automation by its exact name; the lines above build one to try it with. You need an axiom.ai plan that includes webhooks, on pricing, and the Shortcuts app on your iPhone, iPad or Mac.

The video shows the agent building the automation an Apple Shortcut starts from the lines above, in a few minutes.

Build the Apple Shortcuts trigger step by step


The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.

  • 1.0 Go to page
    • URL: the page with the items
  • 2.0 Get data from bot's current page
    • Select: the title and price of each item, one column each
  • 3.0 Write data to a Google Sheet
    • Spreadsheet: your sheet
    • DATA: [scrape-data]
    • Write options: Add to existing data

Common questions about running an automation from Apple Shortcuts


How do I create the Apple Shortcut that triggers the automation?

Add one Get contents of URL action that posts your key and the automation's name.

The Shortcuts app in the Mac Applications folder

  1. Open the Shortcuts app and tap + to create a new shortcut.
  2. Add a Get contents of URL action and set the URL to https://lar.axiom.ai/api/v3/trigger.
  3. Change Method to POST.
  4. Set Request Body to JSON and add two text fields: key key with your API key as the value, and key name with the automation's exact name as the value.

The Get contents of URL action set to POST, with a JSON request body holding key and name

The shortcut sends the same request as the trigger endpoint documents:

{
  "key": "your-api-key-here",
  "name": "My First Automation"
}

How do I open the live run from the Apple Shortcut?

Add two actions after the request. The trigger answers with a link to watch the cloud run, and the shortcut can open it on your device.

  1. Below Get contents of URL, add a Get dictionary value action. It turns the JSON response into a dictionary.
  2. In its key field, type OPEN LINK IN BROWSER. The key is case sensitive.
  3. Add an Open URLs action and set it to Dictionary Value.

How do I run the Apple Shortcut from the Mac Dock?

Add the shortcut to the Dock and click it there.

  1. Open the Shortcuts app on your Mac.
  2. Right-click (or Control-click) the shortcut.
  3. Select Add to Dock.

A shortcut added to the macOS Dock

Can I run an automation from the Mac command line with Apple Shortcuts?

Yes. macOS runs shortcuts from the Terminal with the shortcuts command:

shortcuts run "My shortcut's name"

Can I start an automation with Siri?

Yes. Say "Hey Siri, run shortcut", then the shortcut's name, and Siri runs it. The automation runs in the axiom.ai cloud.

Can I run the Apple Shortcut from my iPhone or Apple Watch?

Yes. Apple Shortcuts runs the same shortcut on iPhone, iPad, Mac and Apple Watch, so the automation can start from any of them.

Why does the shortcut run but the automation does not start?

The request usually has the wrong key or name. The name field must match the automation's name exactly, including case and spaces, and key must be your current API key. The trigger endpoint lists the error messages. If the automation starts but fails, open its run reports to see which step failed, or hand the run to the agent and it repairs the step.

Can I pass data from the shortcut to the automation?

Yes. The trigger takes an optional data field with the rows to pass in. See pass input data for its shape, and trigger a web scraper from Zapier for the same request from another app.

Can I run an automation from Apple Shortcuts without code?

Yes. The shortcut is one Get contents of URL action with two fields filled in, and the automation it starts is built from the description above, so neither side needs code.

Can I run the automation on a schedule from Apple Shortcuts?

Yes. The Shortcuts app's Automation tab runs a shortcut at a time of day on your iPhone or iPad, and a saved axiom.ai automation can also run on its own schedule with no shortcut at all.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community.

Related guides