<aside> 💡 This page shows how to set up an AI agent that re-edits your videos when you reply to a preview in a chat app, then drops the new version in a folder ready for a final voice clean-up.

</aside>

The setup

How to set it up

  1. Install an open-source agent framework such as Hermes on a computer that stays on at home.
  2. Create a Telegram bot and connect it to the agent so it can send videos to you and read your replies.
  3. Install Claude Code on the same computer and let the agent start it when you reply to a preview.
  4. Have the agent pass your reply and the current video to Claude Code, so it makes the edits you asked for.
  5. Send the edited video (version 4) back to you on Telegram as the new preview.
  6. Connect Google Drive and save each new version into a folder called "edit for CapCut".
  7. Open the file in CapCut, do the final voice clean-up, and post.

<aside> ⚠️ Watch out: the edits happen on your own computer, so keep it switched on at home, and keep the final voice clean-up as your own step in CapCut, because audio can sound less crisp than it should.

</aside>

Prompt to build your own

Help me build a workflow where I edit videos by replying to a message on Telegram.
I have: a computer at home that stays on, Claude Code installed, an open-source AI agent framework, a Telegram account, Google Drive and CapCut.
Build this:
1. The agent sends me a preview of my video on Telegram, labelled with its version number (for example, version 3).
2. I reply to that message with the changes I want.
3. The agent starts Claude Code on my computer, gives it my reply and the current video, and has it make the edits.
4. The agent sends the new version (version 4) back to me on Telegram.
5. The agent also saves that version into a Google Drive folder called "<folder name>", so I can open it in CapCut and do a final voice clean-up myself.
Constraints: keep all tokens and keys in environment variables, never in the code. Only accept messages from my own Telegram account. Never overwrite an earlier version; save each one as a new numbered file.
Return: a step-by-step setup guide for <my operating system>, the code for the Telegram bot and the agent hook, and a short test I can run to check each step works.