Save tagged social images into central media folder
When someone tags your Instagram account, their photo or video is copied into your shared media folder with the uploader's name and the post time in the filename, so the team can reuse it.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/save-tagged-social-images-into-central-media-folder/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Design · Creative operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/save-tagged-social-images-into-central-media-folder
Set it up with the CLI
- Add it. Copies the folder into
zaps/save-tagged-social-images-into-central-media-folder/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/save-tagged-social-images-into-central-media-folder - 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 save-tagged-social-images-into-central-media-folder - Check it. Its recent runs, with status and errors.
npx zap-pack logs save-tagged-social-images-into-central-media-folder
zaps/save-tagged-social-images-into-central-media-folder/
- 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 1 to fill in
- connections/google-drive.tsThe
google-driveaccount it uses - connections/instagram-for-business.tsThe
instagram-for-businessaccount it uses - triggers/new-tag.tsWhat starts it:
instagram-for-businessnew_tag - 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: someone tags your Instagram account in a photo or video (
instagram-for-business,new_tag). - Filter: if the post has no
media_url, the run stops there and writes nothing. - Google Drive copies
media_urlinto the media folder (google-drive,file). The filename is<uploader>-<timestamp>: characters in the uploader's name other than letters, digits,_and-become_, and the timestamp keeps only digits,Tand-.
The Zap only reads the tagged post and adds new files to the media folder. It never edits or deletes anything.
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 | What goes there |
|---|---|
MEDIA_FOLDER_ID |
The shared media folder in Google Drive; the user names it and its ID is looked up |
Also ask which Instagram for Business account the trigger should watch. It is chosen with instagramPageId when the trigger is configured.
Also review the defaults with them: SKIP_ITEMS_WITHOUT_MEDIA (true) skips posts with no media URL. false fails the run instead.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/save-tagged-social-images-into-central-media-folder, replace each REPLACE_… value as this file says, then run npx zap-pack deploy save-tagged-social-images-into-central-media-folder, 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 a Google account that can write to the media folder (a work account is best), andinstagram-for-businessto the Instagram for Business connection the trigger watches. Both are the user's own connections. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/new-tag.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 before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Once the trigger has a connection, run the draft with a sample tagged post like this, using a test folder and a test account:
{
"username": "test_creator",
"media_url": "https://example.com/sample.jpg",
"timestamp": "2026-10-29T10:15:00+0000",
"permalink": "https://www.instagram.com/p/EXAMPLE/",
"media_type": "IMAGE"
}
Check that one file named test_creator-2026-10-29T1015000000 appears in the media folder, and that a sample with no media_url is skipped without a Drive write. The field names come from the trigger's output schema (username, media_url, timestamp); confirm them against a real trigger sample before relying on them. If run-status tools aren't available, check the result in Google Drive directly. The user deletes the test data, not the agent.
Notes
- The workflow saves the trigger's
media_urldirectly. Instagram media URLs can expire, so upload promptly; the trigger should fire soon after the tag. - The Drive step uses the folder ID as the destination. Google Drive's upload action can also take a folder picked from a list, but the ID is what the workflow code needs.
- To extend it: add a write step after the upload that stores
captionandpermalinkin a tracker sheet, or a Drive copy step to a second folder constant for a backup archive. - Never commit a real folder ID. Anyone with access to the folder can read the files.