Two posts a day from a scheduled agent
Put Hermes, Claude Code or any agent on a daily run that reads what people talk about on X and drafts two posts for you to approve.
This page sets up an agent that runs once a day on its own. Each run, it searches the web for what people on X are talking about in your field, picks two topics it can tie to something your product really does, writes a version for each platform, and puts both posts in your next two posting times, held for you to approve. Nothing goes out until you tap Approve.
Postwyre does not read X. The agent's own web search does, so it sees what a search engine sees of X, not X's trending tab. Postwyre's part is the brand voice, the posting times, the schedule and the approval link.
Before you start
- Connect your agent to Postwyre: Use Postwyre from your agent has the steps for Claude, Hermes and the rest.
- Connect the accounts you want it to post to on the Accounts screen. An agent can't connect accounts.
- Save your brand voice, so the agent writes in it. It reads the voice with get_platform_guide.
- Check your posting times in Settings, under Posting times. They are 9 AM and 5 PM every day, in the brand's time zone, until an owner or admin changes them. Those two times are the two posts a day. Set the brand's time zone too: without one the times are read in UTC.
The prompt
Every agent below runs the same prompt. Copy it, then replace the four parts in angle brackets: your brand's name as Postwyre shows it, the platforms to post to, your field, and one or two lines on what your product does.
You write and schedule 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_platform_guide with workspace_id and no platform, and read brandVoice. Write everything in that voice.
Then call get_platform_guide with each platform you will post to, for its limits and tone.
3. Call list_accounts with workspace_id. Keep only accounts whose status is active on these platforms: <x, threads, linkedin, bluesky>.
4. Call list_posts with workspace_id, from 7 days ago to 7 days from now, so you don't repeat a topic you posted or scheduled.
5. Search the web for what people on X are talking about today in <your field>.
Pick two topics you can tie to something <brand name> really does: <one or two lines on what the product does>.
Skip anything about a tragedy, an election or a private person. If no topic fits, make no posts and say why.
6. Call find_next_slot with workspace_id, count 2 and the account ids from step 3. Use each slot's at as a post's scheduledAt.
7. Write two posts. Each post has a body and a platformOverrides entry for each platform with its own text, inside that platform's limit.
Say what the product does for the reader in plain words. Don't invent numbers, customers or features. Add no links.
8. Call schedule_posts_bulk once, with workspace_id, action "schedule", requireApproval true,
idempotencyKey "trends-" followed by today's date (for example trends-2026-11-04), and both posts,
each with accounts as { accountId } from step 3 and scheduledAt from step 6.
If the call fails, send the same call again with the same idempotencyKey.
9. Reply with each post's text, its time, and its approval.url.
Never leave out requireApproval. Never send personApproved: nobody is here to say yes. Never call create_post with action "now", delete_post, delete_published_post or update_post.Why the prompt is built this way:
requireApproval: trueholds both posts until a person in the brand approves them. Each answer carries an approval link that works for 7 days, or until a day after the post's time when that is later. An agent can ask for approval but can't give it. See Approvals and webhooks.personApprovedtells Postwyre that you saw a post and said yes. On a run with nobody watching that is never true, so the prompt forbids it, and a LinkedIn post waits for your approval like the rest.- find_next_slot answers the brand's next free posting times, the same ones schedule_posts_bulk would fill: times at least 10 minutes away that no other post of the brand already holds, a post waiting for approval included, starting with any left today. It holds nothing. When no time is left today, its
notesays so. - The idempotency key carries the date, so a run that is retried makes its two posts once. If a second run on the same day sends posts with different text or accounts under the same key, each one comes back refused with
conflictand nothing new is made, so a day never gets four posts by accident. - If you approve a post after its time has passed, the button reads Approve and post now.
Hermes
Hermes runs scheduled jobs it calls cron jobs. Each run starts a fresh session, which is why the prompt above says everything.
- Connect Hermes to Postwyre as shown in Use Postwyre from your agent. Postwyre's tools show up in Hermes in a toolset named
mcp-postwyre. - In a Hermes chat, ask it to make the job with its cronjob tool, so you can name the toolsets the job gets:
Create a cron job with the cronjob tool: name "postwyre-trends", schedule "7 7 * * *",
enabled_toolsets ["web", "mcp-postwyre"], and this prompt: <paste the prompt>- Or make it in a terminal. A job made this way gets the toolsets you turned on for the cron platform in
hermes tools, so turn on web search and Postwyre there first:
hermes cron create "7 7 * * *" "<paste the prompt>" --name postwyre-trends --timezone America/New_York --deliver telegram- Run it once now and check the answer:
hermes cron run postwyre-trends.hermes cron listshows the job and when it runs next, so check the time there, andhermes cron pause postwyre-trendsstops it.
7 7 * * * runs at 7:07 each morning, before the 9 AM posting time, so you have time to approve. Without --deliver, a job made in the terminal saves its answer under ~/.hermes/cron/output/; --deliver telegram sends the approval links to your Telegram chat with Hermes instead. We checked these steps against the Hermes docs on 2026-11-04. Nobody has run this job from Hermes end to end yet.
Claude Code
Claude Code calls these scheduled tasks (they used to be called routines). They run in Anthropic's cloud, so they keep running when your computer is off, and they count against your Claude plan's usage.
- Add Postwyre as a connector on Claude.ai, as shown in Use Postwyre from your agent. Scheduled tasks use your Claude.ai connectors.
- Go to claude.ai/code/routines and click New task, or run
/schedulein Claude Code and describe it, for example/schedule every day at 7:07am, write two Postwyre posts. Claude then asks for the rest. - Name it, paste the prompt, and pick a daily schedule at a few minutes past the hour. A run set exactly on the hour can start a few minutes late. A custom cron expression is read in UTC unless it starts with
CRON_TZ=and your time zone. - On the Connectors tab, keep Postwyre and remove the connectors this task doesn't need. Every connector you leave on can be used during a run, writes included.
- Click Create, then Run now to try it. Each run opens as its own session, where you can read what Claude did and find the approval links.
Scheduled tasks can't run more than once an hour. The task acts as you: what it does in Postwyre is done with your sign-in, which has your own role in each brand, so it can do whatever you can do there through the connector.
Any other agent
Any agent that can connect to an MCP server and search the web can run the same prompt. Point it at https://postwyre.com/api/mcp with a key (Agent keys), and start it from whatever runs jobs on a schedule on your machine, such as cron.
An agent or script with no MCP support can make the same two calls over the REST API with a key. Send X-Workspace-Id too if the key's owner is in more than one brand.
GET /api/posts/next-slot?count=2&accountId=ACCOUNT_ID
Authorization: Bearer sk_live_...POST /api/posts/bulk
Authorization: Bearer sk_live_...
Idempotency-Key: trends-2026-11-04
Content-Type: application/json
{
"action": "schedule",
"requireApproval": true,
"posts": [
{ "body": "First post", "accounts": [{ "accountId": "ACCOUNT_ID" }], "scheduledAt": "2026-11-04T09:00:00-05:00" },
{ "body": "Second post", "accounts": [{ "accountId": "ACCOUNT_ID" }], "scheduledAt": "2026-11-04T17:00:00-05:00" }
]
}What it costs
A post waiting for approval counts nothing. Once approved, each post's media counts toward your plan's media sent once for each account it goes to, and a post to X also counts toward the plan's X limit. See Billing. The agent's own runs and searches are billed by whoever runs the agent, not by Postwyre.
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.
Teach your agent your brand
Save how each brand should sound once, and every agent you connect writes in that voice, with Postwyre's playbook for each platform and post type.