Tesselith
ProductSolutionsAI agentsCompareFree toolsBlogPricing
Log inStart free
  1. Home/
  2. AI agents/
  3. OpenAI API/
  4. Bluesky
OpenAI API + Bluesky

Schedule Bluesky posts with OpenAI API

The OpenAI API is for developers building their own app, so Bluesky work here happens in code you write. You connect Tesselith's MCP server through the Responses API's hosted MCP tool, and your agent can draft, queue and schedule posts when your app asks it to. Since you design the flow, decide early which steps need a person before anything goes live.

Start freeFull OpenAI API setup

1. Connect OpenAI API

agent.py
import os
from openai import OpenAI

client = OpenAI()
resp = client.responses.create(
    model="gpt-5",  # any model that supports remote MCP
    input="List my Tesselith channels",
    tools=[{
        "type": "mcp",
        "server_label": "tesselith",
        "server_url": "https://api.tesselith.com/mcp",
        "authorization": os.environ["TESSELITH_API_KEY"],
        "require_approval": "always",
    }],
)
print(resp.output_text)

Then connect Bluesky in Tesselith under Channels. How Bluesky scheduling works.

2. Ask for a Bluesky post

Shorten the Bluesky draft to 300 characters and keep the link at the end.

Used Tesselith · update_post

Updated the Bluesky draft to 287 characters and kept the link as its last line. The draft is still unscheduled, and the app returns the new text to the editor for approval.

What people use OpenAI API for on Bluesky

A newsroom tool that drafts social posts

A regional news site builds an internal tool on the OpenAI API. When an editor marks a story as published, the tool asks the model for a Bluesky post and a short thread built from the headline and standfirst. The tool creates the drafts through Tesselith and sends the editor a link to review them. Nothing goes out until the editor approves the draft, so the tool never publishes on its own.

Weekly release posts for a software team

A software company builds a small assistant for its product team. Each week the assistant reads the release notes the team has published and drafts a Bluesky post for the account. The team uses a fixed prompt, so every draft follows the same format and is quick to review. The assistant queues the approved drafts into free slots, and a team member checks them in Tesselith.

Bluesky posts in three languages

A travel booking site uses the API to turn one English destination guide into Bluesky posts in three languages. The app passes the guide and the target language to the model, which writes a post for each one under 300 characters. The posts are created as drafts on separate channels, so each language has its own account and its own schedule.

Prompts to try in OpenAI API for Bluesky

  • “Draft a Bluesky post from this release note, under 300 characters, and keep the product name exactly as written.”
  • “Create a Bluesky thread of four replies from this article and queue it for the next free slot.”
  • “List my Bluesky channel and return its status so the app can decide whether to queue or hold the post.”
  • “Schedule the approved Bluesky draft for 9am UTC tomorrow and return the Tesselith app link.”
  • “Attach the image at this public URL to the Bluesky draft, then return the updated post.”

Bluesky limits to keep in mind

Bluesky posts are limited to 300 characters. Display names allow 64 characters and bios 256. Tesselith checks drafts against these before they can be scheduled, so OpenAI API gets a clear error instead of a failed post.

Bluesky limits
Limit
Post300
Display name64
Bio256
Images per postUp to 4

Tips for Bluesky posts written with OpenAI API

  • Ask the model for JSON with a text field and a character count. Your app can reject anything over 300 characters before it becomes a draft, which is cheaper than fixing it later.
  • Keep the format rules in your code, not in a single user message. A fixed template gives every draft the same shape, so reviewers learn what to check and where to look.
  • Store the Tesselith post id next to your own record. You can then read or update the same draft later without searching the queue again.
  • Keep a human approval step between a draft and publish_now. Queueing can run unattended, but a bad post in a public feed is hard to take back once people have seen it.

If something goes wrong

