DEV Community

Manina AI
Manina AI

Posted on

Record a Task Once, Run It with Siri: Reusable AI Automations on a Real iPhone

Apple Shortcuts is great until the app you care about has no Shortcuts actions. Then you're back to doing the same ten taps by hand every morning.

An AI agent that can see the screen and tap like a person gets around that, because it doesn't need the app to expose anything. But asking a model to work out the same task from scratch every time is slow, and it can drift. What you really want is: show it once, save it, and start it later with one tap or a Siri phrase.

This guide shows how to do that with saved tasks, called intents, in the open-source ESP32 iPhone Agent used by Manina AI. Everything below runs on the iPhone itself. No computer is needed once the board is set up.

How it works (30 seconds)

  • Eyes: a $7 Seeed Studio XIAO ESP32S3 board opens its own Wi-Fi and shows up in Screen Mirroring, so it receives the iPhone's screen.
  • Hands: plugged into USB-C (or paired over Bluetooth), the board is a plain mouse and keyboard. With AssistiveTouch on, a click is a tap and a drag is a swipe.
  • Brain: the iPhone app looks at the screen, picks the next step, acts, then looks again.

iOS stays stock: no jailbreak, no Developer Mode. You need a computer once, for about a minute, to flash the board in Chrome or Edge.

What you need

  • An iPhone XS or newer on iOS 18+ (or iPhone 8 / X on iOS 16.4+ with the TestFlight app 1.0.9+), with cellular data.
  • A Seeed Studio XIAO ESP32S3, the standard version (not Sense or Plus), with its antenna.
  • The app from TestFlight, set up with its four guided screens: pair the board, join its Wi-Fi and start Screen Mirroring → ESP32 Agent, turn on AssistiveTouch, pick an AI service.

USB-C iPhones plug the board in. Lightning iPhones use Bluetooth mode, with the board on a USB charger. If you haven't done the setup yet, the setup guide walks through it with videos.

What an intent is

An intent is a task you saved so you can run it again. It has:

  • a name,
  • an instruction (what you'd type as a goal),
  • an optional checklist, given to the agent as hints on every run,
  • the steps that worked last time.

The useful part is that recorded moves run without the AI while the screen still matches what was recorded. The model only steps in where something looks different or where you told it to decide. That makes repeat runs faster and more predictable than starting from a blank goal.

Option 1: Save a run that already worked

The easiest way in. Give the agent a goal as usual, for example:

Open Settings and go to Wi-Fi.

When the run finishes, the Agent tab offers Save as intent. You can also tap the record button at the top right of the Agent tab (New intent) and choose Save last run as intent.

Good candidates are tasks you do on a schedule: checking a balance or a delivery status, reordering the same item, opening a specific screen deep inside an app.

Option 2: Record yourself doing it

If you'd rather show than tell:

  1. Make sure the board is connected, Screen Mirroring is on, and a model is set up.
  2. Tap New intent → Record me doing it. Go to the Home Screen. Recording starts when the 5-second countdown in the Dynamic Island ends.
  3. Do the task at a normal pace.
  4. Stop in the app or in the Dynamic Island.

The board can't see your fingers, so the steps are worked out from how the screen changed. Steps it isn't sure about are marked yellow. Check those before you save.

Two things to know:

  • Turning a recording into steps uses your own AI service (any OpenAI-compatible API that accepts images). The free AI service in the app only runs tasks.
  • If recording stops early, for example because the app ran too long in the background, go back to the app. The unfinished recording waits on the Agent tab, where you can create the draft again or discard it.

Edit the steps

Open an intent to see its Instruction, Steps and Checklist. Tap Edit to change the name, instruction or checklist.

If a recorded step needs judgement (say, "pick the newest message" rather than "tap row 3"), swipe it and choose Let AI do it. Use Add step for more:

Step What it does
AI step Hand one part of the task to the AI, in your words.
Read from the screen Copy information off the screen into the run's notebook.
Copy the notebook Put what was read on the clipboard, ready to paste.
Ask me to do a step Stop and ask you to do something by hand, then go on.

Repeat until runs the steps again until a condition is true on screen, for at most a set number of rounds (5 by default). Handy for "keep scrolling until you see X".

Then use Review Demonstration or Review Last Run to compare the steps with what actually happened, and Run to try it.

Example: grab a value and paste it elsewhere

A common pattern combines the new step types:

  1. Recorded steps open the app and go to the right screen.
  2. Read from the screen: "the tracking number".
  3. Copy the notebook, so it's on the clipboard.
  4. Recorded steps open Notes (or Messages) and paste.

When a run ends with an answer, such as a price or a list it looked up, the Runs view shows it in a Result card above the steps. Tap it to read the whole text, and tap Copy to copy it.

Run it with Siri, Shortcuts, widgets or Control Center

Saved intents show up in My intents on the Agent tab, and you can run them from Siri, Shortcuts, widgets and Control Center. That's the whole point: once the task is saved, starting it doesn't require opening the app and typing.

Because intents are available in Shortcuts, you can also drop one into a larger shortcut or a personal automation you already use.

While it runs, follow it from the Dynamic Island, stop it there, or return to the app. Afterward, open the run to replay each step with taps and swipes drawn on the screenshots.

Decide when it should stop and ask

An automation you start with one tap should not quietly buy things. In Settings → Runs → Ask me first, choose:

Setting The agent stops and asks before
Payments only (default) Paying, buying or transferring money.
Payments, sending, deleting Also sending a message, posting, deleting or changing account settings.
Never Nothing. It doesn't stop to ask.

It asks in a notification: press and hold it to answer. For anything that sends messages on your behalf, the middle option is a sensible default.

Move intents between devices

In My intents, use the menu for Import… and Export All…, or export a single intent from its page. Intents travel as .esp32intent files through AirDrop or Files, and Manina AI CLI reads the same format, so an intent you made on the phone can also be used by an agent on your computer.

Limits to plan around

  • The phone stays unlocked while a task runs. Locking stops Screen Mirroring.
  • The iPhone's Wi-Fi joins the board's hotspot, which has no internet, so the AI service uses cellular data.
  • iOS does not mirror passcode entry, Apple Pay or DRM-protected video, so those screens are out of reach.
  • Each AI step takes a few seconds, most of it the model. Recorded steps that still match the screen skip the model.
  • A USB-C iPhone can't charge by wire while the board is plugged in. Bluetooth mode leaves the port free.

Use it only on your own devices and accounts, and keep an eye on what it does.

Wrap-up

The recipe is: get a task working once, save it (or record yourself), mark the steps that need judgement as AI steps, set Ask me first, and start it from Siri or a widget from then on.

More detail on every option is in the intents docs, and you can see how the board and app fit together on manina.ai. The source is on GitHub under MIT (the AirPlay receiver in the firmware is GPL-3.0).

Top comments (0)