← Files PostizARCHIVED FILE

skills/schedule-posts/SKILL.md

3.23 KB · Dec 2, 2026 · 12:12 UTC

↓ Download file

See the change to this file →

---
name: schedule-posts
description: Create a draft, scheduled, or immediate social media post with Postiz, including threads, first comments, and platform-specific settings such as subreddits, YouTube titles, or Pinterest boards. Use when the user asks to draft, schedule, post, or publish something to a connected social channel.
---

# Schedule social media posts with Postiz

Follow these steps in order. Each step depends on the result of the one before it.

## 1. Pick the channels

Call `integrationList` and match the user's request to channels by platform and name. Use the channel `id` from the result as `integrationId`. If more than one channel matches and the user didn't say which, ask.

## 2. Check the platform rules

Call `integrationSchema` with the channel's platform identifier for every platform you will post to. It returns:

- `rules` and `maxLength`: keep the post and each comment within them.
- `settings`: the settings keys that platform needs (for example a subreddit and title for Reddit, a title and privacy for YouTube, a board for Pinterest). Required settings must be passed when scheduling.
- `tools`: helper methods for settings that need an id from the platform, such as a Reddit flair or a Pinterest board. Call `triggerTool` with the `integrationId`, the `methodName`, and any `dataSchema` values to get those ids. Pass the id it returns, never the display label.

For X, set `isPremium` to whether the user's X account is premium; if you don't know, use `false`.

## 3. Add media

Attachments must be hosted by Postiz. If the post has images or videos, or the platform requires them (for example Instagram, TikTok, YouTube, Pinterest), follow the `create-post-media` skill and use the hosted `path` values it gives you as attachments. Don't pass external URLs as attachments.

## 4. Confirm the timing

Dates are sent in UTC. If the user gives a local time without a time zone, ask for their time zone or confirm the UTC time with them. For relative dates ("next Monday"), state the exact date you will use.

Choose the post type from what the user asked:

- `draft`: saved in Postiz, nothing is sent. Use this when the user says draft, or when it is unclear whether they want it to go live.
- `schedule`: published automatically at the date.
- `now`: published immediately; pass the current time as the date.

Before using `schedule` or `now`, show the user the final text, channels, media, and time, and get their confirmation. Published posts are public and can't be unsent from here.

## 5. Create the post

Call `integrationSchedulePostTool` with one `socialPost` item per channel (or per date for a series):

- `postsAndComments`: the first item is the post; every later item is a comment or the next part of a thread.
- `content` is HTML. Wrap each line in `<p>`. Allowed tags: `h1`, `h2`, `h3`, `u`, `strong`, `li`, `ul`, `p`. Don't combine `u` and `strong`.
- `attachments`: the hosted paths from step 3.
- `settings`: the keys and values from step 2.
- `shortLink`: `true` only if the post has a link and the user wants it shortened; ask if unsure.

If the result contains `errors`, fix what it describes and call the tool again. On success, share each `previewUrl` with the user.

To change a post after it's created, use the `manage-scheduled-posts` skill.

SHA-256: c35a875fe91b67e37866e4dbab4ebf84f0dea5886687ebe2a947c2af89557731