Create final video from new uploads into shared library
When a new media file lands in your incoming Drive folder, it is sent to your render service, and the finished MP4 is saved into your shared library folder for editors.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-final-video-from-new-uploads-into-shared-library/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Design · Content media production
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-final-video-from-new-uploads-into-shared-library
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-final-video-from-new-uploads-into-shared-library/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-final-video-from-new-uploads-into-shared-library - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy create-final-video-from-new-uploads-into-shared-library - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-final-video-from-new-uploads-into-shared-library
zaps/create-final-video-from-new-uploads-into-shared-library/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 3 to fill in
- connections/google-drive.tsThe
google-driveaccount it uses - triggers/file-in-folder.tsWhat starts it:
google-drivefile_in_folder_v21 to fill in - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a new file is created in, moved to or uploaded to the incoming Google Drive folder (
google-drive,file_in_folder_v2). - Files whose MIME type is not video, audio or image are skipped.
- Google Drive looks in the library folder for
<title>.mp4. If it is already there, the run stops without rendering again. - Webhooks by Zapier POSTs a JSON render request to the render service: source file ID and link, filename, title (filename without extension), script (the file's Drive description), avatar, voice, aspect ratio, uploader and upload time. The render ID is read from the response.
- The workflow waits
INITIAL_DELAY_SECONDS, then Webhooks by Zapier GETs the status URL up toMAX_POLL_ATTEMPTStimes,POLL_INTERVAL_SECONDSapart. It stops on a done status with a download URL, or on a failed status. - Google Drive uploads the MP4 from the download URL into the library folder, named after the source title with the
.mp4extension forced.
A library file with the same name is never overwritten: the run stops instead. The run returns the render ID and the new library file's ID and link, or failed: true with render-failed or render-timed-out.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | Where | What goes there |
|---|---|---|
REPLACE_INCOMING_FOLDER_ID |
triggers/file-in-folder.ts, folder |
The Google Drive folder where uploads land |
REPLACE_LIBRARY_FOLDER_ID |
config.ts |
The shared library folder that receives the finished MP4s |
REPLACE_RENDER_REQUEST_URL |
config.ts |
The render service's endpoint for new render jobs (a JSON POST) |
REPLACE_RENDER_STATUS_URL |
config.ts |
The render service's status endpoint (GET), with {id} where the render ID goes |
Also review the defaults with them:
DEFAULT_AVATAR,DEFAULT_VOICEandDEFAULT_ASPECT_RATIO(16:9): sent with every render.RENDER_ID_FIELD,STATUS_FIELDandDOWNLOAD_URL_FIELD: the response fields that hold the render ID, the status and the MP4 URL. Dot paths reach nested fields (data.id).DONE_STATUSESandFAILED_STATUSESinworkflow.ts: the lowercase status values that mean done and failed.INITIAL_DELAY_SECONDS,POLL_INTERVAL_SECONDSandMAX_POLL_ATTEMPTS: the polling window, about five minutes by default. Raise them if renders take longer.MEDIA_MIME_PREFIXESinworkflow.ts: which uploads count as media.
Also confirm two things before building:
- Does the script come from the file's Drive description, or from somewhere else?
- Does the render service need authentication? The request sends none. If it does, read Notes before installing.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-final-video-from-new-uploads-into-shared-library, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-final-video-from-new-uploads-into-shared-library, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
google-driveto the user's Google Drive connection for the account that can read the incoming folder and write to the library folder. The trigger uses the same one. Webhooks by Zapier needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/file-in-folder.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections (and sample the trigger, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Use two test folders, [install-test] Incoming uploads and [install-test] Video library, and point the trigger and REPLACE_LIBRARY_FOLDER_ID at them. Without a real renderer, point the render URLs at a test service that returns { "id": "..." } on POST and { "status": "done", "download_url": "<public MP4 URL>" } on GET.
Run this sample as a draft test run (run_workflow_draft in Zapier MCP):
{
"id": "test-file-id",
"title": "[install-test] interview-take-1.mov",
"mimeType": "video/quicktime",
"description": "Intro script: welcome to the product tour.",
"alternateLink": "https://drive.google.com/file/d/test-file-id/view",
"webContentLink": "https://drive.google.com/uc?id=test-file-id&export=download",
"createdDate": "2026-10-29T10:00:00.000Z",
"lastModifyingUserName": "Test Uploader"
}
Check that the render service received the payload, that the run polled until done, and that [install-test] interview-take-1.mp4 is in the library folder and plays. Run the same input again: it should return already-in-library without a second render. A sample with "mimeType": "application/pdf" should return not-a-media-file. If run-status tools aren't available, check the result in Google Drive directly. Then publish, confirm the trigger is active, and ask the user to drop a file in the incoming folder. The user deletes the test data, not the agent.
Notes
- The renderer can only fetch the source file if it is shared with it or link-shared. The download URL it returns must be publicly fetchable, or signed, for Google Drive's upload to copy it.
- The render request is unauthenticated, and the code holds no API key. For a renderer with a Zapier app, use that app's actions; for an API that needs a key, use a connection.
- Renders that outlast the polling window end with
render-timed-out. The MP4 is not saved and the run does not retry. - To render a file again, rename or remove the old
<title>.mp4from the library. - To tell production when an MP4 is ready, add a Gmail, Outlook or Slack step after the save with the library link.
- To skip polling, have the renderer call back: replace the polling loop with a callback and send its URL in the render request.
- Never commit a real folder ID or render endpoint.