Skip to content
You're now subscribed

Check your email to confirm your subscription—don’t forget to check your spam folder too!

Flows 5 min · Beginner · Needs RocketSim 17

Save your first flow

A RocketSim flow saves a path through your app as a few lines of text, so your agent replays it with one command instead of rediscovering the same taps every task. Your agent walks the path once, saves it, and replays it whenever you need it.

Coming soon in RocketSim 17. The commands in this tutorial are not available in the current release.

  1. Ask your agent to walk the path

    Describe the path, and mention flows. Naming flows in the prompt makes the agent record and replay them more eagerly.

    Prompt
    Use RocketSim flows to sign in and open Settings. Save each part as a flow so we can replay it later, and share the review link when you are done.
  2. The agent saves the steps

    After a successful run, your agent saves the last steps under a name and a one-line summary. Without --last, RocketSim saves the last five successful steps.

    What your agent runs

    Saving a flow
     rocketsim flow save --name login --about "Sign in with the test account" --last 3
  3. Read what it saved

    RocketSim writes the shortest selector for each tap, adds an expect checkpoint after every screen change, and never stores a secret. Only a placeholder is saved. You rarely open this file, but it helps to know what your agent replays.

    A saved login flow
    name: login
    about: Sign in with the test account
    param: user = $TEST_USER
    param: password secret = $TEST_PASSWORD
    tap --identifier login.email
    type '{user}'
    tap --identifier login.password
    type '{password}'
    tap --label 'Sign In'
    expect --label 'Home'
  4. Replay it in any task

    From now on, ask for the flow by name. The agent replays the whole path with one command instead of reading and tapping screen by screen.

    Prompt
    Replay the login flow with RocketSim, then check that the Home screen shows the new badge.

    What your agent runs

    Listing and replaying a flow
    # What is saved for this app? rocketsim flow list# Replay it rocketsim flow login

    You should see A status and a step count. When a step fails, the reply names the step, the reason, and the nearest element.

  5. Review the run

    Ask for the review link. It opens the flow as a board with one card per checkpoint, and arrows from the tapped element to the next screen. Keep the tab open while your agent works. It refreshes by itself.

    Prompt
    Share the RocketSim review link for the login flow.

    What your agent runs

    Opening the flow review page
     rocketsim flow open login
    A RocketSim flow on the review page, with accessibility overlays and arrows between screens

Up next · Flows

Use secrets and prerequisites in flows

Keep secrets out of files and chain flows without signing in twice.

Learn it in minutes.
Use it on every task.

No signup. Works with Xcode 16+ and Xcode 27's Device Hub.