Troubleshooting OpenAI API with Tesselith
Fix
424 or "tool list failed"OpenAI couldn't reach Tesselith or got a 401. Check the key is sent as authorization on every request.
The model calls tools you didn't wantSet allowed_tools to the tools the agent needs.
Responses stall waiting for approvalAnswer the mcp_approval_request items, or use require_approval never for read-only tools.
403: your plan doesn't include API accessMCP is included on Pro, Team and Agency. New workspaces get a 14-day Pro trial; upgrade under Settings → Billing.
401: connection revoked or lost accessSomeone disconnected the assistant in Settings → AI assistants, or your role changed. Connect again and approve the workspace.
The assistant can read posts but can't scheduleYou unticked Schedule and queue on the consent screen. Disconnect and connect again, keeping that permission.
No channels foundThe assistant only sees accounts already connected in Tesselith. Connect them under Channels first.
Post scheduled at the wrong timeTell the assistant your time zone. Tesselith takes ISO 8601 times with an offset, and your workspace time zone is shown in get_queue.
429: rate limitedEach connection can make 120 requests a minute on Pro, 300 on Team and 600 on Agency. Wait for the Retry-After seconds.

Questions

Can my API app publish to Bluesky directly?
The connection can call publish_now, but that action needs your confirmation first. Build the approval step into your app before anything is published.
Do I need to connect Bluesky before using the API?
Yes. Connect the Bluesky account in Tesselith under Channels first, and then your app can list it by its id.
Which tools does the agent get?
The same tools as Tesselith's MCP server, including listing channels, drafting, queueing, scheduling, media upload, publishing and deleting.

OpenAI API with other networks

InstagramFacebook PagesThreadsYouTubeMastodonTelegram

Other AI agents for Bluesky

ClaudeClaude CodeClaude CoworkChatGPTCodexCursorVS Code (GitHub Copilot)WindsurfZedClineGemini CLIHermes AgentOpenClawGoosen8nMistral Le ChatPerplexityManus

Put OpenAI API to work on Bluesky

Connect Bluesky to Tesselith, connect OpenAI API, and schedule your next post from a conversation.

Start free

Free to start

One calendar for everything you post.

No credit card. Connect your first channel and schedule a post in under two minutes.

Start free
Tesselith

The social scheduler for creators, teams and agencies. One calendar, every network you post to.

Product

  • Composer
  • Calendar
  • Analytics
  • Automation
  • AI assistant
  • Posting queue
  • API & webhooks
  • MCP server
  • All features

AI agents

  • Claude
  • Claude Code
  • ChatGPT
  • Codex
  • Cursor
  • Gemini CLI
  • n8n
  • All AI agents

Solutions

  • Creators
  • Agencies
  • Small business
  • E-commerce
  • All solutions

Compare

  • Scheduler pricing 2026
  • vs Buffer
  • vs Hootsuite
  • Metricool alternatives
  • Planoly alternatives
  • SocialBee alternatives
  • All comparisons
  • All alternatives

Free tools

  • Character counter
  • Best time to post
  • UTM builder
  • Engagement rate
  • All tools

Company

  • About
  • Blog
  • Research
  • Developer docs
  • Pricing
  • Contact
  • Security
  • Status

Legal

  • Privacy
  • Terms
  • Cookies
  • Acceptable Use
  • DPA
  • Refunds

Schedule posts for

  • X (Twitter)
  • Instagram
  • Facebook Pages
  • LinkedIn
  • YouTube
  • TikTok
  • Threads
  • Bluesky
  • Mastodon
  • Pinterest
  • Reddit
  • Discord
  • Telegram
  • Dev.to
  • Hashnode

Popular guides

  • Post to all social media at once
  • Schedule Discord messages
  • Cross-post to Bluesky, Mastodon and Threads
  • Buffer pricing
  • Sprout Social pricing
  • Metricool pricing
  • Sendible pricing
  • Loomly pricing
© 2026 Tesselith. All rights reserved.
PrivacyTermsCookiesSecurityData deletion
Tesselith