A chat message that says "make me a video" can end two ways. One is a clip from a generation model, which looks polished and invents whatever it was not shown. The other is a project with scenes, captions and timing that can be reopened and revised. For a product video, the first can quietly show features that do not exist.
OpenClaw, a self-hosted gateway that connects an AI agent to chat apps, can start either one. It has a built-in video tool, takes instructions from a phone, and runs commands on the machine it lives on, so the request feels like a single job. I treat it as two jobs, with different tools, costs and review steps.
In this setup, OpenClaw is the agent and gateway, Telegram is where instructions go in and previews come back, CoAnimator supplies the editable project and the renderer, and a person approves each step.
TL;DR
- Generated clips suit mood shots. Anything that claims to show how a product works should come from real screens.
- Telegram carries the conversation. The agent and the renderer run on a host that has to stay on.
- Prove the render by hand first, then add the gateway, the bot and the skill, one layer at a time.
- Gate the agent with a scene plan before it builds or spends anything, and tighten its command permissions before it touches anything that matters.
Two routes, picked per shot
The video tool and the editor answer different questions, so the first decision is which one a shot needs.
Route A: Generated footage
The video_generate tool creates video from a text prompt, reference images or existing videos. The docs list eighteen provider backends, among them Google, Runway, xAI and fal, and each supports a different mix of text, image and video input. video_generate action=list shows what an install can reach. Keep to one reference type per request, because mixing image and video references is not a stable combination.
The tool appears only when at least one provider is available, meaning an API key is set or agents.defaults.mediaModels.video is configured. Older installs name that setting agents.defaults.videoGenerationModel. A fresh install has neither.
Generation is asynchronous. OpenClaw submits the job, returns a task id and wakes the session when the clip is ready, which takes anywhere from 30 seconds to several minutes. action: "status" or openclaw tasks list checks a job that is still running.
Route B: An editable project
CoAnimator is a desktop studio where an AI agent builds a video as editable project files, scene by scene, while the person directing it watches and redirects. Here the agent edits scenes and assets in a project folder, then calls coa render, which leaves an MP4 and a project that can be reopened later.
Code-first routes exist as well. Remotion builds videos from React components, which fits a video that lives inside a React codebase. I follow the studio route in this post because plain project files and a live preview keep scene edits small, and that matters when instructions arrive from a phone.
Two limits apply. CoAnimator is not a built-in OpenClaw channel, so this is an external gateway recipe and the skill gets placed by hand. Output quality also follows the connected agent and the direction it gets.
| You need | Route | What to check |
|---|---|---|
| A short atmospheric shot | A | Motion, continuity, stray details |
| A walkthrough built from real screenshots | B | Label accuracy, pacing, the final state |
| A revision of an existing video | B, reopen the project | Whether untouched scenes stayed untouched |
| Real screens plus imagined footage | A for the clips, B to assemble | Whether the styles match |
My rule is to generate footage for mood and record real screens for anything that claims to show how the product works. A generation model draws a plausible interface, not the real one.
With the route chosen, the next question is where each piece runs.
What runs on the phone and what runs on the host
Sending a message from a phone does not move any work onto the phone.
Telegram carries messages and returns files. The agent and the renderer run on a computer that can reach the project, so that computer has to stay on while a job runs. The host needs:
- CoAnimator installed, with the
coacommand enabled - FFmpeg and FFprobe
- The project folder and its assets
- The CoAnimator skill in the agent's workspace
Rendering is local and exports MP4. A headless Linux box also needs a virtual display such as xvfb-run.
That list doubles as the order for setup.
Setup, in an order that isolates failures
Each step below proves one layer before the next is added, so a failure points at a single cause.
1. Export a test project by hand
I'd start here. Install CoAnimator on the host, enable the coa command under Settings → General → Command line & agent skill, and let the app prepare FFmpeg and FFprobe under Settings → Media tools. If they live somewhere custom, the CLI reads their locations from the FFMPEG_PATH and FFPROBE_PATH environment variables. The Cursor guide walks through the same coa step. Then export a project with one screenshot, one heading and a closing frame. If that fails, no chat configuration will fix it.
2. Install OpenClaw and start the gateway
OpenClaw needs Node 24.16 or later on the 24 line, or Node 26.1 or later. On npm 12, and on npm 11.16 or later, install it with the scripts flag, because npm 12 blocks unapproved lifecycle scripts by default:
npm install -g openclaw@latest --allow-scripts=openclaw
openclaw onboard --install-daemon
On npm 11.15 or earlier, drop the --allow-scripts flag. The install guide covers other methods. Onboarding asks for credentials and a model and installs the always-on gateway service every chat channel connects to. Confirm it with:
openclaw --version
openclaw doctor
openclaw gateway status
CoAnimator's OpenClaw guide shows the model choices. Give the agent a dedicated project folder, then test the model before trusting it. I'd hand it a three-scene plan and a one-line revision request, and check that the other scenes stay untouched.
3. Connect Telegram
Create the bot in @botfather with /newbot, then give OpenClaw the token as the Telegram setup guide describes:
openclaw channels add --channel telegram --token <bot-token>
openclaw channels status --probe
Telegram has no channels login step. The token lives in config or in TELEGRAM_BOT_TOKEN, never in a brief or a repo.
OpenClaw's config hot reload applies most changes without a restart, and a channel change generally reloads only that channel. Whether a given setting needs a restart depends on the channel plugin, so I'd trust the probe over assumptions. If it does not show Telegram enabled and running, restart the gateway and probe again:
openclaw gateway restart
A getMe returned 401 error means the token is wrong or was revoked in BotFather. The default DM policy is pairing, so message the bot and approve the request on the host:
openclaw pairing list telegram
openclaw pairing approve telegram <CODE>
Codes expire after an hour, and the first approved sender becomes the command owner, so approve your own request first. A bot that answers with a pairing code instead of a reply is waiting for this approval.
4. Add the skill
Download the skill from CoAnimator's skills page and place it here:
<workspace>/skills/coa-cli/SKILL.md
The app's menu installer covers Claude Code and Codex only, so for OpenClaw this is a manual copy. Workspace skills win over shared and bundled ones. OpenClaw snapshots the skill list when a session starts, so open a new session after adding the file, or enable the skills watcher (skills.load.watch) to refresh the list mid-session. Then ask the agent which skill it loaded, which project folder it sees and which render command it plans to run.
5. Verify the tools and render
Run these in the environment that actually executes commands, which may not be a personal terminal:
coa --help
ffmpeg -version
ffprobe -version
Then render the test project:
coa render ./my-demo --out ./preview.mp4
On Windows PowerShell, use coa.cmd and backslash paths. Every path has to exist on the host, and a sandboxed agent sees its own filesystem, not the laptop's. A short recording of the Telegram conversation shows the whole flow if seeing it first helps.
With a working render, the remaining work is the brief.
Brief small, then gate the agent
I'd keep a first brief to one useful action, not a feature tour.
Make a 30-second walkthrough for first-time visitors using the screenshots in the assets folder. Show one workflow. Open the project, make a change, show the result. Match our colors and typeface and keep every screen legible on a phone. Reply with a scene plan and timing first. Do not build anything or buy generated footage until I approve.
The last two sentences carry the most weight. A plan that gets rejected costs one message, while a built video costs tokens, render time and sometimes provider credits.
Name every file and its job, such as opening screen, action recording, result screen, logo and audio, and ask the agent to confirm it can read each one on the host. I'd then approve in a fixed order. First comes the scene plan for story, then one still frame for type, crop and color before any animation, then a rough cut built only from approved assets. Music and generated clips come after the cut works without them. For narration, ask for a short sample first so product names can be checked.
Once the cut exists, the review changes from planning to watching.
Review the MP4 like a viewer
A render that finishes has not necessarily produced the edit that was asked for. Ask for the output path, open the MP4 outside the editor, and watch it start to finish. Check the screen labels, text size, pauses, audio level and closing call to action. I'd then watch once with the sound off, because a product story that only works with narration is a weak one.
Feedback works best when it names the scene, the problem and the change:
In scene two, the settings label is too small. Crop closer to that panel and hold the result one second longer. Keep the wording, colors and every other scene as they are. Send a new preview.
Ask for one kind of change per pass and compare the affected scene with the previous preview. Stop when the action is clear, the product is shown accurately and nothing distracts.
When a pass goes wrong, the cause is usually one of a few familiar ones.
When it fails
Each failure below has a short first check.
-
The bot stays silent: Run
openclaw channels status --probe. If Telegram is not running, restart the gateway. If it is, look for a pairing request waiting on approval. - The bot replies but cannot edit the project: The active agent's workspace is probably not the folder that holds the project.
-
It renders locally but fails on the host: Check fonts, FFmpeg, FFprobe, the
FFMPEG_PATHandFFPROBE_PATHvariables, and the display setup. -
The MP4 never reaches the chat: Two separate caps can be responsible. Telegram limits bot uploads to 50 MB, and OpenClaw has its own 16 MB default for saving generated clips, which
agents.defaults.mediaMaxMbraises. Ask for a smaller review copy first. OpenClaw'sapiRootsetting can point at a self-hosted Bot API server, though I have not checked what size limit that allows. -
Nothing obvious is wrong: Run
openclaw status,openclaw gateway status,openclaw logs --followandopenclaw doctor, in that order.
Fixing these early keeps later reviews about the video, not the plumbing.
Permissions and costs
Two decisions come before the first real job. One covers what the agent may run, the other what it may spend.
Giving an agent command execution on a host is a security decision, not a convenience setting. On a gateway host, OpenClaw's exec approvals default to security full with asking off, so any shell command the agent decides to run, including coa render, runs without a prompt. The effective policy is the stricter of the OpenClaw config and the host's own approvals file, and sandboxed hosts follow different defaults, so openclaw approvals get is the way to see what actually applies.
I'd tighten it before the agent touches anything that matters. These commands edit the host's local state, and OpenClaw's approvals documentation says an offline edit holds exclusive ownership of that state, so a running gateway can make the change refuse. Stop the gateway first, apply the policy, add the allowlist entries, then start it again:
openclaw gateway stop
openclaw exec-policy set --host gateway --security allowlist --ask on-miss --ask-fallback deny
openclaw approvals allowlist add "<path-to-coa>"
openclaw approvals allowlist add "<path-to-ffmpeg>"
openclaw approvals allowlist add "<path-to-ffprobe>"
openclaw gateway start
openclaw approvals get
Allowlist mode runs only commands on the list and prompts for the rest, so expect some prompts at first while the agent finds what it needs. Each allowlist entry takes a quoted path or pattern, and which coa shows the path to use. The final approvals get prints the effective policy, so confirm it before trusting it. There is also a cautious preset (openclaw exec-policy preset cautious), but I'd check what it sets with openclaw exec-policy show before relying on it. Whatever the policy, I'd run the agent on a dedicated machine or user account that holds no unrelated credentials or files.
Exec approvals gate shell commands, not calls to a video provider. Paid generation stays under the control of the brief and the API keys, so keep the approval line in the brief and keep publishing as its own instruction, separate from any preview request.
Model usage, provider credits and any CoAnimator license are separate things to budget. Before the first real job, run video_generate action=list to see which providers the agent can reach. Keys already set for the chat model count, so a Google, xAI or OpenRouter key can be enough to make the tool available. If the agent is nudged while a clip renders, a duplicate call returns the running task's status instead of starting a second generation.
Conclusion: The Real Test Is the Next Release
A first video proves the loop runs. I'd treat the next product release as the real test, when screens change and the video has to follow. Send the new screenshots through Telegram, name the scenes that moved, and ask the agent to replace only those, then compare the result with the approved cut. The time that takes against rebuilding a clip is the number worth tracking.
From there the setup can stretch in useful directions. Generated clips can be added for mood once the real-screen cut holds up, and OpenClaw's other channels follow the same shape as Telegram, so the same project can be steered from wherever a team already chats. Anyone who has run video_generate through Telegram is welcome to share which provider they used and what a short clip cost.
To try it, download CoAnimator, export a one-screenshot test project, and send the bot its first brief.

Top comments (0)