/Start

Start here

What does this organization need?

get_onboarding_plan returns each step (context, main blog, Planner, CMS, phantom) as done, running, ready or blocked. Run the ready step’s guide, then ask again.

Read-only. Steps marked required or recommended are what we’d do next; optional steps need your yes. CLI: letterstory phantom-onboard plan and phantom-onboard next.
Agent setup promptPaste into Claude or any agent with web and API access.
You are setting up a Letter organization and do not yet know what it needs. Do not guess and do not follow a fixed script: ask the account, then run the guide for the step it says is ready. Repeat until nothing is ready.

Connect first:
- This guide is for an EXISTING Letter customer. If the user has somehow not signed up yet, that happens at https://app.letterstory.com/crossing/letter with a work email and is theirs to do in a browser, not something you can do over the API.
- If you can run a shell, connect with one link instead of a key: run `npx -y -p @letterstory/cli@latest letterstory login --device`, send the user the link and code it prints, and keep it running until they click Allow. Then call tools with `npx -y -p @letterstory/cli@latest letterstory call <tool> --args '<json>'` (https://app.letterstory.com/docs/letterpress). The bullets below are for agents that can only make HTTP calls.
- Otherwise, ask the user for their Letter API key if you don't have one (Letter dashboard -> Settings -> API keys -> Create key). In the Create key dialog, pick the "Onboarding + publishing agent" preset - a key created with the defaults can only read published posts, and almost every call below would fail on a missing capability. Keys are not issued over the API, so this step also happens in the browser. Send it as an x-integrations-key header (Authorization: Bearer is for OAuth access tokens, a different credential type - it will reject a plain API key with 401).
- Get the tool schemas by POSTing a JSON-RPC tools/list request to https://app.letterstory.com/api/mcp - plain HTTP is fine, you do not need an MCP client. That is the ONLY place per-tool parameters live. https://app.letterstory.com/api/openapi describes the REST dispatcher (one generic tools/{name} path with an untyped body) and carries no per-tool schema, so it cannot tell you what a tool takes. Tool names below are anchors, not the full signature - look up the current schema before calling anything.

The loop:
1. Call get_onboarding_plan. It reads plain facts about the organization and returns every onboarding step with a status: done, running, ready or blocked. It persists nothing.
2. Take `next` - the first ready step Letter requires or recommends. Its `tool` is the operation; look up that tool's parameters in tools/list. Call the read-only tools in `prepare` first so you act from real state. `args_hint` carries arguments the facts already determine (for example the main collection's id) - use them.
3. Run the step by following its `docs` guide - each guide has its own prompt for the details of that step. If the step has a `poll` tool, poll it until the job is done; polling nudges a job forward, so keep polling rather than waiting.
4. Call get_onboarding_plan again. What changed is what you did. Continue with the new `next`.
5. Never run a blocked step. `blocked_by` names the missing facts and `why` names the tool that provides them - that is the thing to do instead.
6. A step in `optional_ready` is Letter's suggestion, not a decision: ask the user before running it, and say plainly what it does and what it costs.
7. Stop when `next` is null. Report each step's status from the last plan, not from what you attempted - "attempted" and "done" are different claims.

