Post to social media from ChatGPT with a Custom GPT

For ChatGPT on the web or on your phone. A Custom GPT with an action can draft, schedule and publish posts through your account. If you use the ChatGPT desktop app instead: it has no 30-action limit, and can upload media.

Step 1: Create an API key

  1. Sign in, open the account menu and choose API Console.
  2. Under Manage, choose API keys, then Create API key.
  3. Give it a name, such as "Custom GPT", and create it. Copy the key: it is shown once.

Keys created here appear under Connect your tools as a Custom API connection.

Step 2: Download the action file

While signed in, open /api-download.php?asset=chatgpt-action on your account's web address (the same address you use to sign in). Save the file.

Step 3: Create the GPT

  1. Go to chatgpt.com, open Explore GPTs, then click Create.
  2. Open the Configure tab and give the GPT a name, such as "Social Media Poster".
  3. Paste this into Instructions:
You post to social media through the connected publishing API.
1. On first use call getMe, then list workspaces and social profiles. Never invent a workspace or profile id. Always use ids returned by the API.
2. Create posts as mode "draft" unless the user explicitly asks to queue, schedule, or publish now. Show the exact text, networks and time, and get a clear yes before any queue, scheduled, or publish_now call.
3. Network codes: fb, tw, ln, in, pi, gmb, thrd, tiktok, yt, blsk. Instagram and TikTok need an image or video URL. YouTube needs a video URL. Pinterest needs a board. Images must be public URLs (image_urls).
4. If a call returns 401 or 403, stop and tell the user. Do not retry or guess.
5. Report the post id and status the API returns. Never claim something posted unless the API confirmed it.


Step 4: Add the action

  1. Scroll to Actions and click Create new action.
  2. Open Authentication (the gear icon), choose API Key, set Auth Type to Bearer, paste your key, and save.
  3. Open the downloaded file in a text editor, copy everything, and paste it into the Schema box. The Available actions list should show 30 actions, including getMe and createPost.
  4. If you will share the GPT beyond yourself, ChatGPT asks for a privacy policy URL: use your organization's privacy policy page.
  5. Click Create and choose Only me. The key is stored in the GPT's action settings, so keep the GPT private unless everyone you share it with should be able to post on your behalf.

Step 5: Try it

  1. "Who am I?" Try this first: it reports exactly what this key may do.
  2. "List my social profiles."
  3. "Draft a Facebook post that says: [your text]." Nothing is published.
  4. "Schedule that draft for tomorrow at 10am" or "Publish it now."

ChatGPT asks you to confirm before every action that creates or changes something. That is built into ChatGPT.

What the action includes

The action is a subset by construction: ChatGPT caps a custom GPT at 30 actions, so it carries the posting, scheduling, reporting and sweepstakes core. The media library, webhook administration, the agent briefing and post-type curriculum, and the client-plan continuity used for multi-client agency work are not in it. Attach media as public image or video URLs. For the complete workflow, connect through ChatGPT Desktop and Codex.

If something fails

Open Fix a problem in the API Console and run the analyzer. A "Who am I?" error usually means Auth Type is not set to Bearer or the key was pasted with extra spaces; if the key was deleted or regenerated, create a new one and update the action's authentication settings.


Titles with the capability line, matching the console's own descriptions:

  1. Connect Make. Best for visual automations, AI workflows, and multi-step scenarios: create and schedule posts, pull reports, and react instantly to approvals and new sweepstakes leads.
  2. Connect ChatGPT Desktop and Codex. One installation for ChatGPT Desktop and Codex: plan, create, schedule and review social content, measure performance, and run sweepstakes from ChatGPT Work.
  3. Connect Claude. Great for guided content workflows and teams: Claude drafts and schedules posts using your Workspace Playbook, and pulls your results.
  4. Post to social media from ChatGPT with a Custom GPT. Draft, schedule and publish posts from ChatGPT on the web or your phone.
👆 You’re all caught up