Posting autopilot

Your own AI agent drafts a week of posts in your brand voice, Postwyre holds each one for your approval, then sends it at your posting times.

Autopilot is a weekly run of your own AI agent. It reads your brand voice and posting times from Postwyre, writes one post for each free posting time in the next 7 days, and puts them all in your approval queue. Nothing goes out until you approve it. Approve the week on one page, and each post goes out at its own time.

Your agent does the writing. Postwyre keeps the voice, the posting times, the approval queue and the sending. Settings, Autopilot shows what is left to set up and the instructions to give your agent.

Before you start

Settings, Autopilot checks these for you, and your agent reads the same list with get_autopilot_setup:

  • Connect the accounts to post to on the Accounts screen. An agent can't connect accounts.
  • Save your brand voice, so the agent writes in it.
  • Set the brand's time zone in Settings, Brand. Without one, posting times are read in UTC.
  • Connect your AI agent. Use Postwyre from your agent has the steps for Claude, ChatGPT, Hermes and the rest.

Your posting times are 9 AM and 5 PM every day until an owner or admin changes them in Settings, Brand. A week is one post for each of those times that no other post holds yet.

The instructions

Copy this into your agent, and replace <brand name> with your brand's name as Postwyre shows it. Settings, Autopilot has the same text with your brand's name already in it.

You run the weekly posts for <brand name> in Postwyre. Do these steps in order, every run.

1. Call list_workspaces. Use the id of the brand named <brand name> as workspace_id in every call below.
2. Call get_autopilot_setup with workspace_id. If ready is false, make no posts: tell me each step whose done is false and where to do it, then stop. If week is empty, every posting time this week already has a post: say so and stop.
3. Write everything in voice from that answer. For each platform in accounts, call get_platform_guide with workspace_id and that platform, for its limits and tone.
4. Call upcoming_post_ideas with workspace_id, and list_posts with workspace_id from 7 days ago to 7 days from now, so you use the dates that matter and don't repeat a topic.
5. Write one post for each time in week, with that time's at as its scheduledAt, and accounts as { accountId } with the ids in accounts.
   Leave an account out of a post when its platform needs something the post doesn't have, such as a video or its own options: get_platform_guide says what each one needs.
   Give each platform its own text in platformOverrides, inside its limit. Don't invent numbers, customers or offers.
   For a picture or video, call upload_from_url with a public https address you have the right to use, and put its mediaId in the post's mediaIds.
6. Call schedule_posts_bulk once, with workspace_id, action "schedule", requireApproval true, idempotencyKey "week-" followed by the date of the first time in week, and every post.
   If the call fails, send the same call again with the same idempotencyKey. If only some posts are refused, tell me which and why, and don't send them again.
7. Reply with each post's text and time from that answer, and its batchUrl, where I approve the week on one page.

Never leave out requireApproval. Never send personApproved or selfReview: I approve each post myself. Never call create_post with action "now", delete_post, delete_published_post or update_post.

Run it once a week: by hand, or on your agent's own schedule. Two posts a day from a scheduled agent shows how to put a prompt on a schedule in Hermes, Claude Code and others.

What each tool answers

  • get_autopilot_setup answers ready, and steps: each with done, what it is, whether only an owner or admin can do it (ownerOrAdmin), the tool an agent can use for it (null when only a person can do it) and where in Postwyre a person does it. It also answers voice, timeZone, postingTimes (the brand's own), weekTimes (the times week was filled from, with from set to accounts or brand), accounts (active accounts only, each with needsTapInPostwyre), week, qualityBar and waitingForApproval. It changes nothing.
  • week is the free posting times in the next 7 days for one post to every account in accounts, the same times schedule_posts_bulk fills: the accounts' own posting times when they all share the same ones, else the brand's, at least 10 minutes away, and not a minute another post already holds, a post waiting for approval included. Up to 50, as many as one schedule_posts_bulk call takes. Each has at (with the brand's offset, ready for scheduledAt) and utc.
  • schedule_posts_bulk with requireApproval: true holds every post. Its answer gives batchUrl, one page where you approve them all; list_pending_approvals gives the same link. An agent can ask for approval but can't give it.
  • The idempotencyKey carries the week's first date, so a retried run makes its posts once.

Approving the week

Open batchUrl, or the Queue in Postwyre, and approve the posts you want. Each approved post goes out at its own time, not when you approve it. A post you don't approve never goes out. If you approve a post after its time has passed, the button reads Approve and post now.

  • TikTok posts from an agent always wait for your tap in Postwyre, and needsTapInPostwyre says which accounts are like that.
  • If an owner or admin turned on Posts from your agent in Settings, Brand, a post that passes its checks and comes with the agent's own selfReview can go out without you. The instructions above never send selfReview or personApproved, so every autopilot post waits for you.

On this page