The steps get_onboarding_plan can return, in Letter's recommended order:
- context (recommended) - Set the organization's context: What the company is, what it should write about and rank for, and who it competes with. Tool: ingest_context. Read first: get_positioning, suggest_onboarding. Needs: domain_set. Guide: https://app.letterstory.com/docs/onboard/context
- cms (optional) - Connect the CMS: Import your existing blog from Webflow, Framer, Sanity, Contentful or GitHub, and publish posts back to your site. No CMS? See /docs/onboard/custom-front-end. Tool: connect_cms. Read first: list_cms_connections, list_cms_mappings, list_publish_targets. Needs: domain_set. Guide: https://app.letterstory.com/docs/onboard/cms
- collection (required) - Onboard the main blog: Import the existing blog (sitemap or connected CMS) or start from positioning; derive content areas and series; build the topic map; read the site's diagram styles and turn the guaranteed passes on; stock headlines. Tool: onboard_collection. Read first: list_collections. Poll get_collection_onboard_status until it finishes. Needs: domain_set. Guide: https://app.letterstory.com/docs/onboard/collection
- planner (recommended) - Turn the Planner on: Choose cadence and approval posture; the Planner then sources, writes and queues on its own. Tool: configure_collection. Read first: get_collection_config. Needs: content_areas_present. Guide: https://app.letterstory.com/docs/onboard/collection
- search_console (optional) - Connect Google Search Console: Clicks, impressions and queries for SEO measurement and Headlines. A person signs in with Google (get_gsc_connection returns the link) and picks the property; list_gsc_properties shows which ones that Google account can read and which aren't verified yet, so the person can be told exactly what to pick or verify. Done once a property is picked. Tool: get_gsc_connection. Needs: domain_set. Guide: https://app.letterstory.com/docs/onboard/collection
- ranking_targets (recommended) - Choose what to rank for: Say the phrases the company wants to be THE ANSWER for (add_ranking_target). Chosen after the sitemap is read, so the targets are picked against what the site covers, never in a vacuum. Tool: add_ranking_target. Read first: list_ranking_targets, list_competitors. Needs: domain_set, site_mapped. Guide: https://app.letterstory.com/docs/onboard/context
- geo_probes (optional) - Run the first AI-answer probes: Ask AI assistants about the ranking targets now, before there is a blog or a phantom: one company probe per target and one real GEO cycle. What a blog's onboarding and a phantom then write toward is chosen against what the assistants actually said. Tool: start_first_probes. Read first: list_ranking_targets, list_probes. Poll list_probes until it finishes. Needs: domain_set, ranking_targets_set. Guide: https://app.letterstory.com/docs/onboard/collection
- phantom (optional) - Launch a phantom blog: An independent, Letter-hosted publication that earns citations for the client's topics. Tool: plan_phantom. Read first: propose_phantom_plan, propose_phantom_mastheads. Poll get_phantom_launch_status until it finishes. Needs: positioning_set. Guide: https://app.letterstory.com/docs/onboard/phantom
- mailers (optional) - Set up cold-email mailers: Sending domains and mailboxes for outbound, apart from the company's own domain so its reputation is never at risk: one job buys or uses a domain, writes its DNS, creates the mailboxes and starts their warmup. Costs money (a domain). Tool: launch_mailers. Read first: list_mail_domains, quote_mail_domain. Poll get_mailer_domain_status until it finishes. Needs: domain_set.
- warmup (optional) - Let the mailers warm up: At least two weeks of warmup before a new mailer sends real email; it runs on its own. Build the list and write the sequence meanwhile. Restart a paused warmup with start_mailer_warmup. Tool: start_mailer_warmup. Read first: list_mail_domains. Poll list_mail_domains until it finishes. Needs: mailers_present.
- prospects (optional) - Build a list of people to reach: Who to email: from a description of the buyers (create_prospect_list_from_prompt, which spends credits), a CSV, or by hand; enrich_prospects fills in what is missing. Needs no mailer. Tool: create_prospect_list_from_prompt. Read first: list_prospect_lists. Needs: domain_set.
- sequence (optional) - Write the sequence: The emails and their follow-ups, written from the positioning; a new sequence starts as a draft. build_campaign does the list, the emails and the launch into review from one prompt. Needs no mailer. Tool: create_sequence. Read first: list_sequences, suggest_campaigns. Needs: positioning_set.
- outbound (optional) - Enroll the list and start sending: Turn the sequence on with the ready mailers attached and enroll the list. Emails that need review wait in Review; nothing sends from a mailer still warming. Tool: enroll_in_sequence. Read first: list_sequences, list_review_items. Needs: mailers_ready, prospect_list_present, sequence_present.

Guardrails:
- A blocked step is blocked for a reason in the data; do not work around it with a lower-level tool.
- Never call buy_domain or anything else that spends money without the user explicitly confirming first.
- A raw org-scoped key may lack a capability a step needs; the error names it. Ask the user for a key with that capability rather than skipping the step.
- If something in this flow doesn't match what tools/list or /api/openapi actually shows, trust the live schema over this prompt and tell the user what changed.

The steps the plan can return

1

Set the organization's context recommended

What the company is, what it should write about and rank for, and who it competes with.

  • ingest_context
  • get_positioning
  • suggest_onboarding
Needs:domain_set. Provides positioning_set, context_applied, competitors_present. Guide: /docs/onboard/context
2

Connect the CMS optional

