# Weekly revenue film

A 45-second film each week of last week's Stripe revenue, net of refunds and fees, per currency, against the week before.

Requires Stripe, through Composio. Requires your fal.ai key, through the fal MCP server; fal bills your account for each image, voice and clip. Runs on a schedule.

## Install

No one has run this against real Stripe accounts through Composio yet. Its eval cases use stand-ins.

```sh
npx @parcha/agentrun template install github:Parcha-ai/agentrun-templates/templates/metrics-video@9ed9ff98e3130d3dce065743e8c60bb13e84f646 --trust
```

Or open `<your AgentRun address>/#/templates/install?src=github%3AParcha-ai%2Fagentrun-templates%2Ftemplates%2Fmetrics-video%409ed9ff98e3130d3dce065743e8c60bb13e84f646`. Pinned to commit 9ed9ff98e3130d3dce065743e8c60bb13e84f646.

### Install with your agent

Copy this prompt into your coding agent:

```text
Help me install the Weekly revenue film template on my existing AgentRun.

Pinned template source: github:Parcha-ai/agentrun-templates/templates/metrics-video@9ed9ff98e3130d3dce065743e8c60bb13e84f646
Read the template and its instructions: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/metrics-video

Ask for my AgentRun address or local installation directory if you do not already know it. Confirm which instance to use before making changes.
Read https://agentrun.ai/SKILL.md and inspect the installed version's template install help. Use the installation workflow that version supports.
Review this template's setup, instructions and requested tools with me, then install the pinned version on that instance with the settings and permissions I approve. Do not start a second instance or redeploy my existing one.
If this version cannot install templates, explain what is missing and the supported next step. Verify the result and tell me how to run the installed agent.
```

## What it does

Every Monday morning, a 45 second film of last week's revenue from your Stripe account, read through Composio. The figure, named on the film: revenue net of refunds and Stripe fees, per currency, never converted or added across currencies. The film shows the week, its days, the change on the week before (read again from Stripe, and a figure Stripe changed since is said), and refunds and disputes with their counts. A script works out every number; voice and screen say exactly those. It checks every file and what the voice says for customer data; a name it can't tell from common words can get past it. ElevenLabs v3 narrates and ElevenLabs Music scores it on fal.ai; HyperFrames renders it in the sandbox. You get film.mp4, the voiceover, music, captions and the film's source. About $0.57 of fal a film. Needs the media sandbox (Chrome, FFmpeg, HyperFrames), Stripe connected through Composio (read only), and your fal key as the fal server in Settings → MCP servers (hosted AgentRun bills fal as run spend instead).

- Skill `fal-audio`: Make speech, music and transcripts with fal.ai through its MCP server (the \`fal\` server, tools named mcp:fal/\<tool\>). Covers picking a voice, music or speech-to-text model, writing a script ElevenLabs v3 reads well (audio tags, pacing, voice settings), running a job without paying twice, saving the audio into the run's files, and the errors fal returns. Use whenever a task asks for narration, a voiceover, a spoken summary, background music, or a transcript of a recording.
- Skill `metrics-video`: Make the weekly revenue film from Stripe's balance transactions with HyperFrames (HTML rendered to video) in the run's sandbox. Covers the week's bounds in the owner's time zone, reading Stripe (AgentRun files its answers for the kit's script), the script that works out every figure (revenue net of refunds and Stripe fees, per currency, day by day, against the carried week before, refunds and disputes), the narration from the script's words, the kit (a data-driven project whose scenes read one data module), placing scenes on the voice, captions, the check, review and render loop, and keeping customer data out. Use for the weekly metrics film and for a film of one past week by hand.

## What starts it

- On a schedule: Mondays at 07:00 (UTC), unless you pick another time when you install it.
- By hand, any time: from the console, the API or the CLI.

## Inputs

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `week_of` | string, date | no | By hand: film the week (Monday to Sunday in your time zone) that holds this date, once it is over. Blank: the last whole week. A film by hand has no week over week. Example: `2026-11-16`. |

### Setup, filled in once at install

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `business_name` | string | no | The name the film opens and ends on, like Larkspur Ceramics, at most 40 characters with no quotes, $, backticks or backslashes; blank: the film is titled Weekly revenue. |
| `timezone` | string, timezone | no | The IANA time zone your weeks are counted in and the schedule runs in (Europe/Madrid): a week runs from Monday 00:00 to the next Monday 00:00 there. UTC unless you set it. Default: `UTC`. |
| `cron` | string, cron | no | When the weekly film is made, as a cron line in the time zone (minute hour day-of-month month day-of-week): Mondays at 07:00 unless you set it. Each run films the last whole week. Default: `0 7 * * 1`. |
| `voice` | string, one of Rachel, Aria, Sarah, Laura, Charlotte, Alice, Matilda, Jessica, Lily, Roger, Charlie, George, Callum, River, Liam, Will, Eric, Chris, Brian, Daniel, Bill | no | The ElevenLabs voice that narrates the film. Default: `Aria`. |
| `music` | boolean | no | Score the film with an instrumental bed from ElevenLabs Music (about $0.45 of the $0.57); off: the voice alone. Default: `true`. |
| `max_fal_usd` | number, at least 0 | no | Your own ceiling on fal, optional: left empty, nothing is refused for price. Each run prices its plan first (the voiceover, a second shorter voiceover held in reserve, and the music) and says what it will cost on fal. Set a ceiling and a plan over it is refused before any paid call. A film is about $0.57. |

## What it needs

- Harness: claude-agent, pi
- Model: balanced tier, prefers anthropic/claude-sonnet-5-5, medium effort
- Model choices, picked at install instead:
  - Opus 5.5: `anthropic/claude-opus-5-5` on `claude-agent`. Stronger film review; costs more per run than the default.
- Tools: read, write, edit, bash, web_save
- Composio Stripe tools: STRIPE_LIST_BALANCE_TRANSACTIONS. Reads your Stripe balance transactions to work out each week's revenue. It reads only: no charge, no refund, no change to any customer.
- fal.ai MCP server tools: get_pricing, get_model_schema, submit_job, wait_for_jobs, get_submission. Makes the voiceover and the music bed on fal.ai with the fal key this server keeps. Held to ElevenLabs v3 and ElevenLabs Music. About $0.57 a film, billed to your fal account, or on hosted AgentRun as run spend. The film itself renders in the sandbox, never on fal.
- Computer: a computer with a shell
- Keys: A model key for the balanced tier; the preferred model runs with a key for Anthropic
- Learning: off

## Sample output

No sample output ships with this template yet.

## Tested

Passes 9 of 9 eval cases on Claude Code.

10 eval cases: customer-data-stays-out, customer-name-only, first-week, late-refund, live-week-over-week, music-refused, no-revenue, two-currencies, user-ceiling, week-over-week.

## Source

- Package: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/metrics-video
- Publisher: Parcha-ai
- Author: Parcha Labs
- Version: 0.1.0
- License: Apache-2.0
- Category: Finance
- Page: https://marketplace.agentrun.ai/templates/metrics-video/
