Clip Outreach & Pipeline
Send each prospect a short clip made for them, review every email before it goes, and send from your own Gmail: the outreach commands, the pipeline and the clip pages.
Why Clip Outreach
A cold email is easy to ignore. A short clip made for one person, about their own work (a teaser for their latest episode, a hello with their name in it), is a reason to open it and a reason to reply. Clip outreach makes that practical at the scale of a weekly list: one personalized clip per prospect, each behind a page that plays without a 5AM account, and one email per prospect that carries the link.
It is built so you stay in charge of every message:
- You review every email before it goes. Drafts wait for your Approve, in your AI character's chat, on the web or in the apps.
- Email leaves from your own mailbox.
5am outreach senduses your Gmail; 5AM never sends outreach from its own domain. - The prospect gets something useful. Their page has Download and share buttons and a link back to their episode or show, and they can claim it and publish it under their name.
- You know what happened. Each page counts views, email opens, plays, shares, downloads, button clicks and sign-ups.
How It Fits Together
Three pieces, each usable on its own:
- The Pipeline: the list of prospects (items), their contacts, their activity, and the email drafts awaiting review, kept by an AI character (the Sales Director by default). See Pipeline.
- Clip pages: a page for one video, at
https://5am.app/c/<token>, that plays without an account. See A page for one video. - The outreach commands: the batch flow that ties them together, from a CSV of prospects to sent emails and their stats. See Clip Outreach Commands.
CSV ─▶ prepare ─▶ clips ─▶ draft ─▶ review ─▶ send ─▶ stats
| Step | What it does | Cost |
|---|---|---|
prepare | creates the pipeline items, writes one film per prospect and draws its contact sheet | free (unless you ask for real clips) |
clips | renders each film, uploads it with a GIF preview and turns its page on | 20 AI credits per clip (100 for a real clip) |
draft | stages one email per prospect and posts the batch to your character's chat for review | free |
| review | you watch each clip, edit the message, then approve or skip it | free |
send | sends what you approved from your own Gmail | free |
stats | reads each page's counts | free |
Every step works on one batch and resumes where it stopped, so a failed run picks up again instead of starting over.
CLI versions. The flow works with CLI v1.6.2. Parts marked From CLI v1.7.0 need the next release: the sender settings (outreach config), per-row templates and branding, fitting long text, outreach fill, draft --dry-run, --only, returning an approved draft to review, bulk draft actions, and rendering with Skia instead of Chrome. Parts marked From CLI v1.8.8 need the release after v1.8.7: the do-not-contact list, setting aside rows that must not be emailed, drafting up to the review limit, the follow-up message, editing an approved draft, bulk actions that skip what they cannot move, review --no-wait, paging the drafts list and a shorter on-screen title. Parts marked From CLI v1.8.9 need the release after v1.8.8: the default email about a new episode. 5am --version shows yours; 5am update updates it.
The Batch (--batch)
A batch is one list of prospects you contact together, named by --batch: oct_week_1, ep_2026_10_14, whatever helps you find it again. prepare creates it, and every later command (clips, draft, review, send, stats) takes the same name, which is how the steps know which prospects, clips and drafts they work on.
- Where it lives. A private folder on your computer,
~/.5am/outreach/<batch>/, that only your user account can open. It holds the batch's state (batch.json: each prospect and how far they got), each prospect's film, contact sheet, rendered clip and email GIF, and a log of the calls the commands made (ids only, never names or email addresses). - The name. 1 to 64 characters: lowercase letters, digits,
_and-, starting with a letter or digit. The name is also the campaign label on every clip link in the emails (utm_campaign=<batch>), which shows in your analytics, so never put a prospect's name or an email address in it. - Running a step again. With the same
--batch, a command picks up where it stopped.preparepreserves hand-edited films and rechecks their layout;--regenerateexplicitly replaces selected editable films.clipsresumes saved exports and uploads, anddraftstages rendered rows that still need a draft. See Resuming and Troubleshooting Runs. - One character. The AI character chosen at
preparestays with the batch; its pipeline holds the batch's prospects and drafts. - When to start a new one. For each new list or week (a batch takes up to 100 prospects), and for a follow-up round to people you already emailed (
--follow-up). - In the chat. The review card names its batch ("batch oct_week_1"), so you know which list you are approving.
Ways to Use It
- A weekly batch from the terminal. Prepare a CSV, look at the free contact sheets, render, draft, review, send. Your first batch walks through it.
- Review on your phone.
draftposts the batch into your character's chat with a review card and pushes your phone. Watch each clip, edit the message, Approve or Skip in the chat (web, iOS or Android) or on Android's Outreach review screen. Approving marks the draft ready; it leaves your Gmail the next time5am outreach sendruns. - With an AI agent. An agent can run the batch for you: prepare, render and draft. It should ask you before spending credits, leave the review to you, and send only what you approved. It can also record an email you already sent by hand, so the pipeline knows (see Recording an Email You Already Sent).
- Just one piece. Turn on a page for one video to send a client, or work the Pipeline's approval queue with your own email flow.
What It Costs
- 20 AI credits per rendered clip. That is the only charge in the flow, unless you ask for clips of the episodes themselves (from CLI v1.8.99): those spend your Gemini access while
preparemakes them and render at 100 credits each. See Real Clips From the Episode. clips --page-text,5am media public-link draftanddraft --personalizespend your Gemini access: your own key if you saved one, else AI credits.- Preparing, reviewing, sending and stats are free.
- To see where credits went,
5am credits history(from CLI v1.8.8) lists each charge. A clip's charge is one row whose request id is the export idbatch.jsonkeeps for that prospect.
Your First Batch
What you need: the CLI signed in (5am login) with AI credits for exports; a Premium plan and a character with the pipeline skills (the Sales Director has them); Node.js 20+ and FFmpeg, with the optional runtime (5am update --runtime-only), which installs Skia, the engine that renders the clips on your machine without a browser; a Gmail account with 2-step verification, so it can issue an app password. 5am motion doctor checks that Skia loads without rendering or charging. Chrome or Chromium is needed only if you roll back to the Chrome engine (--engine chrome or FIVEAM_MOTION_ENGINE=chrome). Skia and motion doctor are from CLI v1.7.0; v1.6.2 renders with Chrome or Chromium, so it needs one installed.
1. Gmail, once. Your emails go out from your own Gmail through an app password: a separate 16-letter password Google issues for one app. It is not your Google password, and you can revoke it at any time without changing anything else.
To get one:
- Turn on 2-Step Verification for your Google account if it is not on yet: open myaccount.google.com/security and choose 2-Step Verification. Google offers app passwords only once it is on.
- Open myaccount.google.com/apppasswords, signing in again if Google asks.
- Type a name you will recognize, such as
5AM CLI, and click Create. - Google shows the password once, as four groups of four letters. Copy it (the spaces do not matter) and paste it into
mail setupbelow.
If the App passwords page says the setting is not available, 2-Step Verification is off, your account uses only security keys for it, it is a work or school account whose administrator turned app passwords off, or it is enrolled in Google's Advanced Protection.
Then store it:
5am outreach mail setup --address you@gmail.com # paste the app password at the hidden prompt
5am outreach mail test # one message to yourself
mail setup signs in to Gmail once to check the password (nothing is sent), then stores it. A 534 5.7.9 answer means you typed your Google account password; it has to be the app password.
Set the name that should sign your messages and the mailbox they should come from (from CLI v1.7.0; earlier releases sign with your account's name):
5am outreach config set --sender-name "Your name" --mailbox you@gmail.com \
--subject 'For your new episode of {{show}}'
5am outreach config show --check-account
These preferences are saved separately from the Gmail password and bound to your signed-in 5AM account. The configured mailbox must match the Gmail address used to send. See Sender and Message Templates for a custom body and changing existing drafts.
Your app password stays on your computer. The CLI keeps it in your system keychain (Keychain on macOS, Secret Service on Linux, Credential Manager on Windows) or, where there is no keychain, in the CLI's own config file, readable only by your user account. It is used for one thing: signing in to Gmail's mail server (smtp.gmail.com, over an encrypted connection) when you send. It is never sent to 5AM's servers. 5am outreach mail clear or 5am logout deletes it from your computer, and revoking it on the App passwords page stops it working everywhere. For a one-off run or CI, set FIVEAM_GMAIL_ADDRESS and FIVEAM_GMAIL_APP_PASSWORD instead of storing it.
2. A template. Any Motion film with {{name}} in its title or a text layer, and optionally {{line}} (an episode title, a personal note), {{show}} and {{site}} for the sign-off card:
5am motion generate --brief "A 15 second hello for a podcast host, their name large, then the episode title" --format 9:16 --duration 15 -o template.motion.json
5am motion lint template.motion.json
Open the file, put {{name}} where the name goes and {{line}} where the second line goes, then lint it again. The Motion Films reference covers the format.
A template built around an episode ("New episode", its title held on screen) should say so at its top, so it is never used for someone you are introducing yourself to (from CLI v1.7.0):
"outreach": { "requires": ["line"] }
A row with an empty line (an intro) is then refused as needs_fix before its pipeline item or film is made: use a template made for intros for those rows. A template without the field takes any row. The film engine ignores the field.
To see one prospect's film before you prepare a batch, fill the template exactly as prepare would, for free and without signing in (from CLI v1.7.0):
5am outreach fill --template template.motion.json --name "Maya Chen" --line "Episode 41: Small bets" \
--show "The Small Bets Show" --site smallbets.fm -o maya.motion.json
5am motion sheet maya.motion.json -o maya.png
fill applies --brand-file the way a CSV row's brand_file does, fits long text, and refuses what prepare would refuse (an intro on an episode template, {{ in a value, text that cannot fit). It creates no pipeline item and renders nothing.
3. A CSV. One row per prospect; only name is required.
| Column | What it is |
|---|---|
name | spelled as it should appear in the clip |
email | where the message goes; a row without one is kept for a DM. From CLI v1.8.95, a contact_email column (what 5am pipeline items list --csv writes) works too |
website | the show's or business's site |
source_url, source_title | what the clip is about (the episode's page and its title), linked from the clip page |
line | the {{line}} text |
context | facts for the page writer, such as the episode's show notes |
show, site | the sign-off card: the show's name and where to listen. From CLI v1.8.99 its "LISTEN AT {{site}}" names a listening app for a YouTube, Spotify or Apple Podcasts link ("LISTEN ON YOUTUBE") and, with no site of the show's own, reads "LISTEN WHEREVER YOU GET PODCASTS"; before, it fell back to 5am.app |
instagram, observation, inference | optional research notes |
brand_file | path to a JSON file with this prospect's colors, fonts and artwork; see Branding and Layout |
template_file | optional path to this row's Motion template; overrides --template |
5am pipeline items list --csv prospects.csv writes this shape from your pipeline.
A bare domain in website or source_url (siriusxm.com) is read as https://siriusxm.com (from CLI v1.8.8), and a value that is still not a web address is dropped from its row with a warning naming the line. Earlier releases refuse the whole file for it.
4. Prepare (free).
5am outreach prepare --csv prospects.csv --template template.motion.json --batch oct_week_1 --character "Sales Director"
--batch oct_week_1 names this batch: every later step takes the same name (see The Batch). Each row gets its pipeline item, a personalized film and a contact sheet. Prepare shrinks long text to fit (from CLI v1.7.0), then checks the layout. Look at every sheet in ~/.5am/outreach/oct_week_1/ before going on. If a row still needs a fix, follow its error, edit its film and run prepare again; your manual edits are preserved.
To use different designs within a batch, set template_file on each CSV row (from CLI v1.7.0):
name,email,template_file,line
Maya Chen,maya@example.com,/path/to/mic-drop.motion.json,Small bets that worked
Alex Kim,alex@example.com,/path/to/story-window.motion.json,Building a daily habit
Use absolute paths. Relative paths resolve from the directory where you run
the CLI. Empty cells use the required --template fallback; add
--require-row-templates to prepare when every row must specify its design.
Each template needs {{name}} and can use the other supported placeholders.
Per-prospect branding applies to the selected design.
Prepare saves each source template's name and SHA-256 in batch.json
(template_name, template_hash) and its JSON output. The local review page
shows the name and short hash so you can see which design each prospect got.
Completed rows keep their original attribution on retries. For comparisons,
join that saved attribution to 5am outreach stats --batch <slug> by prospect
slug. Choose the designs in your CSV before preparing.
5. Render (20 credits each).
5am outreach clips --batch oct_week_1 --dry-run
5am outreach clips --batch oct_week_1 --yes
The dry run prices the batch and checks fonts, the render engine and FFmpeg without charging. The real run renders each film, uploads it to the album "Clip for <name>", makes a short GIF for the email, turns the clip's page on and sets its headline, description and link back to the episode. If a charge is refused, the render is kept for 24 hours: buy credits (5am credits buy) and run clips again; it pays for the kept render instead of rendering twice.
6. Draft and review.
5am outreach draft --batch oct_week_1 --dry-run
5am outreach draft --batch oct_week_1
The draft preview (from CLI v1.7.0) shows the resolved sender, mailbox, subject, body, clip link and validation errors without staging or notifying anyone. Check it before running the second command. One email per prospect is then staged in your pipeline, with the clip link and the opt-out sentence, and the batch arrives in your character's chat with a review card (a push tells your phone). Review there, on the web Outreach tab, on Android's Outreach review screen, or on this computer with 5am outreach review --batch oct_week_1.
7. Send.
5am outreach send --batch oct_week_1 --dry-run
5am outreach send --batch oct_week_1 --yes
The send dry run reads the approved drafts and prints the messages without connecting to Gmail. The real run sends the freshly reserved server copy of each approved draft, text plus an HTML part showing the GIF, and marks it sent in the pipeline. An unconfirmed send is held for you to check before retrying.
8. Watch the pages.
5am outreach stats --batch oct_week_1 --record
Sender and Message Templates
5am outreach config set (from CLI v1.7.0) saves defaults in ~/.5am/outreach/config.json. Add --body-file message.txt to copy a body template into the config. Editing the original file later takes effect when you run config set --body-file message.txt again. --follow-up-subject and --follow-up-body-file (from CLI v1.8.8) save a second message for follow-up batches (prepare --follow-up). The first message is used for every prospect in any other batch, an episode or an intro alike; an empty slot leaves draft on its built-in copy, chosen per prospect (see The message under Clip Outreach Commands). Email templates accept {{name}}, {{show}}, {{line}}, {{clip_url}} and {{sender}}:
Hi {{name}},
I made a short teaser for {{show}}: {{line}}.
{{clip_url}}
{{sender}}
The body must contain {{clip_url}}. Every staged message keeps that link exactly once and includes “Reply no and I will not write again.” The CLI appends the opt-out sentence when the template leaves it out.
For new messages, draft --subject, --body-file and --sender-name override the defaults. The batch saves its templates and each message's text and sender, so retries keep the same message after a config change. Without an explicit or saved sender, legacy drafting falls back to the signed-in account profile. Use --require-sender in scripts to require configuration or --sender-name (from CLI v1.7.0).
To apply a revised template to an existing staged draft (from CLI v1.7.0):
5am outreach draft --batch oct_week_1 --only host@example.com \
--body-file message.txt --refresh-staged --dry-run
5am outreach draft --batch oct_week_1 --only host@example.com \
--body-file message.txt --refresh-staged
--refresh-staged leaves approved, sending, sent and rejected drafts as they are and lists them in not_refreshed; the staged ones are still refreshed. Return an approved draft to review first to refresh it, as below. draft --dry-run does not call a model and cannot be combined with --personalize.
Branding and Layout
Supply a brand_file path in a CSV row to apply that prospect's colors, fonts and artwork during prepare (from CLI v1.7.0, as is everything in this section). For example:
{
"colors": { "background": "#102030", "text": "#FFFFFF", "accent": "#EEAA44" },
"fonts": { "display": "inter", "body": "inter" },
"artwork": { "src": "/absolute/path/to/cover.png", "width": 600, "height": 600 }
}
Use absolute paths for the brand file and local artwork. Colors use #RRGGBB; accent2 is also supported. Use Motion font IDs such as inter; see the Motion Films reference for supported fonts. To show this artwork, the Motion template needs an image layer with "photo": "podcast-artwork". Colors and fonts can be supplied without artwork. Supply the episode title and page in the CSV's line, source_title and source_url columns.
For a light palette, try background: "#F5EEDC", text: "#172A28", accent: "#34806D" and accent2: "#C56C45". In a reusable template, use palette tokens for backgrounds and graphics, and omit a text layer's color to let it choose a contrasting foreground. Fixed hex colors inside layers do not change with the brand. The template's sound.style selects generated music and animation cues (minimal, pulse, house or ambient); use none for silence. These cues do not include podcast audio.
Prepare fits long text using the Motion text metrics, down to a font-size floor of 28 for larger text. When the episode title ({{line}}) still does not fit (from CLI v1.8.8), prepare films that prospect once more with a shorter title on screen, cut at a natural break such as " - " or ":", else at a word. It records the shorter title as display_line in batch.json; the email and the page keep the full title. Any other text layer over 160 characters is held without truncation: shorten it before preparing. Words that read on neither brand color (under 3:1 contrast) are set in black or white, whichever reads (from CLI v1.8.8). Remaining layout problems produce needs_fix with a remedy. Review the contact sheets before rendering.
You can edit a prospect's .motion.json directly and rerun prepare to lint it and redraw its sheet. If the CSV, template or brand inputs also changed, reconcile those changes in the film or explicitly regenerate the selected editable row:
5am outreach prepare --csv prospects.csv --template template.motion.json \
--batch oct_week_1 --only host@example.com --regenerate
Rows with export checkpoints are kept. Use a new batch when you intentionally want a new clip after rendering.
Reviewing Drafts
A draft can be reviewed in four places, and they all work on the same queue: a draft approved in one reads approved in the others.
- Your character's chat (web, iOS and Android):
5am outreach draftposts one message per batch with a review card. Each draft shows its clip (tap to play), the recipient, the subject and the message, with Edit, Approve and Skip.--no-review-noticeskips the message. - The Outreach tab on the character's page on the web: every draft, including the ones being sent and the history.
- Android: Profile, Outreach, Outreach review.
- This computer:
5am outreach review --batch <batch>opens a page to watch each clip, edit each draft and approve or skip it, then Done. For an agent or a script,--no-wait(from CLI v1.8.8) serves no page: it prints the batch's drafts as they are on the server and the commands that approve, reject or edit them, then exits.
Approving never sends anything. The email leaves your Gmail when 5am outreach send runs. A reviewing character may also approve drafts that another character wrote, never its own.
From CLI v1.8.8, the account owner corrects an approved draft by editing it directly; it stays approved, with the edit as the approved text:
5am pipeline outreach edit <draftId> --subject "Corrected subject" --body-file corrected-email.txt
A draft being sent or already sent cannot be edited, and an AI character edits only drafts waiting for review. With an earlier CLI (from CLI v1.7.0), return the draft to review first: choose Return to review on the local review page, or use:
5am pipeline outreach unapprove <draftId>
5am pipeline outreach edit <draftId> --subject "Corrected subject" --body-file corrected-email.txt
5am pipeline outreach approve <draftId>
For pipeline outreach edit, supply the complete email text with its clip link, with all placeholders already filled in. Unapprove returns the draft to staged and clears its prior approval. It refuses drafts already sending or sent, and can be blocked by a full review queue or another staged draft for the same item and recipient. You can also reject an approved draft with pipeline outreach reject <draftId> --note "Reason", or Skip on the local review page.
Following Up People Who Watched
From CLI v1.8.95, 5am outreach engaged lists the prospects worth a second clip now: their latest email's clip page was played after the email went out (your own preview before sending never counts), nobody has signed up from it, the email is at least --days old (2 by default), and nothing has been written to them since. It reads every draft and changes nothing.
A play counts only when a visitor starts the clip themselves (a tap or a key press that starts it) or turns its sound on. From CLI v1.8.97, a watch counts too: the clip ran for about 10 seconds in a visible tab after the visitor touched the page (a tap, a touch, the scroll wheel, a key or moving the mouse), with the sound on or off. Most people watch with the sound off and never press play, so before v1.8.97 they were never listed. The page's muted autoplay alone never counts, and neither does a mail scanner that opens the link, since it never touches the page. Your own visits to a page you made never count either.
5am outreach engaged --days 2 --csv engaged.csv
The CSV has name, email, nudge_of (the sent draft it follows up), clip_url, sent_at, last_played_at and plays, and from CLI v1.8.97 last_watched_at and watches (the JSON rows also carry last_engaged_at, the later of the two, and list the most recent first). Add feed_url, line (the new episode's title) and the rest for a fresh clip, then prepare it as a follow-up:
5am outreach prepare --csv engaged.csv --follow-up --min-days-since-sent 2 --template clip.motion.json --batch nudge-nov
prepare checks every nudge_of before it makes anything: each must name an email of yours that was sent to that row's email. A draft that was never sent, one sent to someone else, or one that is not yours stops the whole file with the rows named, so the nudge never reaches the wrong person. Rows 5am outreach engaged writes always pass; fix or remove nudge_of on any row you edited.
A row with nudge_of in a follow-up batch is drafted with the nudge message ("A new video for {{show}}" from CLI v1.8.99; "A new teaser for {{show}}" before): with a line it presents a video for the new episode, without one it is another video for the show. It invites them to turn on Episode Clips from their clip page, and the clip link is its only link. It never says the person was seen playing the clip. A template you set with outreach config set or --body-file applies to every row instead. Everything else is the same as any batch: you review and approve each draft, and 5am outreach send sends from your Gmail. The do-not-contact list and closed items still stop it.
Each draft 5am pipeline outreach list prints also carries its clip page's counts (clip: plays, sign-ups, last_played_at), and its --csv adds plays, signups and last_played_at columns. From CLI v1.8.97, clip also has watches and last_watched_at, and the CSV ends with watches and last_watched_at columns.
People Not to Email
Two things stop every email to a prospect, wherever the draft came from (these commands, an agent or your AI character):
-
The do-not-contact list. When an email bounces, or someone asks not to hear from you again, put the address on your account's list (from CLI v1.8.8):
sh5am pipeline suppress add host@example.com --reason bounced --note "550 mailbox not found" 5am pipeline suppress list 5am pipeline suppress remove host@example.com # the account owner only, never a character's token--reasonisbounced,do_not_contact(the default),unsubscribedorother. Adding an address rejects its drafts that wait for review or for sending, and from then on the Pipeline refuses to stage, approve or send anything to it (recipient_suppressed). An email already on its way is not stopped. -
A closed pipeline item. When your AI character moves a prospect's item to a closed stage (
closed_wonorclosed_lost), its waiting drafts are rejected with the note "Not sent: this prospect was closed", and the item takes no new ones (item_closed). Reopening the item does not bring those drafts back.
prepare, clips and draft check both before they spend anything (from CLI v1.8.8). Such a row is set aside as skipped_suppressed or skipped_closed: nothing is rendered, charged or staged for it, and the same step takes it up again if the address leaves the list or the item reopens.
Clip Outreach Commands
5am outreach config set --sender-name "Your name" --mailbox you@gmail.com # from CLI v1.7.0
5am outreach config show --check-account
5am motion doctor # from CLI v1.7.0: checks Skia (and reports Chrome) without a paid export
5am outreach mail setup --address you@gmail.com # once: a Gmail app password (2-step verification on)
5am outreach mail test # one message to yourself
5am outreach mail report --subject "Weekly digest" --body-file digest.md # mails a file to yourself, nobody else
5am outreach fill --template template.motion.json --name "Maya Chen" -o maya.motion.json # from CLI v1.7.0: one film as prepare writes it, free
5am outreach prepare --csv prospects.csv --template template.motion.json --batch oct_week_1
5am outreach clips --batch oct_week_1 --dry-run # the price, then --yes to render (20 credits each); --page-text writes each page's text
5am outreach draft --batch oct_week_1 --dry-run # from CLI v1.7.0: preview sender, subject, body and link before staging
5am outreach draft --batch oct_week_1 # stages the drafts and posts them to your character's chat for review; --no-review-notice skips that
5am outreach review --batch oct_week_1 # or review on this computer: watch, edit, approve or skip
5am outreach send --batch oct_week_1 --dry-run # the exact messages, then --yes to send from your Gmail
5am outreach stats --batch oct_week_1 # views, opens, plays, shares, downloads, button clicks, sign-ups per prospect
5am outreach stats --batch oct_week_1 --record # also note the changed counts on each pipeline item
Batches and follow-ups. A batch takes up to 100 prospects (--limit), which is also the Pipeline's ceiling on drafts awaiting review, so a bigger day is several batches. From CLI v1.8.8, draft stages only what fits under that ceiling and leaves the rest rendered: its output lists them under deferred, with how many slots were free. Approve or reject drafts, then run draft again for the rest. Earlier releases stop at the ceiling with draft_limit_reached. A prospect who was already emailed is refused unless you pass --follow-up, and then only once --min-days-since-sent days (3 by default) have passed since the last send (for an email you recorded afterwards, since the time you gave it). One message per prospect per batch, always with the opt-out sentence ("Reply no and I will not write again."). Your own Gmail's daily volume is the real ceiling.
The message. draft fills the configured or saved template, the same one for every prospect in the batch (a follow-up batch uses the follow-up template, if you saved one). Without one, the default is chosen per prospect, each with one clip link:
- A new episode (a row with an episode title in
line): congratulations on the episode, naming its title, the clip link, a line saying who you are, and one ask: reply "yes" for a video of every new episode (subject "For your new episode of {{show}}"; from CLI v1.8.99, before which the subject was "A teaser for your podcast: {{show}}" and the message also asked them to claim and publish the page and pointed to Episode Clips; from CLI v1.8.9, before which these rows get the intro, which does not mention the episode). From CLI v1.8.95 the clip link is the only link in it; before, it also linked to the Episode Clips page. A title that ends its own sentence ("Is AI the new CFO?") gets no extra period after it. - An intro (a row without a
line): a short intro with the same one ask (subject "A short video for your show, {{name}}" from CLI v1.8.99, "A short teaser for your show, {{name}}" before; from CLI v1.8.8). - A follow-up (a row with a
linein a batch prepared with--follow-up): another video (subject "Another video, for {{line}}" from CLI v1.8.99, "Another teaser, for {{line}}" before; from CLI v1.8.8). A follow-up row without alinegets the intro.
draft --dry-run shows which one each prospect gets, with its full text, a starting point for your own --body-file. Releases earlier than CLI v1.8.8 use "A short clip I made for {{name}}" for every batch. If an episode title would take a subject past 150 characters, the subject shortens the title at a word and the body keeps it whole (from CLI v1.8.8); a show name that long is shortened the same way (from CLI v1.8.9). --personalize asks the character to write each body and checks the result for the clip link, absence of other web addresses, and the saved sender's signature. Every draft is checked before it is staged: no placeholder left, the clip link exactly once, no other web address. From CLI v1.8.6 one more address is allowed: the Episode Clips page (https://5am.app/episode-clips), for your own copy that invites a podcaster to get a clip of every episode. The built-in messages leave it out (from CLI v1.8.95), so a click goes through the clip page and counts for it.
Sending. send sends only drafts you approved, rereads each one from the server first (so your edits are what goes out) and refuses one that no longer carries the prospect's clip link. It reserves each draft before Gmail sees it, so two runs never send one twice. When a run cannot confirm a send (the connection broke after Gmail had the message), the draft stays in sending: look in your Gmail Sent folder, then run 5am pipeline outreach mark-sent <draftId> if it is there or release <draftId> if it is not. A message Gmail refuses for good closes its draft with Gmail's reply.
The contact sheets, the renders and the email GIFs need FFmpeg, found through --ffmpeg, $FFMPEG or PATH. The Gmail credential is kept in your keychain and cleared by 5am logout.
Selecting Prospects
prepare, clips, draft and send accept --only (from CLI v1.7.0) with comma-separated prospect slugs or email addresses. Unknown selectors are refused. Keep the same selection when pricing and rendering:
5am outreach clips --batch oct_week_1 --only host@example.com,guest@example.com --dry-run
5am outreach clips --batch oct_week_1 --only host@example.com,guest@example.com --yes
5am outreach draft --batch oct_week_1 --only host@example.com,guest@example.com --dry-run
Get slugs from the command's prospects output. Prepare matches existing rows by stable work ID or email, so reordering a CSV keeps their identity. The CSV validation and batch limits still apply.
Real Clips From the Episode
From CLI v1.8.99, prepare --real-clips gives each podcast prospect a clip of their episode itself instead of the template's title card: a short moment where the guest or host speaks, in their own words, with captions. It reads as made from their show, because it is.
5am outreach prepare --csv prospects.csv --template template.motion.json --batch nov_week_3 --real-clips
5am outreach clips --batch nov_week_3 --dry-run
- Which prospects. A row needs a
line(the episode title) and afeed_url(the show's RSS feed).preparereads the feed and looks for the episode whose title is theline(ignoring case, extra spaces and surrounding quotes or punctuation; of two with the same title, the newer). The episode's audio must be at an HTTPS address. Every other row gets the template's film, as without the flag, and itsclip_fallbacksays why:no_feed,no_line,episode_not_in_feed,feed_unreadableorno_https_audio. Each prospect'sclip_kindisrealorcard, andreal_clipsin the output counts them. - How it is made.
prepareruns5am motion podcastfor each one. It downloads the episode and keeps a window of it,--real-clip-windowminutes (15 by default, 5 to 60), starting five minutes in on a longer episode to skip most intros and ads, and the moment is chosen from that, so a whole episode is never transcribed.--real-clips-host-transcript(experimental) starts from the show's own timed transcript instead when its feed publishes one (Podcasting 2.0 JSON, WebVTT or SRT); when its quotes cannot be found in the audio, the whole episode is transcribed after all, which costs more than a window.--real-clip-secondssets the clip's length (30 by default, 6 to 90). The CSV'sbrand_fileapplies, as it does to a card. - What it costs. Unlike the rest of
prepare, a real clip spends your Gemini access while it is made (AI credits, or your own Gemini key): the transcription, the script, the narration and the film.prepareasks first, with an estimate: roughly 490 credits a clip from a 15-minute window (450 from a host transcript that lines up). These are estimates, and the final cost depends on the episode; a host transcript that does not line up with the audio means transcribing the whole episode.--yesskips the question. Rendering a real clip withclipscosts 100 AI credits, the podcast clip price, instead of 20, andclips --dry-runprices each prospect at its own price. - Running it again. A real clip whose inputs have not changed (the episode, its transcript, the length, the window and the branding) is kept, so you never pay for it twice; change one and that clip is made again. Without
--real-clips,preparekeeps the real clips it already made while each row names the same episode, and--regenerateputs the template's film back. Look at each contact sheet as usual beforeclips.
Resuming and Troubleshooting Runs
After an interruption, use the same batch and selection:
5am outreach clips --batch oct_week_1 --only host@example.com --dry-run
5am outreach clips --batch oct_week_1 --only host@example.com --yes
5am outreach draft --batch oct_week_1 --only host@example.com --dry-run
5am outreach draft --batch oct_week_1 --only host@example.com
Clips resumes its saved export or upload (from CLI v1.7.0). A paid checkpoint does not buy another export. Missing paid files or an ambiguous receipt stop with a recovery message; restore or inspect the saved files before retrying. Draft stages rendered rows and reuses the existing draft when a previous staging response was lost. Prepare, clips and draft allow one active operation per batch.
Check the render engine and keep live progress separate from JSON (from CLI v1.7.0):
5am motion doctor
5am outreach clips --batch oct_week_1 --yes --progress-file clips.log > clips.json
The doctor passes when the engine your renders use works: Skia, unless you set FIVEAM_MOTION_ENGINE=chrome. With Skia it only reports whether Chrome launches. Use tail -f clips.log in another terminal while rendering. Progress and keychain warnings go to stderr; stdout is JSON. Merging streams with 2>&1 makes the result unsuitable for a JSON parser. With the Chrome engine, prepare, clips and motion doctor accept --browser; otherwise they use CHROME_PATH or browser discovery, and a scheduled run needs that environment set in its scheduler.
Pipeline
Read the pipeline an AI character (the Sales Director by default) keeps for you, and work its outreach review queue from the terminal. A character stages email drafts. You approve or reject each one, or a reviewing character does, as long as it did not write the draft. The email leaves from your own mailbox: 5am outreach send for clip outreach, or by hand followed by mark-sent. Nothing is sent by the platform. The same queue is on the character's Outreach tab on the web, in the character's chat as a review card (web, iOS and Android), and on Android's Outreach review screen: a draft approved in one place reads approved everywhere.
5am pipeline items list --stage researched # {items, stages}
5am pipeline items list --search acme # by name
5am pipeline items list --csv prospects.csv # one row per item with its primary contact (--overwrite replaces the file)
5am pipeline items get <itemId> # contacts, activities, drafts
5am pipeline outreach list # staged (the default), or --status approved | sending | rejected | sent
5am pipeline outreach list --batch oct_week_1 # from CLI v1.8.8: that batch's drafts in any status (or --ids a,b)
5am pipeline outreach list --status sent --all # from CLI v1.8.8: every page (--limit, --cursor for one); --csv drafts.csv writes a file
5am pipeline outreach edit <draftId> --subject "..." --body-file message.txt # staged; from CLI v1.8.8 also approved (the owner)
5am pipeline outreach approve <draftId>
5am pipeline outreach unapprove <draftId> # from CLI v1.7.0; owner: approved back to staged for editing
5am pipeline outreach reject <draftId> --note "Lead with the episode" # required; the character reads it
5am pipeline outreach mark-sent <draftId> # after you sent it yourself
5am pipeline outreach mark-sent <draftId> --sent-at 2026-10-10T14:05:00Z # an email that went out earlier, with the time it left
5am pipeline outreach release <draftId> # a sending draft that is not in your Gmail Sent folder goes back with the approved ones
5am pipeline suppress add host@example.com --reason bounced # from CLI v1.8.8: see People Not to Email
An edit must keep a draft's clip page link: one that removes it is refused (clip_link_required). A draft in sending is one 5am outreach send reserved for its Gmail attempt; settle an unconfirmed one with mark-sent or release as above.
Bulk Draft Actions
Approve, unapprove, reject and mark-sent accept multiple IDs, --batch, or --ids-file (one source per command; from CLI v1.7.0). A file contains whitespace-separated IDs; - reads stdin. Preview the selected IDs with --dry-run:
5am pipeline outreach approve --batch oct_week_1 --dry-run
5am pipeline outreach approve <draftId1> <draftId2>
5am pipeline outreach reject --ids-file drafts.txt --note "Revise the opening"
5am pipeline outreach mark-sent --ids-file - < sent-drafts.txt
Each draft keeps its permission and state checks. From CLI v1.8.8, the command reads the drafts' statuses first and moves only those in the state it moves from (approve: staged; unapprove: approved; reject: staged or approved; mark-sent: approved or sending). The others are listed under skipped, as are drafts the Pipeline refuses for the do-not-contact list or a closed item, and the command exits nonzero only when a move really failed. --dry-run shows what would move and what would be skipped. Earlier releases report every draft that cannot move as a failure, exit nonzero on a partial failure, and list IDs in the dry run without checking them. mark-sent records email already sent; it does not send email.
Recording an Email You Already Sent
Sometimes a prospect is emailed before the pipeline knows about them: you wrote to them by hand, or an agent sent it from your Gmail before their item existed. Record that email, and the pipeline treats them as emailed: prepare refuses them unless you pass --follow-up, and no other draft written before the record goes to the same address.
No clip is rendered for this, so it skips prepare and draft (and needs no runtime or FFmpeg). Use the character that keeps the pipeline (the Sales Director by default):
# 1. The item: find it, or create it with its contact
5am characters skills execute <characterId> pipeline_query --input '{"mode":"get_item","name":"Acme Podcast"}'
5am characters skills execute <characterId> pipeline_upsert --input '{"entity":"item","name":"Acme Podcast","website":"https://acme.example","contacts":[{"name":"Sam Lee","email":"sam@acme.example","is_primary":true}]}'
# 2. The email as you sent it
5am characters skills execute <characterId> stage_outreach --quiet-push \
--input '{"item_id":"<itemId>","recipient_name":"Sam Lee","recipient_email":"sam@acme.example","subject":"A teaser for your episode","body":"<the email as you sent it>"}'
# 3. Approve it and record when it left
5am pipeline outreach approve <draftId>
5am pipeline outreach mark-sent <draftId> --sent-at 2026-10-10T14:05:00Z
- The words and the address as sent. Paste the subject and body you sent, and use the address it went to: duplicate protection works per address.
--quiet-pushskips the notification a new draft sends you for review, since this one is already out.--sent-atis the time in your Gmail Sent folder, with its zone (2026-10-10T14:05:00Z, or+02:00). A date alone (2026-10-10) means noon that day on your computer's clock (or now, for today before noon), and any date from today back 365 days works, whatever the time of day you run it. It cannot be in the future or more than 365 days ago.duplicate_draftmeans a draft to that address is already waiting for review on the item. Edit it to the words you sent (5am pipeline outreach edit <draftId> --subject "..." --body-file sent.txt), then approve it and mark it sent with--sent-at.
The draft keeps the time you gave as its send time, so a follow-up counts its days from the real send, and the item's activity shows the email on the day it left, noted with the day you recorded it. Duplicate protection goes by when you recorded it: an approved draft to the same address written before then is never sent (send closes it as "Not sent, to avoid a duplicate"), since whoever wrote it could not have known.
A Page for One Video
Any video in your library can have a page that plays without a 5AM account (https://5am.app/c/<token>): the link to send a prospect, a client or a friend. The page offers Download and share buttons (X, LinkedIn, WhatsApp, Facebook, Instagram, TikTok, Copy link), a link back to the episode or show the clip is about, and it counts views, email opens, plays, shares, downloads, button clicks and sign-ups. A play is a visitor starting the clip or turning its sound on, never the muted autoplay (Following Up People Who Watched). Signed in, you edit it on the page itself. The person the clip is for can claim the page from its button and publish it under their name; you both edit it from then on.
5am media public-link enable <mediaId> --title "Clip for Sam" # prints publicUrl, the link to send
5am media public-link get <mediaId> # the link, its counts, its text, who claimed it
5am media public-link set <mediaId> --source-url https://pod.example/ep/41 --source-title "Episode 41" # what the clip is about
5am media public-link set <mediaId> --headline "..." --description "..." --body-file page.md # the page's words
5am media public-link draft <mediaId> --notes-file notes.txt --apply # Gemini writes the page about that episode (spends your Gemini access)
5am media public-link publish <mediaId> --slug episode-41 # a readable address, open to search engines
5am media public-link unpublish <mediaId> # out of search again; the slug is kept
5am media public-link disable <mediaId> # the old link stops working at once
set also takes --template and the page's extra media (--item, --clear-items). Publishing needs a headline of 10 characters and a description of 40. A published page lives at https://5am.app/clips/<slug> and is open to search engines; the body is optional, though a few paragraphs give readers and search more to go on. A published page is listed for search engines whatever its body's length, on every CLI version, since 5AM decides it when serving the page. From CLI v1.8.95 the CLI says so too: publish no longer warns that a short body keeps the page out of search, and set --body and draft --apply no longer mention 300 characters. Outreach pages stay private until the person they were made for claims and publishes them; nothing in the outreach commands publishes a page.
Troubleshooting
| You see | What it means | Do this |
|---|---|---|
HTTP 401 invalid_token | the CLI session expired | 5am login |
the network proxy at … refused to connect to 5am.app | this computer's network blocked the request before it left (a company proxy, or an AI agent's sandbox); it never reached 5AM, so your sign-in is fine | allow 5am.app in the proxy or the agent's network settings, then run the command again; 5am login will not fix it |
534 5.7.9 from Gmail | an account password was used | make an app password, run mail setup again |
needs_fix: "the template is made for episode clips" | the row has no line (an intro) and the template declares outreach.requires: ["line"] | use a template made for intros for that row, or put the episode title in line |
needs_fix after prepare | text or layout still fails after fitting, or inputs changed alongside manual edits | follow the row's remedy; shorten text over 160 characters, edit the film, or deliberately use --regenerate --only <email> |
| wrong signature or subject | a saved message uses an earlier sender or template | inspect draft --dry-run; configure the sender/template and use --refresh-staged; unapprove first if needed |
skipped_suppressed or skipped_closed on a row | the address is on your do-not-contact list, or the prospect's pipeline item is closed; nothing was rendered, charged or staged | nothing, if that is right; if it was a mistake, 5am pipeline suppress remove <email> or reopen the item, then run the same step again |
recipient_suppressed or item_closed | the Pipeline refused a draft for the same reasons | the draft cannot be staged, approved or sent; see People Not to Email |
deferred after draft | 100 drafts already wait for review | approve or reject some, then run draft again |
review_queue_conflict on unapprove | another staged draft occupies the item/recipient slot, or the queue has 100 staged drafts | review or reject conflicting drafts, then retry |
Skia isn't installed: … | the runtime is there without its render engine (npm missing, offline, or no prebuilt Skia for the platform) | run 5am update --runtime-only again (it says why), then 5am motion doctor; nothing was charged |
Chrome cannot be found or launched, with FIVEAM_MOTION_ENGINE=chrome | the CLI process cannot use the configured browser | run 5am motion doctor --browser /path/to/chrome; pass that path to prepare/clips or set CHROME_PATH, or unset FIVEAM_MOTION_ENGINE to render with Skia |
| JSON parsing fails alongside warnings | stdout and stderr were merged | capture stdout alone; use --progress-file or redirect stderr separately |
ffmpeg not found on PATH | the sheets, renders and GIFs need FFmpeg | export FFMPEG=/path/to/ffmpeg (or --ffmpeg <path>) and run the command again; it redoes only the failed rows |
pending_finalize after clips | the charge was refused | 5am credits buy, then clips again |
category: credits on a draft | out of AI credits for the page writer or --personalize | 5am credits buy, or save a Gemini key |
clip_link_required on an edit | the edit removed the clip page link | keep the link in the message; move it or reword around it |
a draft stuck in sending | a send could not be confirmed | check your Gmail Sent folder, then mark-sent or release |
--sent-at ... is in the future or invalid_sent_at | a clock time without its zone, a time ahead of now, or one more than 365 days ago | copy the time from your Gmail Sent folder with its zone, like 2026-10-10T14:05:00Z |