The job: “Automate Instagram/YouTube posting with Claude within the platforms' rules”
Automate Instagram posts with Claude (and YouTube) safely
Automate Instagram posts with Claude: write a month of posts, schedule them through the Buffer connector or the official APIs, and label AI content correctly.
- Level Intermediate
- Time 1-2 hours to set up, then minutes per week
- Works with
- Claude.ai
- Claude Desktop
- Claude Code
On this page9 sections
You can automate Instagram posts with Claude by letting Claude write and plan them, then sending them out through a tool the platform approves: the Buffer connector in Claude’s connector directory, Instagram’s official publishing API, or YouTube Studio’s scheduler. What gets accounts restricted is something else: bots that like, follow or comment, tools that ask for your password, bought engagement, and realistic AI content you didn’t label.
This guide sets that up end to end: a month’s content calendar from Claude, a safe way to schedule it, and a disclosure checklist so the automation stays within the platforms’ rules.
What you’ll have at the end
- A month’s content calendar as a spreadsheet, with captions, hashtags, alt text and an AI-disclosure column.
- Posts scheduled through Buffer, YouTube Studio, or a script that uses the official APIs.
- A checklist for AI labels and platform rules.
What you need
- Claude (any plan with Code execution and file creation for the spreadsheet; Anthropic lists this on Free and paid plans).
- An Instagram professional account (business or creator) for automatic publishing, and/or a YouTube channel.
- For route A: a Buffer account with your channels connected.
- For route C only: Claude Code, a Meta developer app and/or a Google Cloud project with the YouTube Data API enabled.
Can Claude post to Instagram directly?
Not by itself. Claude has no built-in Instagram or YouTube button, and Claude’s connector directory had no Instagram or YouTube connector of its own when we checked (November 2026). You pick one of three routes:
| Route | Best for | Posts go out through | Code? |
|---|---|---|---|
| A. Buffer connector | Most people: Claude drafts and schedules for you from a chat | Buffer, which connects to Instagram, YouTube, TikTok, Facebook, LinkedIn, Threads and more | No |
| B. Platform’s own scheduler | Full manual control | YouTube Studio’s Schedule, or a scheduler that uses Instagram’s official login | No |
| C. Official APIs via Claude Code | Bulk uploads or your own pipeline | Instagram content publishing API, YouTube Data API | Yes |
What’s safe and what gets you banned
| Activity | Status | Source |
|---|---|---|
| Scheduling your own videos in YouTube Studio | Built-in feature | YouTube Help |
| Publishing through an approved tool or official API | Supported | Meta and YouTube developer docs |
| Using Claude to write captions, titles, scripts, ideas | Your content; no YouTube AI label needed for production help like this | YouTube Help |
| Bots or rewards to inflate views, likes, comments or subscribers | Prohibited: “engagement manipulation” | YouTube spam policy |
| Using automation or AI to churn out high volumes of similar content | Prohibited: “automated or synthetic mass-production” | YouTube spam policy |
| Any program that buys, sells or exchanges “Likes”, “Followers” or “Comments” | Prohibited for apps | Meta Developer Policies |
| Publishing for someone without their consent | Prohibited for apps | Meta Developer Policies |
| Realistic AI-generated or altered content without disclosure | Labels or penalties possible, up to YouTube Partner Program suspension | YouTube Help, Meta |
YouTube’s spam policy says it “may suspend your monetization or terminate your channel or account” for violations, and that 3 strikes within 90 days may terminate a channel.
Step-by-step
1. Have Claude plan the month as a spreadsheet
Give Claude your niche, posting rhythm and platforms, and ask for an .xlsx calendar (prompt 1 below). With file creation on, Claude returns a real Excel file. Columns that work: date, platform, format (Reel, carousel, Story, Short), topic, caption or title, hashtags, alt text, AI used, needs AI disclosure, status.
We tested this step with Claude Code (claude -p) on a made-up Leeds home bakery: 3 Instagram posts and 1 YouTube Short a week for two weeks. It produced 8 rows, set every status to draft, used no engagement bait, and correctly marked the Shorts that use a clone of the owner’s own voice as not needing YouTube’s AI label. It also flagged one date it had made up (the last Christmas collection day) for us to replace. Read every row: you’re the one publishing it.
2. Decide your disclosure for each post
YouTube requires you to disclose realistic AI-generated or altered content: content that makes a real person appear to say or do something they didn’t, alters footage of a real event or place, generates a realistic scene that didn’t happen, or creates music that’s the main focus of the video. You don’t need to disclose non-realistic content or minor edits, such as beauty filters, lighting fixes, captions, upscaling, idea generation, AI help with a script, outline, title or thumbnail, or cloning your own voice for voiceovers.
To disclose, open YouTube Studio, start the upload, and in the Attributes section under AI use choose Yes. Disclosing alone doesn’t limit a video’s audience or its eligibility to earn money. YouTube may also add a label automatically, for example to content with C2PA metadata. Creators who consistently don’t disclose may get a label applied manually or face penalties, including content removal or suspension from the YouTube Partner Program.
Instagram (Meta) shows an “AI info” label, partly based on people disclosing AI content when they upload. Meta said it would “require people to use this disclosure and label tool when they post organic content with a photorealistic video or realistic-sounding audio that was digitally created or altered, and we may apply penalties if they fail to do so.” If your Reel uses realistic AI video or a realistic AI voice, turn the AI label on. On the API route, set is_ai_generated=true (step 3C).
3A. Schedule from Claude with the Buffer connector
Buffer is a social media scheduler, and its connector is in Claude’s directory (“Anthropic verified”, made by Buffer, added August 2026). Claude can then create posts, add them to your queue, set a time or publish right away, save ideas, and read post metrics across your channels.
- In claude.ai or Claude Desktop, go to Customize > Connectors, search for Buffer, select it and click Connect. Sign in to Buffer and approve access.
- In Claude Code instead:
claude mcp add --transport http buffer https://mcp.buffer.com/mcp, then run/mcp, select buffer and sign in. - Ask Claude to save posts as drafts. Buffer says that with drafts “nothing publishes until you approve it in Buffer”; otherwise scheduled posts publish automatically. Start with drafts.
Things to know:
- Instagram personal profiles only get reminder posts: at the scheduled time Buffer sends a notification to the Buffer mobile app and someone posts by hand. Business and creator accounts, TikTok and YouTube can publish automatically.
- Media must be at a public, permanent URL until the post goes out. Google Drive or Dropbox share links don’t work, and expiring signed links can make the post fail later.
- Request limits depend on your Buffer plan. On Free: 150 requests per 15 minutes, 600 per 24 hours, and 1,000 per channel per 30 days (up to 3,000). The connector and any API keys share one set of limits.
We didn’t connect a live Buffer account for this review, so these steps come from Buffer’s and Claude’s docs.
3B. Or schedule in the platform’s own tool
In YouTube Studio, choose Create > Upload, pick the file, paste Claude’s title and description, open Schedule, choose the date, time and time zone, and confirm. The video must be set to scheduled or private first. If your channel has a Community Guidelines strike, the video stays private during the penalty period and you’ll need to reschedule it.
For Instagram without code, use a scheduler that connects through Instagram’s official login screen. A tool that asks for your Instagram password is a warning sign.
3C. Or have Claude Code build a script on the official APIs
This is for people comfortable approving terminal commands. Claude Code writes and runs the code; you create the credentials and approve each step.
YouTube Data API (videos.insert):
- Needs OAuth with a YouTube scope such as
https://www.googleapis.com/auth/youtube.upload. - Set
status.privacyStatusandstatus.publishAtto schedule. If you don’t set privacy, the upload defaults to public. - Set
status.containsSyntheticMediatotruefor realistic AI content, andstatus.selfDeclaredMadeForKidsas appropriate. - Limits: files up to 256 GB; the docs list “100 calls per day”, each upload costing 1 unit in the Video Uploads quota bucket.
Instagram content publishing API:
- Two flavors: Instagram API with Instagram Login (
instagram_business_basic,instagram_business_content_publish) or with Facebook Login for Business (instagram_basic,instagram_content_publish,pages_read_engagement). Read Meta’s access-level requirements before building. - Two steps: create a media container (
POST /{IG_ID}/mediawith animage_urlorvideo_url), then publish it (POST /{IG_ID}/media_publishwith thecreation_id). - Add
is_ai_generated=truewhen you create the container to self-disclose AI use. For a carousel, set it on the carousel container only; setting it on the items returns an error. - Media must be on a publicly reachable URL when you publish, because Meta fetches it.
- JPEG is the only image format supported. Reels, videos, Stories and carousels (up to 20 images or videos) are supported; shopping tags and filters are not.
- Limit: “100 API-published posts within a 24-hour moving period”, a carousel counting as one. The same page’s carousel section says 50, so plan well under both.
Keep tokens out of your code: ask Claude to read them from environment variables and add .env to .gitignore.
We haven’t run routes B or C against a live Instagram or YouTube account for this review. These steps come from YouTube’s and Meta’s documentation, so test with one private video or a single draft post first.
Make it useful: prompts to try
I run a small home-baking Instagram (@example) and a YouTube channel with one long video and two Shorts a week. Plan 4 weeks of content as an Excel file: date, platform, format, topic, caption or title, YouTube description, up to 5 relevant hashtags, alt text for images, "AI used" and "needs AI disclosure" columns, and status = draft. No engagement bait like "comment YES". Keep my voice: warm, practical, a little dry.
Using Buffer, list my channels. Then create next week's Instagram posts from the attached calendar as drafts only, one per row, at the times in the "date" column. Don't schedule or publish anything. When you're done, list each draft with its channel and time so I can review it in Buffer.
In this folder, write a Python script that reads schedule.csv and uploads each video with the YouTube Data API videos.insert method, setting privacyStatus to private, publishAt from the CSV, and containsSyntheticMedia from the "needs_ai_disclosure" column. Use OAuth with the youtube.upload scope, read secrets from environment variables, add .env to .gitignore, stop after the first upload so I can check it in YouTube Studio, and explain each step before you run anything.
Troubleshooting
- Buffer post failed at its scheduled time. Open the image or video URL in a private browser window. If it asks for a login or has expired, host it somewhere permanent and public.
- Buffer only sends reminders for Instagram. Buffer treats the channel as a personal profile, which only supports reminder posts. Automatic publishing needs an Instagram business or creator account.
- Instagram API publish fails on an image. Convert it to JPEG and make sure the URL is publicly reachable.
- Account can’t publish via the API. Meta notes that accounts connected to a Page that requires Page Publishing Authorization can’t publish until it’s completed.
- YouTube returns
invalidPublishAt. The publish time is invalid; check the format and that it’s in the future. - YouTube returns
uploadLimitExceeded. You’ve hit the number of videos you may upload for now. Spread uploads across days. - Scheduled video didn’t go live. Check for a Community Guidelines strike in YouTube Studio.
FAQ
Is it against Instagram’s rules to automate posts? Publishing your own posts through an approved tool or the official API is a supported use. What breaks the rules is fake engagement, buying likes or followers, posting for someone without consent, and unlabeled realistic AI content.
Can Claude make the images too? Claude can design graphics with the Canva connector and write all the text. Label realistic AI images or video when you post them.
I already automate posting in Make or Zapier. Can Claude use that? Yes: Make MCP lets Claude run your existing Make scenarios, and Zapier MCP gives Claude your Zapier actions. Whatever they post still goes through those tools’ own Instagram and YouTube connections, so the same rules on consent, limits and AI labels apply.
Next steps
- Make Claude write like you so captions sound like you every time.
- Make Claude create Word, PowerPoint, Excel and PDF files for reports on your content plan.
- Let Claude read and update your Notion if you keep your content calendar there.
Sources
- about.fb.com/news/2024/02/labeling-ai-generated-images-on-facebook-instagram-and-threads/ (opens in a new tab)
- about.fb.com/news/2024/04/metas-approach-to-labeling-ai-generated-content-and-manipulated-media/ (opens in a new tab)
- developers.facebook.com/docs/instagram-platform/content-publishing/ (opens in a new tab)
- developers.facebook.com/devpolicy/ (opens in a new tab)
- developers.google.com/youtube/v3/docs/videos/insert (opens in a new tab)
- support.google.com/youtube/answer/1270709 (opens in a new tab)
- support.google.com/youtube/answer/14328491 (opens in a new tab)
- support.google.com/youtube/answer/2801973 (opens in a new tab)
- claude.com/connectors/buffer (opens in a new tab)
- developers.buffer.com/guides/integrations/claude.md (opens in a new tab)
- developers.buffer.com/guides/posts-and-scheduling.md (opens in a new tab)
- developers.buffer.com/guides/hosting-media.md (opens in a new tab)
- developers.buffer.com/guides/api-limits.md (opens in a new tab)
- support.claude.com/en/articles/12111783-create-and-edit-files-with-claude (opens in a new tab)
- code.claude.com/docs/en/quickstart (opens in a new tab)
Related guides
Best MCP servers for non-developers: what to connect first
The best MCP servers and connectors for people who don't code: email, calendar, files, notes, meetings, design and automation, with plans, setup and safety.
Beginner10 minutes to pick, about 5 minutes per connector to set up
Claude Design vs Figma MCP: which to use for UI work
Claude Design drafts screens for you; Figma MCP lets Claude read and edit your Figma files. Compare plans, limits and handoff, then use both in one workflow.
Beginner10 minutes to decide, about 30 minutes for the hands-on workflow
Claude PowerPoint, Excel and Word files: how to make them (2026)
Yes, Claude makes real PowerPoint, Excel and Word files. Turn on file creation, ask for the format and download it, or work inside Office with Claude for M365.
Beginner5-15 minutes