{
  "flow": [
    {
      "id": 1,
      "mapper": {},
      "module": "scenario-service:StartSubscenario",
      "version": 2,
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        }
      },
      "parameters": {}
    },
    {
      "id": 24,
      "mapper": null,
      "module": "builtin:BasicRouter",
      "routes": [
        {
          "flow": [
            {
              "id": 25,
              "mapper": {
                "qs": [
                  {
                    "key": "limit",
                    "value": "100"
                  }
                ],
                "url": "/v1/agents",
                "method": "GET",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 600,
                  "y": 0
                }
              },
              "parameters": {}
            },
            {
              "id": 26,
              "filter": {
                "name": "No agent yet: first run",
                "conditions": [
                  [
                    {
                      "a": "{{first(map(25.body.data; \"id\"; \"name\"; \"Shotstack video editor\"))}}",
                      "b": null,
                      "o": "notexist"
                    }
                  ]
                ]
              },
              "mapper": {
                "qs": [],
                "url": "/v1/environments",
                "body": "{\"name\": \"Shotstack CLI\", \"config\": {\"type\": \"cloud\", \"packages\": {\"npm\": [\"@shotstack/cli\"]}, \"networking\": {\"type\": \"limited\", \"allow_package_managers\": true, \"allowed_hosts\": [\"shotstack.io\"]} } }",
                "method": "POST",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 900,
                  "y": 0
                }
              },
              "parameters": {}
            },
            {
              "id": 27,
              "mapper": {
                "qs": [],
                "url": "/v1/agents",
                "body": "{\"name\": \"Shotstack video editor\", \"description\": \"Writes and validates Shotstack edits with the Shotstack CLI and skill.\", \"model\": {\"id\": \"claude-opus-5-5\", \"effort\": \"high\"}, \"system\": \"You are a senior motion designer. Each session gives you a brief for one short video, and you build it as one Shotstack edit (Edit JSON). No one is watching the session: never ask a question or wait for an answer, and always finish.\\n\\nSet up\\n1. Shotstack's CLI is installed: run `shotstack --version`, and if it's missing, `npm install -g @shotstack/cli`. Its skill ships inside the package, in \\\"$(npm root -g)/@shotstack/cli/skills/shotstack\\\". Read its SKILL.md and shared/agent-core.md in full, then references/html5.md, html5-effects.md, html5-snippets.md, motion.md, caption.md, generation.md, fonts.md, timeline.md and positioning.md. Follow the skill wherever the brief doesn't say otherwise. Skip its version check, its onboarding questions and its Studio hand-off.\\n2. This sandbox has no Shotstack API key, on purpose: never run render, status, studio, ingest, models, generate, analyze, template or login. The edit is rendered after you finish.\\n3. In /workspace, run `npm install gsap @fontsource/inter @fontsource/jetbrains-mono` and `pip install fonttools brotli`. Text in a script Inter lacks (Japanese, Chinese, Korean, Arabic and so on) needs its Noto font too, for example `npm install @fontsource/noto-sans-jp`, or it renders as empty boxes. An html5 page can't load anything from the network, so for each page, subset the fonts' woff2 files to the characters that page uses and embed them in its css as data: @font-face rules. Draw icons as inline SVG. Keep the whole edit under 2 MB.\\n\\nBuild\\n4. First write the words: every kicker, headline and voiceover line, scene by scene, in /workspace/script.md. Reread it as a demanding editor against the brief's Words rules, and rewrite any line that is vague, generic or longer than allowed. Then build the edit in /workspace/edit.json from that script. Give each html5 page one GSAP timeline.\\n5. Look at your work like a designer before you finish. Load every html5 scene in Chromium with Playwright (both are installed; Chromium is in /opt/pw-browsers) as a 1080 x 1920 page with its html, css and js, the GSAP you installed, and a grey box where its photo will be. Pause the timeline and seek it to 0.4 s, to the middle and to 0.3 s before the scene ends, and screenshot each. Put all the screenshots in one contact sheet with ImageMagick's montage, open it with the read tool and look at it. Fix whatever a design studio would reject: crowding, text touching an edge or another element, uneven margins, edges that don't line up, sizes that jump between scenes, a scene that looks empty or busy, anything in the caption band. Do this at most 3 times.\\n6. Run `shotstack validate /workspace/edit.json`. Fix every error, and every warning unless the brief asks for exactly that thing, then validate again until it passes. Check the brief once more: the 32 seconds, the scene timing, as many voiceover sentences as scenes, the end card as described, the counts and the captions.\\n7. Copy the validated file to /mnt/session/outputs/edit.txt, unchanged. Then reply \\\"done\\\" and nothing else.\", \"tools\": [{\"type\": \"agent_toolset_20260401\", \"default_config\": {\"enabled\": true, \"permission_policy\": {\"type\": \"always_allow\"} }, \"configs\": [{\"name\": \"web_fetch\", \"enabled\": false}, {\"name\": \"web_search\", \"enabled\": false}]}]}",
                "method": "POST",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 1200,
                  "y": 0
                }
              },
              "parameters": {}
            }
          ]
        },
        {
          "flow": [
            {
              "id": 2,
              "mapper": {
                "qs": [
                  {
                    "key": "limit",
                    "value": "100"
                  }
                ],
                "url": "/v1/agents",
                "method": "GET",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 600,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 23,
              "mapper": {
                "qs": [
                  {
                    "key": "limit",
                    "value": "100"
                  }
                ],
                "url": "/v1/environments",
                "method": "GET",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 900,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 3,
              "mapper": {
                "url": "https://shotstack.io/learn/rss.xml",
                "gzip": true,
                "maxResults": 1
              },
              "module": "rss:ActionReadArticles",
              "version": 4,
              "metadata": {
                "designer": {
                  "x": 1200,
                  "y": 300
                }
              },
              "parameters": {
                "include": []
              }
            },
            {
              "id": 4,
              "mapper": {
                "url": "{{3.url}}",
                "method": "get",
                "timeout": 60,
                "shareCookies": false,
                "parseResponse": false,
                "allowRedirects": true,
                "stopOnHttpError": false,
                "requestCompressedContent": true
              },
              "module": "http:MakeRequest",
              "version": 4,
              "metadata": {
                "designer": {
                  "x": 1500,
                  "y": 300
                }
              },
              "parameters": {
                "authenticationType": "noAuth"
              }
            },
            {
              "id": 5,
              "mapper": {
                "object": "Make a 32-second vertical Short (mp4, 1080 x 1920, 30 fps) that tells the main idea of this article to someone scrolling past. It must look made by hand in a design studio: calm, precise and premium, never \"AI art\".\n\nTitle: {{3.title}}\nThe feed's summary: {{substring(stripHTML(3.description); 0; 6000)}}\nThe article's web page, as text: {{substring(stripHTML(4.data); 0; 30000)}}\n\nThe system (copy it exactly)\n- One look for the whole video. Light: background #E9E6E1, text #1C1C1C, muted #8C8882. Or dark: background #0D0F13, text #F4F2EE, muted #7D8088. Pick the one that suits the article. Add one accent colour that suits the subject, for example a soft pink #F28DA6. It's only for small things: the spoken word in the captions, the hook's highlighter bar, check badges, the product name in a title bar, a thin line. Never a whole background, except on the end card.\n- Three zones, the same on every scene, so nothing collides: the top zone (y 80 to 560) holds the kicker and the headline, the middle zone (y 600 to 1400) holds the scene's visual, and the bottom zone (y 1480 to 1760) holds only the captions. 84 px left and right margins. Few words: besides the kicker, the headline, the captions and the end card's page, at most 8 more on screen at once.\n- The top zone: a kicker at y 120, JetBrains Mono, 26 px, uppercase, letter-spacing 0.12em, in the muted colour. On the first scene it's the site's name and the article's date (\"SHOTSTACK BLOG · 21 OCT 2026\"), then a section number and name (\"01 — TEMPLATES\"). Under it from y 170, the headline: Inter, weight 600, 104 to 116 px, letter-spacing -0.03em, line height 1.05, sentence case, left-aligned, at most 3 lines and 7 words. It's the biggest, boldest text on screen; only the one huge number is bigger. Its lines rise in one after another, 0.08 s apart.\n- 7 or 8 scenes, one idea each, each showing exactly what its sentence of the voiceover says, and timed to that sentence (see Sound and captions). Scenes cut. Nothing flashes, shakes, spins or punches in. Things build up step by step and then hold still long enough to read. A scene's first frame is never empty: its kicker is there from 0 and its headline starts rising at 0.\n- Each scene is one html5 clip covering the whole frame, and everything designed for that scene lives inside it: the kicker, the headline, cards, diagrams, numbers and labels. Its background is the look's colour, or transparent where a photo shows through: the end card waits underneath, so a scene without a photo always paints its own background.\n- Use these kinds of scenes, in the order the story needs:\n  - The opening: the hook. Not the article's title but a 3 to 6 word line ending in a full stop that makes a scroller stop: the article's news, or its sharpest claim or problem (\"Gemini 4 Argon just dropped.\", \"Some data can't leave the building.\"). It's the biggest headline in the video (Inter 600, 120 px, up to 3 lines), its lines rising in as the voice says them, with an accent highlighter bar drawing in behind its key words. Under it, in the middle zone, the article's subject shown literally, never a symbol or metaphor of the idea (no speech bubbles for languages, no lightbulbs for ideas): what the article makes or runs, recreated in html5 with the article's real names and data, for example the video it outputs playing on a phone, its app's screen, or its config. A photo may fill that phone's or window's screen when it shows something real from the article (its device, its place, the subject of its example): an image clip sized to the screen, which the html5 leaves as a transparent hole (a transparent screen element whose huge spread box-shadow paints the background, so the scene's body stays transparent).\n  - Product-style UI that shows how the idea works. A dark app window (rounded 24 px corners, a mono title bar with three dots, the product's name in the accent), with a request typing itself into a bubble. A row of white rounded tiles (200 px, thin #DDD9D3 border, soft shadow), each with a simple line icon, a label (Inter, 40 px) and a mono sub-label (26 px, muted), joined by thin lines that draw themselves, and an accent check badge on each tile as its step is done.\n  - Everything in the middle zone must be readable on a phone: no text under 26 px, and the app window's text at least 32 px. Each scene's visual fills most of the middle zone (at least 700 px wide or 500 px tall), never a small thing adrift in empty space.\n  - A list that builds one line at a time (a small icon, then Inter at 64 px), with the last line muted.\n  - One huge number or word (Inter, 360 to 480 px, inside the middle zone) with a short mono label under it. Use it once, for the article's most striking fact.\n  - A real object in a photo, with a small floating label card that names it.\n  - The end card: the accent as the background on the light look, or the look's background on the dark look. The headline \"Read it on\" and the site's name, and under it a recreation of the article's page in a white browser window, built in html5 from the page's real text: the address bar with the article's address, the site's name and menu in its header, then the section and date, the article's title, and its first few contents headings. No photo. It doesn't animate: it's one html5 clip with start 0 and length \"end\" on the track under the photos. The scenes and photos cover it until the last sentence, which plays over it. Never give \"end\" to a clip that starts later than 0: Shotstack makes its length the whole timeline's.\n- Photos: 1 or 2, each generated with nano-banana-2 (options aspectRatio \"9:16\", resolution \"2K\"). Each is a real-looking photograph of something real in the article (its device, its place, the subject of its example), never a symbol of the idea: one subject on a seamless backdrop in the look's colours, or a real place, soft daylight, real shadows, shallow depth of field, shot on a medium-format camera, with the top and bottom zones plain, so the headline and captions stay clear. On the dark look it can be a quiet real place at dusk with one warm light. Never: screens showing UI, people at laptops, holograms, glowing network lines, particles, robots, circuit boards, purple-blue gradients, or any text or logo. A photo moves only with a slow push-in (scale 1 to 1.04 over its scene).\n\nWords (write them before you design anything)\n- Write for a developer or product person scrolling past. Say what the article lets them do and why it matters, in its own concrete terms: its product names, numbers, steps and results. Cut any line that would fit a different article.\n- The opening headline is the hook, never the article's title. Read in order, the headlines alone tell the story, each a short statement with a full stop (\"One of the first to integrate it.\", \"Plain language in. A workflow out.\").\n- The voiceover sounds like an engineer explaining it to a friend: short sentences, \"you\", contractions, exactly one sentence per scene. Each scene's headline is the short form of its sentence: the same point and the same key words, so what's on screen and what's said tell one story.\n- The sentences are one story in order: the hook said aloud (the first sentence opens with its words) and why it matters, how it works in two or three steps, the proof (the article's most striking fact), what you end up with, and last what the reader gets from the full article, specifically (never just \"learn more\"). Read the voiceover alone, aloud: it must make sense as one paragraph to someone who never saw the article, each sentence following from the one before. Rewrite any sentence that needs the screen to make sense, points back with \"it\" or \"this\" to something it never named, or reads like a fragment.\n- Never write: unlock, seamless, effortless, revolutionize, game-changer, supercharge, elevate, leverage, harness, cutting-edge, next-level, \"the power of\", \"in today's world\", \"dive in\", or exclamation marks.\n- Only state facts the article gives. Never make up numbers, quotes, names or claims.\n\nSound and captions\n- Music: one audio clip generated with the elevenlabs-music model from the prompt \"minimal ambient electronic, soft synth pads and light percussion, 120 BPM, instrumental only, no vocals\". It starts at 0, lasts 32 seconds, at volume 0.18. Don't use a composition plan.\n- Voiceover: generated with elevenlabs-multilingual-v2, 60 to 75 words in all, in the article's language, numbers spelled out, calm and warm: exactly one sentence per scene, in scene order, each ending with a full stop or a question mark and no other full stops (no abbreviations like \"e.g.\").\n- Time everything to the voice, never to the clock, so each scene starts exactly when its sentence does: the voiceover is one audio clip per sentence, all on one track, with aliases \"s1\", \"s2\" and so on. The first starts at 0; every other one has start \"auto\", so it follows the one before. All have length \"auto\" and the same model and options, so it's one voice. Each scene's html5 clip, its photo and its captions take start \"alias://s1\" and length \"alias://s1\" (and so on) from their sentence; the last sentence plays over the end card. You only know each length at render: the voice speaks about 2.5 words a second, so finish each scene's build-up a second before (its sentence's words) / 2.5 seconds, then hold. Write those estimates into script.md next to each sentence before you build.\n- Captions: one rich-caption clip per sentence, all on one track, each with src, start and length \"alias://\" of its sentence. One short phrase at a time, in sentence case: Inter at weight 600, 54 px, in the look's text colour, with the spoken word in the accent colour (white over the end card's accent background, where the accent would vanish). No background, no box or pill behind the words, and no outline. Each caption clip is 912 x 200 with fit \"none\", centred at y 1620 in the bottom zone, and nothing else enters the bottom zone. Where a full-bleed photo sits behind the band, the scene's html5 fades it into the look's background colour there with a soft gradient, so the words stay readable without a box.\n\nEasy to miss\n- tracks[0] is the top layer: the captions first, then the html5 scenes, then the photos, then the end card, then the audio.\n- A rich-text animation style is \"character\" or \"word\", nothing else."
              },
              "module": "json:TransformToJSON",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 1800,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 6,
              "mapper": {
                "qs": [],
                "url": "/v1/sessions",
                "body": "{\"agent\": {\"type\": \"agent_with_overrides\", \"id\": \"{{first(map(2.body.data; \"id\"; \"name\"; \"Shotstack video editor\"))}}\", \"model\": {\"id\": \"claude-opus-5-5\", \"effort\": \"high\"}, \"system\": \"You are a senior motion designer. Each session gives you a brief for one short video, and you build it as one Shotstack edit (Edit JSON). No one is watching the session: never ask a question or wait for an answer, and always finish.\\n\\nSet up\\n1. Shotstack's CLI is installed: run `shotstack --version`, and if it's missing, `npm install -g @shotstack/cli`. Its skill ships inside the package, in \\\"$(npm root -g)/@shotstack/cli/skills/shotstack\\\". Read its SKILL.md and shared/agent-core.md in full, then references/html5.md, html5-effects.md, html5-snippets.md, motion.md, caption.md, generation.md, fonts.md, timeline.md and positioning.md. Follow the skill wherever the brief doesn't say otherwise. Skip its version check, its onboarding questions and its Studio hand-off.\\n2. This sandbox has no Shotstack API key, on purpose: never run render, status, studio, ingest, models, generate, analyze, template or login. The edit is rendered after you finish.\\n3. In /workspace, run `npm install gsap @fontsource/inter @fontsource/jetbrains-mono` and `pip install fonttools brotli`. Text in a script Inter lacks (Japanese, Chinese, Korean, Arabic and so on) needs its Noto font too, for example `npm install @fontsource/noto-sans-jp`, or it renders as empty boxes. An html5 page can't load anything from the network, so for each page, subset the fonts' woff2 files to the characters that page uses and embed them in its css as data: @font-face rules. Draw icons as inline SVG. Keep the whole edit under 2 MB.\\n\\nBuild\\n4. First write the words: every kicker, headline and voiceover line, scene by scene, in /workspace/script.md. Reread it as a demanding editor against the brief's Words rules, and rewrite any line that is vague, generic or longer than allowed. Then build the edit in /workspace/edit.json from that script. Give each html5 page one GSAP timeline.\\n5. Look at your work like a designer before you finish. Load every html5 scene in Chromium with Playwright (both are installed; Chromium is in /opt/pw-browsers) as a 1080 x 1920 page with its html, css and js, the GSAP you installed, and a grey box where its photo will be. Pause the timeline and seek it to 0.4 s, to the middle and to 0.3 s before the scene ends, and screenshot each. Put all the screenshots in one contact sheet with ImageMagick's montage, open it with the read tool and look at it. Fix whatever a design studio would reject: crowding, text touching an edge or another element, uneven margins, edges that don't line up, sizes that jump between scenes, a scene that looks empty or busy, anything in the caption band. Do this at most 3 times.\\n6. Run `shotstack validate /workspace/edit.json`. Fix every error, and every warning unless the brief asks for exactly that thing, then validate again until it passes. Check the brief once more: the 32 seconds, the scene timing, as many voiceover sentences as scenes, the end card as described, the counts and the captions.\\n7. Copy the validated file to /mnt/session/outputs/edit.txt, unchanged. Then reply \\\"done\\\" and nothing else.\"}, \"environment_id\": \"{{first(map(23.body.data; \"id\"; \"name\"; \"Shotstack CLI\"))}}\", \"budget\": {\"type\": \"limit\", \"max_list_cost\": {\"amount\": \"1000\", \"currency\": \"USD\"} }, \"initial_events\": [{\"type\": \"user.message\", \"content\": [{\"type\": \"text\", \"text\": {{5.json}} }]}]}",
                "method": "POST",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 2100,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 7,
              "mapper": {
                "step": 1,
                "start": 1,
                "repeats": 56
              },
              "module": "builtin:BasicRepeater",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 2400,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 8,
              "mapper": {
                "name": "done7"
              },
              "module": "util:GetVariable2",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 2700,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 9,
              "filter": {
                "name": "Not finished yet",
                "conditions": [
                  [
                    {
                      "a": "{{8.done7}}",
                      "b": "{{6.body.id}}",
                      "o": "text:notequal"
                    }
                  ]
                ]
              },
              "mapper": {
                "duration": 30
              },
              "module": "util:FunctionSleep",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 3000,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 10,
              "mapper": {
                "qs": [],
                "url": "/v1/sessions/{{6.body.id}}",
                "method": "GET",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 3300,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 11,
              "filter": {
                "name": "Finished",
                "conditions": [
                  [
                    {
                      "a": "{{10.body.status}}",
                      "b": "idle",
                      "o": "text:equal"
                    }
                  ],
                  [
                    {
                      "a": "{{10.body.status}}",
                      "b": "terminated",
                      "o": "text:equal"
                    }
                  ]
                ]
              },
              "mapper": {
                "name": "done7",
                "scope": "roundtrip",
                "value": "{{6.body.id}}"
              },
              "module": "util:SetVariable2",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 3600,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 29,
              "mapper": {
                "duration": 10
              },
              "module": "util:FunctionSleep",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 3900,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 12,
              "mapper": {
                "qs": [
                  {
                    "key": "scope_id",
                    "value": "{{6.body.id}}"
                  }
                ],
                "url": "/v1/files",
                "method": "GET",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 4200,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 28,
              "mapper": {
                "qs": [],
                "url": "/v1/files/{{first(map(12.body.data; \"id\"; \"filename\"; \"edit.txt\"))}}/content",
                "method": "GET",
                "headers": [
                  {
                    "key": "anthropic-beta",
                    "value": "managed-agents-2026-04-01"
                  }
                ]
              },
              "module": "anthropic-claude:makeAnApiCall",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 4500,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 30,
              "mapper": {
                "object": "{{28.body}}"
              },
              "module": "json:TransformToJSON",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 4800,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 13,
              "mapper": {
                "edit": "{{if(28.body.timeline; 30.json; toString(28.body))}}",
                "wait": false
              },
              "module": "shotstack:renderEdit",
              "version": 2,
              "metadata": {
                "designer": {
                  "x": 5100,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 14,
              "mapper": {
                "step": 1,
                "start": 1,
                "repeats": 40
              },
              "module": "builtin:BasicRepeater",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 5400,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 15,
              "mapper": {
                "name": "done14"
              },
              "module": "util:GetVariable2",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 5700,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 16,
              "filter": {
                "name": "Not finished yet",
                "conditions": [
                  [
                    {
                      "a": "{{15.done14}}",
                      "b": "{{13.id}}",
                      "o": "text:notequal"
                    }
                  ]
                ]
              },
              "mapper": {
                "duration": 30
              },
              "module": "util:FunctionSleep",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 6000,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 17,
              "mapper": {
                "uuid": "{{13.id}}"
              },
              "module": "shotstack:renderStatus",
              "version": 2,
              "metadata": {
                "designer": {
                  "x": 6300,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 18,
              "filter": {
                "name": "Finished",
                "conditions": [
                  [
                    {
                      "a": "{{17.status}}",
                      "b": "done",
                      "o": "text:equal"
                    }
                  ],
                  [
                    {
                      "a": "{{17.status}}",
                      "b": "failed",
                      "o": "text:equal"
                    }
                  ]
                ]
              },
              "mapper": {
                "name": "done14",
                "scope": "roundtrip",
                "value": "{{13.id}}"
              },
              "module": "util:SetVariable2",
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 6600,
                  "y": 300
                }
              },
              "parameters": {}
            },
            {
              "id": 19,
              "mapper": null,
              "module": "builtin:BasicRouter",
              "routes": [
                {
                  "flow": [
                    {
                      "id": 20,
                      "filter": {
                        "name": "The Short is ready",
                        "conditions": [
                          [
                            {
                              "a": "{{17.status}}",
                              "b": "done",
                              "o": "text:equal"
                            }
                          ]
                        ]
                      },
                      "mapper": {
                        "url": "{{17.url}}",
                        "shareCookies": false,
                        "stopOnHttpError": true
                      },
                      "module": "http:DownloadFile",
                      "version": 4,
                      "metadata": {
                        "designer": {
                          "x": 7200,
                          "y": 300
                        }
                      },
                      "parameters": {
                        "authenticationType": "noAuth"
                      }
                    },
                    {
                      "id": 21,
                      "mapper": {
                        "data": "{{20.data}}",
                        "select": "map",
                        "convert": false,
                        "filename": "{{3.title}}.mp4",
                        "folderId": "YOUR_FOLDER_ID"
                      },
                      "module": "google-drive:uploadAFile",
                      "version": 4,
                      "metadata": {
                        "designer": {
                          "x": 7500,
                          "y": 300
                        }
                      },
                      "parameters": {}
                    }
                  ]
                },
                {
                  "flow": [
                    {
                      "id": 22,
                      "filter": {
                        "name": "Shotstack says it failed",
                        "conditions": [
                          [
                            {
                              "a": "{{17.status}}",
                              "b": "failed",
                              "o": "text:equal"
                            }
                          ]
                        ]
                      },
                      "mapper": {
                        "name": "{{3.title}} - failed.txt",
                        "content": "Shotstack couldn't make the Short for {{3.title}}.\n\nWhat went wrong: {{ifempty(17.error; \"Shotstack gave no reason.\")}}\n\n{{if(contains(17.error; \"AI generation\"); \"Some of the AI images, music or voiceover couldn't be generated, so Shotstack stopped the render and no Short was made. AI models sometimes refuse or fail a prompt: run this article again.\"; \"Run this article again. If it fails the same way, look up the render ID below in the Shotstack dashboard.\")}}\n\nRender ID: {{13.id}}",
                        "convert": false,
                        "folderId": "YOUR_FOLDER_ID",
                        "destination": "drive"
                      },
                      "module": "google-drive:createAFileFromText",
                      "version": 4,
                      "metadata": {
                        "designer": {
                          "x": 7200,
                          "y": 600
                        }
                      },
                      "parameters": {}
                    }
                  ]
                }
              ],
              "version": 1,
              "metadata": {
                "designer": {
                  "x": 6900,
                  "y": 300
                }
              },
              "parameters": {}
            }
          ]
        }
      ],
      "version": 1,
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      },
      "parameters": {}
    }
  ],
  "name": "AI video Shorts from an RSS feed: Claude agent",
  "metadata": {
    "instant": false,
    "version": 1,
    "designer": {
      "orphans": []
    },
    "scenario": {
      "dlq": false,
      "dataloss": false,
      "maxErrors": 3,
      "autoCommit": true,
      "roundtrips": 1,
      "sequential": false,
      "confidential": false,
      "autoCommitTriggerLast": true
    }
  }
}