<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>
<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>
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.