What the agent does
This is for a company that hosts podcasts for independent shows: it stores the audio, publishes the feed, builds each episode's page and makes a transcript with timestamps. Most of its podcasters publish every week and promote the episode once, with the cover art and a link, while the line worth quoting, the number the guest gave and the argument in minute forty never leave the transcript. The company adds Promote this episode: after an episode goes live, drafts built from what was actually said appear in the podcaster's own Buffer, one channel at a time, waiting to be edited and scheduled.
The company connects a Buffer account of its own and saves the agent once as a template with POST /o/{org}/agents, naming buffer in connections, with instructions to quote only from the transcript and to save drafts and ideas only. When a podcaster turns the feature on, the backend calls POST /o/{org}/agents {"template": "<template id>", "name": "promo-<show id>"}, then POST /o/{org}/agents/{agent}/connections {"type": "app", "name": "buffer"}, and opens the authorize_url in a popup while the podcaster is signed in to the hosting dashboard. The podcaster approves on Buffer's own page; Rush signs in with its own Buffer app client and PKCE, so the hosting company registers no Buffer app, and the agent reaches Buffer's GraphQL API at api.buffer.com signed from outside its computer.
A run downloads the transcript from the host's own public address and reads it with the show notes from input. It picks distinct moments: a line that stands alone as a quote, a number or a fact a guest gave, a practical step a listener could take this week, a point the host and guest disagreed on, and the question the episode answers. Each quote is checked word for word against the transcript and kept with its speaker and timestamp, so nothing inside quotation marks is a paraphrase. Then it reads the podcaster's organization with account { organizations { id name } } and each channel with channels(input: {organizationId}), keeping id, service, displayName and isQueuePaused.
For each channel whose queue is not paused it writes up to three posts, each on a different moment, inside Buffer's documented limits for that network: 280 characters on X's free tier, 500 on Threads, 300 on Bluesky, 3,000 on LinkedIn and 2,196 on Instagram, where Buffer counts most emoji as two. Every post links to the episode page; Instagram posts carry the cover art as an image asset with its public URL. It saves each one with createPost and saveToDraft: true, which Buffer's docs say gives the post a draft status that is not published until someone schedules it. Longer pieces, a paragraph for the show's newsletter and an outline for a blog post, go in with createIdea, which Buffer keeps at the organization level with no channel and no time.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "<agent id>",
"input": "Promote our new episode in my Buffer. Episode 87, 'Pricing a Service Business When Costs Keep Rising', with guest Dana Okafor. Episode page: https://shows.example-host.com/the-small-shop/87. Transcript with timestamps: https://cdn.example-host.com/the-small-shop/87/transcript.txt. Cover art: https://cdn.example-host.com/the-small-shop/87/cover.jpg. Our voice, from past posts: 'New episode. Grab a coffee.' 'Dana said the quiet part out loud.' 1) Download the transcript and pick five moments: a line worth quoting, a number the guest gave, a practical step, a point we disagreed on, and the question the episode answers. Quote only words that appear in the transcript, with speaker and timestamp. 2) Query account { organizations { id name } }, then channels(input: {organizationId}) with id, service, displayName, isQueuePaused. 3) For each channel whose queue is not paused, write up to three posts, each on a different moment and linking to the episode page, within Buffer's limit for the network (X 280 on the free tier, Threads 500, Bluesky 300, LinkedIn 3000, Instagram 2196; most emoji count as two). On Instagram attach the cover art as assets [{image: {url}}]. Save each with createPost: channelId, text, schedulingType automatic, mode addToQueue, saveToDraft true. 4) Save a newsletter paragraph and a blog post outline with createIdea (organizationId, content {title, text}). Never schedule, update or delete a post. Return only JSON: {moments: [{timestamp, speaker, quote}], drafts: [{channel, service, post_id, moment}], ideas: [idea_id], skipped_channels: [displayName]}."
}- Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
- Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
- Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.
What comes back
Up to three drafts per channel appear in the podcaster's Buffer, each on a different moment of the episode. A newsletter paragraph and a blog outline wait in Buffer's ideas, and the run's answer lists the five moments with their speaker and timestamp, which the hosting dashboard shows beside the episode.
Before scheduling, the podcaster checks each quote against the timestamp the result gives, since a sentence lifted from a conversation can read harsher in a post than it sounded, and some guests like to see their quotes first. Names, titles and the guest's company are worth a second look, as are the links. Then each draft is edited, scheduled or deleted in Buffer, where a draft stays a draft until a person schedules it.
The moments list is useful beyond Buffer: the timestamps are the places an editor would cut a short clip, and the question the episode answers can suggest a sharper title for the episode page.
Run it on every new episode
When an episode is published and its transcript is ready, the hosting platform's backend sends POST /o/{org}/sessions with that show's agent id as agent, the episode page, transcript and cover art addresses in input, and a request_id that is a UUID v5 of the episode id, so a republished episode starts no second run. Shows that publish on the same morning each get their own run on its own computer, and runs past the key's max_concurrent wait as queued until one finishes.
A podcaster can also pick an old episode in the dashboard and press Promote again; the backend sends the same request with that episode's addresses, which is how a back catalogue gets a second life.
The use case this job follows, with its automation and trigger: Run an agent per customer task.
Why run it on Rush?
Each podcaster's Buffer sign-in is theirs and stays in Rush's connection under their show's agent. The hosting company keeps agent ids against shows, not Buffer tokens, and a run for one show cannot see another show's channels. A session's accounts names the Buffer account it acted as, which answers a podcaster who asks where a draft came from.
Reading a whole transcript closely enough to quote it exactly is the part people skip when they promote an episode by hand. On Rush it happens on the run's own computer, with a record of the transcript download and every Buffer call, and the run's cost, which the company adds up per show with GET /o/{org}/sessions?agent=<agent id> to decide what the feature costs on each plan.
Frequently asked questions
Will it publish anything on its own?
No. Every post is created with saveToDraft: true and ideas have no channel or time, so nothing goes out until the podcaster schedules it in Buffer. The prompt also forbids updating or deleting posts already in the queue.
Does it make audiograms or video clips?
No. It writes text posts and attaches the cover art the host already has. The timestamps in its answer show an editor where the clips are, and a clip uploaded later can be added to a draft in Buffer.
What happens with a channel whose queue is paused?
The agent skips it and names it in skipped_channels. A paused queue usually means the podcaster stopped posting there on purpose.
How does it match the show's voice?
From the sample lines the dashboard keeps for each show and sends in input. More samples, and samples from the network in question, make LinkedIn drafts read differently from Bluesky ones.