# Schedule Instagram posts with OpenAI API

> The OpenAI API is for developers building their own agent, so Tesselith is one tool in your code rather than an app you chat with. The Responses API can call Tesselith's MCP server directly, so your agent can draft and queue Instagram posts as part of a bigger flow. You bring the model, the prompts and the checks.

Canonical: https://tesselith.com/ai-agents/openai-api/instagram

## A content tool for a print shop

A print shop builds a small internal tool that takes each new product photo and writes an Instagram caption. The tool calls the Responses API with Tesselith's MCP server attached, so the model can create a draft on the shop's account. Staff see every draft in Tesselith before the queue is touched, and the tool never publishes on its own.

## A newsletter to social pipeline

A newsletter company runs a nightly job that reads each new issue and writes three Instagram posts. The job sends the issue text and the Tesselith tools to the Responses API, and the model creates the drafts. A human editor approves the batch the next morning, and only approved posts get a queue slot.

## A support agent that drafts how-to posts

A software company keeps getting the same setup question in support tickets. Its internal agent uses the Responses API with the Tesselith tools to turn a resolved ticket into a short how-to post. The agent tags each draft for the support lead, who decides whether it goes out and when.

## Prompts to try

- "Draft an Instagram carousel caption from this release note, under 125 characters before the more cut-off, and create it as a draft."
- "Read this blog post and create three Instagram drafts, each with a different first line and a caption under 125 characters before the cut."
- "Check the queue for this channel and return the next three free slots in ISO 8601 with the workspace offset."
- "Create a single-image draft using the public image URL below, with a caption that names the product and its colour options."
- "Summarize this week's drafts for the Instagram channel and list the ones still missing a photo."

## Tips

- Put the character limit in the system prompt. Instagram shows only about 125 characters before the more cut-off, so a model left alone will often write long captions that bury the point.
- Ask for JSON with separate fields. Keep the caption, the hashtags and the media URL in different keys, so your code can check each one. A single block of text makes validation harder and mistakes harder to spot.
- Cap the hashtags in code as well as in the prompt. Instagram allows 30 per post, but a model will sometimes go over. Count them after the call and trim the extras before the draft is created.
- Keep a human approval step. Your code can create drafts freely, but publish_now and delete_post need an explicit confirm flag, and your app should ask a person before setting it. Build the approval queue around that.

## Questions people ask

### Do I need a Tesselith API key for this?

Yes. Create one under Settings → Developers, tick only the scopes your agent needs, and store it in a secret store. Keys are shown once.

### Does OpenAI host the Tesselith server for me?

OpenAI calls Tesselith's hosted MCP server for you, so there's nothing for you to run or host on your side.

### Which Instagram formats can the API schedule?

Single images, carousels and Reels, the same as the web composer. Media is attached from a public URL, so the file has to be reachable online first.

---
Tesselith · https://tesselith.com · Full site index: https://tesselith.com/llms.txt