Import your existing blog from Webflow, Framer, Sanity, Contentful or GitHub, and publish posts back to your site. No CMS? See /docs/onboard/custom-front-end.

  • connect_cms
  • list_cms_connections
  • list_cms_mappings
  • list_publish_targets
Needs:domain_set. Provides cms_connected. Guide: /docs/onboard/cms
3

Onboard the main blog required

Import the existing blog (sitemap or connected CMS) or start from positioning; derive content areas and series; build the topic map; read the site's diagram styles and turn the guaranteed passes on; stock headlines.

  • onboard_collection
  • list_collections
  • get_collection_onboard_status
Needs:domain_set. Provides main_collection_onboarded, content_areas_present, topic_map_built, headlines_stocked. Guide: /docs/onboard/collection
4

Turn the Planner on recommended

Choose cadence and approval posture; the Planner then sources, writes and queues on its own.

  • configure_collection
  • get_collection_config
Needs:content_areas_present. Provides planner_on. Guide: /docs/onboard/collection
5

Connect Google Search Console optional

Clicks, impressions and queries for SEO measurement and Headlines. A person signs in with Google (get_gsc_connection returns the link) and picks the property; list_gsc_properties shows which ones that Google account can read and which aren't verified yet, so the person can be told exactly what to pick or verify. Done once a property is picked.

  • get_gsc_connection
Needs:domain_set. Provides search_console_connected. Guide: /docs/onboard/collection
6

Choose what to rank for recommended

Say the phrases the company wants to be THE ANSWER for (add_ranking_target). Chosen after the sitemap is read, so the targets are picked against what the site covers, never in a vacuum.

  • add_ranking_target
  • list_ranking_targets
  • list_competitors
Needs:domain_set, site_mapped. Provides ranking_targets_set. Guide: /docs/onboard/context
7

Run the first AI-answer probes optional

Ask AI assistants about the ranking targets now, before there is a blog or a phantom: one company probe per target and one real GEO cycle. What a blog's onboarding and a phantom then write toward is chosen against what the assistants actually said.

  • start_first_probes
  • list_ranking_targets
  • list_probes
  • list_probes
Needs:domain_set, ranking_targets_set. Provides probes_run. Guide: /docs/onboard/collection
8

Launch a phantom blog optional

An independent, Letter-hosted publication that earns citations for the client's topics.

  • plan_phantom
  • propose_phantom_plan
  • propose_phantom_mastheads
  • get_phantom_launch_status
Needs:positioning_set. Provides phantom_exists. Guide: /docs/onboard/phantom
9

Set up cold-email mailers optional

Sending domains and mailboxes for outbound, apart from the company's own domain so its reputation is never at risk: one job buys or uses a domain, writes its DNS, creates the mailboxes and starts their warmup. Costs money (a domain).

  • launch_mailers
  • list_mail_domains
  • quote_mail_domain
  • get_mailer_domain_status
Needs:domain_set. Provides mailers_present.
10

Let the mailers warm up optional

At least two weeks of warmup before a new mailer sends real email; it runs on its own. Build the list and write the sequence meanwhile. Restart a paused warmup with start_mailer_warmup.

  • start_mailer_warmup
  • list_mail_domains
  • list_mail_domains
Needs:mailers_present. Provides mailers_ready.
11

Build a list of people to reach optional

Who to email: from a description of the buyers (create_prospect_list_from_prompt, which spends credits), a CSV, or by hand; enrich_prospects fills in what is missing. Needs no mailer.

  • create_prospect_list_from_prompt
  • list_prospect_lists
Needs:domain_set. Provides prospect_list_present.
12

Write the sequence optional

The emails and their follow-ups, written from the positioning; a new sequence starts as a draft. build_campaign does the list, the emails and the launch into review from one prompt. Needs no mailer.

  • create_sequence
  • list_sequences
  • suggest_campaigns
Needs:positioning_set. Provides sequence_present.
13

Enroll the list and start sending optional

Turn the sequence on with the ready mailers attached and enroll the list. Emails that need review wait in Review; nothing sends from a mailer still warming.

  • enroll_in_sequence
  • list_sequences
  • list_review_items
Needs:mailers_ready, prospect_list_present, sequence_present. Provides outbound_sending.

Full parameters and curl for every tool: /docs/api.