BeeGenticResources
Publish to social

Publish to Mastodon

Post to any Mastodon server from a workflow, with media, visibility, content warnings and scheduling. Connect with an access token from your server. Real result included.

What you'll build: you type a topic, an AI writes the post, and BeeGentic publishes it to your Mastodon account on any server (mastodon.social, fosstodon.org, your own…). Three blocks: Start → Agent → Mastodon. About 5 minutes.

What BeeGentic can do with MastodonAll tools →

Posts to: Your account on any Mastodon server · Connect with: Server URL + access token · Block: Mastodon

TextLinkImageVideoMultiScheduleEditDeleteReadCommentsInsights
✅✅✅✅✅✅—✅✅—⚠️

Not supported: Editing posts · Polls · Replies and threads

✅ supported · ⚠️ partly (hover for details) · — not supported

Narrated walkthrough (2 min 20 s), with captions (CC button). Each step below also has a short silent clip. The orange numbers in each screenshot match the # column under it.

Before you start

You needWhy
A Mastodon account on any serverBeeGentic posts as you
An AI key saved as a secret, e.g. OPENAI_API_KEYThe Agent writes the post

Follow your server's rules. Many servers, including mastodon.social, require you to disclose AI-generated content and to mark automated accounts (Edit profile → Automated account). This guide's Agent ends every post with (AI-assisted).

Part 1: Get an access token (once)

Open Development on your server

On your Mastodon server: Preferences → Development.

Development

#What to do
1Click New application.

Name the application

New application

#FieldValue
1Application nameBeeGentic
2Application website (optional)https://beegentic.ai

Watch this step

Choose only the scopes BeeGentic needs

Untick everything, then tick read, write:statuses and write:media. Click Submit at the bottom.

Scopes

#ScopeWhy
1write:statusesPublish and delete posts
2write:mediaAttach images and video

read lets BeeGentic read your account and posts.

Watch this step

Copy the access token

Open the BeeGentic application.

Access token

#What to do
1Copy Your access token. All three values are blurred here; treat them like passwords.

Save it as a secret in BeeGentic

Settings → Secrets.

Secret saved

#What to do
1Name MASTODON_ACCESS_TOKEN, paste the token as the value.
2Click Save.

Watch this step

Part 2: Build the workflow

Create the workflow and add the Agent

+ New workflow → name it Publish to Mastodon. Then Toolbar → Agent. In Messages:

You write social posts for BeeGentic, an AI workflow-automation platform. Write a Mastodon post (max 400 characters) announcing: <start.input>. Friendly, 2 hashtags including #BeeGentic, and end with (AI-assisted). Return only the post text.

Agent message

#What you see
1The message. Saying who you are ("BeeGentic, an AI workflow-automation platform") keeps the AI on topic.

Watch this step

Choose the model and key

Model and key

#FieldValue
1Modelgpt-5-mini
2API Key{{OPENAI_API_KEY}}

Add the Mastodon block

Toolbar → Mastodon.

Mastodon block

#FieldValue
1OperationCreate Post (the default)

Server and token

Credentials

#FieldValue
1Instance URLYour server, e.g. https://mastodon.social
2Access Token{{MASTODON_ACCESS_TOKEN}}

Watch this step

Post text and visibility

Post text

#FieldValue
1Post Text<agent.content>
2VisibilityPublic (profile and timelines), Unlisted (profile only), Followers only, or Mentioned people only

More fields: Media URLs (up to 4 public images/videos, one per line) with Alt Text, Content Warning, Language, Schedule For (at least 5 minutes ahead) and Sensitive Media.

Press Shift + L to tidy. Your finished workflow:

Finished workflow

#BlockWhat it does
1StartYour chat message becomes <start.input>
2AgentWrites the post
3MastodonPublishes it, public

Watch this step

Part 3: Run it and check the result

Send the topic from Chat

Chat

#What to do
1Type the topic and press Enter.

Example message we sent:

BeeGentic now publishes to Mastodon, written by AI and posted automatically

Read the output

Result

#What you see
1Your message.
2Each block's run time.
3The output: id, url, createdAt, visibility, and scheduled: false.

Watch the run

See it on Mastodon

Live on Mastodon

#What you see
1The post, public, with clickable hashtags and the AI disclosure.

The real post BeeGentic published:

Hello Mastodon! BeeGentic now publishes to Mastodon — posts are written by AI and posted automatically so you get timely updates, ideas and tips. Follow along for smooth AI-powered workflow automation. #BeeGentic #AI (AI-assisted)

We deleted this test post afterwards with Delete Post.

Watch this step

Part 4: Make it automatic

You wantDo this
A post every weekdayReplace Chat with a Schedule trigger.
Posts at a set timeFill Schedule For; Mastodon holds the post until then.
Images or videoAdd public URLs in Media URLs and describe each in Alt Text (one line per URL).
The same post elsewhereAdd Bluesky, Threads or LinkedIn blocks after the same Agent.

Other operations

OperationWhat it does
Delete PostDeletes a post by ID or URL
Get AccountYour username, followers, following and post count
Get PostsYour recent posts (boosts excluded)

Troubleshooting

ProblemFix
The access token is invalidCopy the token again from Preferences → Development → BeeGentic.
This action is outside the authorized scopesRecreate the application with write:statuses (and write:media for media).
"Post is … characters but this instance allows …"Most servers allow 500 characters (the content warning counts too). Shorten the text or ask the Agent for fewer characters.
Media still processingVideos can take up to a minute; BeeGentic waits. Very large files may time out.

On this page