Agent examples
Three worked examples with the exact tool calls in order, and a sample prompt for each: a LinkedIn post, a scheduled article and a weekly loop.
Each example lists the tools your agent calls, in order, and a prompt you can paste. Connect your agent first: Connect an agent (MCP). Argument names are exact. The full list is in the MCP tool reference.
Write a LinkedIn post and post it#
Prefera writes the post from your approved facts. Your agent posts it from your own account with its computer-use or browser tool. Prefera never posts to LinkedIn itself.
Needs: Read + write fixes.
list_brandsto find the brand (skip with one brand).create_piecewithkind: "linkedin_post"andtopic(3 to 300 characters, in your own words). By default Prefera drafts it in the background and answers at once withfix_numberandstatus: "drafting". Callget_fixwithfix_numberabout a minute later: the draft is ready whenstatusis"draft", andget_fixreturns thetext. Usewriter: "agent"to have your agent write it instead. Then Prefera makes no model call and returns anagent_promptand the approved facts.- Optional:
save_draft_textwithfix_numberandbody_mdto edit the text. Every save re-checks each claim. - The agent posts the text on LinkedIn with its own computer-use or browser tool and copies the public link of the post.
mark_postedwithfix_numberandurl, the public address of the post. Only call it after the post is really live.
A piece made from a topic alone is recorded but not measured by Proof, because it targets no question. To build the post from a page or a tracked question instead, pass source_url, source_fix_number or question_ids.
Sample prompt:
Use my Prefera MCP server. Call create_piece with kind "linkedin_post" and the topic
"why we built our pricing page around three questions". It is written in the background: call
get_fix with the fix_number about a minute later, until status is "draft". Show me the text before you post.
When I say go, open LinkedIn in the browser and post it from my profile. Then call mark_posted
with the fix_number and the link of the post. Never post anything I have not approved.
Write and publish an article on a schedule#
Needs: Read, write and publish, a connected site (see Connect your site (CMS)) and an owner or editor. Scheduling is a publish action, so with Ask me in Prefera first on it waits in Approvals.
create_piecewithkind: "new_page"andtopic. Prefera drafts the article from your approved facts in the background (a long article with images takes a minute or two) and answers at once withfix_numberandstatus: "drafting". Callget_fixwithfix_numberabout a minute later, again untilstatusis"draft". Usequestion_idsinstead oftopicto aim it at questions you are losing, so Proof can measure it.flagged_claimswithfix_numberlists the sentences no approved fact supports. A draft with none left is ready to publish.- For each flagged sentence, call
remove_flagged_claimoraccept_flagged_claimwith itsstart,endandtext. Or change the text withsave_draft_text. Only keep a sentence on purpose if you have checked it. To have Prefera write the whole article again, callregenerate_draft. It is also written in the background: it answers at once withstatus: "drafting"andprevious_version. Callget_fixabout a minute later, untilstatusis no longer"drafting". Ifget_fixshowsredraft_error, the fresh draft was not written and the previous text is unchanged.restore_draft_versionbrings back an earlier version. - Optional:
publish_previewshows the article as your site will show it. get_fixlists thedestinations(ids of your connected sites). With more than one,set_fix_destinationorset_fix_destinationspicks them.schedule_fix_publishwithfix_numberandschedule, a list of{ destination_id, publish_at }.publish_atis an ISO 8601 time with a zone, in the future, such as2026-12-01T09:00:00Z.
cancel_fix_schedule cancels it. To publish at once, use publish_fix_live. At the scheduled time Prefera runs the same checks as publish_fix_live, as the person who owns the connection, and only if they may still publish then.
New pages follow the publishing pace guard. If create_piece answers pace, wait for next_slot.
Sample prompt:
Use my Prefera MCP server. Create an article with create_piece (kind "new_page") on the topic
"how to pick an invoicing tool for a small agency". Wait for the draft: call get_fix with the
fix_number every minute until status is "draft". Then check flagged_claims. Remove any sentence
that no approved fact supports, then show me the final text. If I approve it, call get_fix to
find my site's destination id and schedule it with schedule_fix_publish for next Tuesday
at 09:00 UTC. Stop and tell me if any tool answers with an error code.
Run the weekly autopilot loop#
Your agent finds this week's work, writes each fix with its own model and records what went live. Prefera only plans and measures. Needs: Read + write fixes.
autopilot_planwithmax(up to 10; default 3). It returns this week's items within your plan's limits and aweekly_prompt. Addinclude_offsite: trueto plan outreach, replies and review requests too. If there are no items it says why.- For each item,
start_fixwith the item'smove_idandwriter: "agent". This creates the fix without spending Prefera model tokens and returns anagent_promptwith the approved facts it may use. - The agent follows
agent_promptin your repository, builds, and opens a pull request or deploys the way you normally do. - Once the change is live,
mark_fix_publishedwithfix_numberand the liveurl. Prefera then re-checks the questions. - At the end,
get_resultsfor what the published fixes did.
The agent never sends or posts off-site items for you. It writes the text and you send it.
Sample prompt, shortened. The full weekly prompt is on API & MCP under Autopilot from your agent, and autopilot_plan returns it as weekly_prompt:
Every Monday, use my Prefera MCP server to run my weekly routine.
1. Call autopilot_plan (max 3). If it returns no items, say "Nothing to do this week" and stop.
2. For each item call start_fix with its move_id and writer "agent".
3. Follow agent_prompt exactly: use only the approved facts, never invent numbers or quotes.
4. Open a pull request. Do not deploy to production unless I allow it. When it is live,
call mark_fix_published with the fix_number and the live url.
5. Never send or post anything for me.
6. If a tool returns rate_limited, limit, pace, resting or forbidden, skip that item and tell me.
7. At the end call get_results and write me a short report.
Schedule it as a weekly task in your agent. Pages in their 90-day rest are refused. See Permissions, approvals and limits for the codes.