> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# subflows/first-run-tutorial.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/subflows/first-run-tutorial.yaml)

```yaml
appId: ${APP_ID}
---
# The rest of the first run, played for real on the mock catalog, from the intro's Start to the end of the
# guided first song:
#   tutorial welcome ("Let's go") -> choose one song (Play) -> the song, guided: C4 (tap), E4, G4 (hold), D4.
# It stops after the last note. What follows depends on the player and the arm (the song's result, the
# video paywall for a free player, the reward picker), so the caller handles it.
# Everything after the intro is landscape, so Maestro's orientation turns with it.
- setOrientation: LANDSCAPE_LEFT

# 1. Tutorial welcome.
- extendedWaitUntil:
    visible:
      id: "tutorial-welcome-cta"
    timeout: 60000
- tapOn:
    id: "tutorial-welcome-cta"

# 2. Pick Your First Song: take the first card (its Play button; the e2e catalog offers one card, the
# tutorial area's console `tutorial_song` three).
- extendedWaitUntil:
    visible:
      id: "tutorial-choose-cta-.*"
    timeout: 60000
- tapOn:
    id: "tutorial-choose-cta-.*"
    index: 0

# 3. The picked card's light wipe (~3 s), the song's loading card, "Get ready!" and the 3-2-1, then the
# guided first song: it stops on the first tap note (C4) and on the first hold (G4) and waits for the key
# however long it takes (the press is Perfect); every other note waits on the line too, so a long wait is
# safe. A press BEFORE the note is on the line is not Perfect and is ignored, so wait out the load first.
- runFlow:
    file: "sleep.yaml"
    env:
      MS: "18000"
- tapOn:
    point: "25%,92%"
- tapOn:
    point: "45%,92%"
- longPressOn:
    point: "65%,92%"
- tapOn:
    point: "35%,92%"
```
