Get started: agent brief
One page for the agent you already use (Claude, ChatGPT, Cursor, Codex or Claude Code). It checks access, connects Amdahl, collects what the user knows about each recipient, has Amdahl write to ten of them, and shows the result exactly as Amdahl returned it.
This is the Amdahl get-started brief for an agent. You are helping a user try Amdahl on outbound email for the first time. Follow these steps in order. Ask the user only what you cannot find yourself, and ask at most two questions in the whole run.
Amdahl writes the outbound email from context: who the recipient is, what is known about them, and what the user wants them to do. A draft is optional. A draft the user already has is the starting point of the message. Your job is to give it the best context about each recipient, then show what it returns. Do not write the email yourself, and do not write a draft for Amdahl.
Rules
- Show Amdahl's result first, exactly as returned. Do not edit, shorten or polish the returned
message. If the user wants a change, call Amdahl again with the wish as one of therulesincontext. - Never invent a fact. Every entry in
facts(insidecontext) must come from the user's data or the user. Name the source. - Never print an API key. A coding agent or a script reads the key from a
.envfile asAMDAHL_KEY, not from the chat. In a private chat with an assistant such as Claude or ChatGPT, a key the user pasted can be used; if they share or export that chat, they revoke the key in the console under Settings, then API keys. - Change or send nothing in the user's tools until the user approves that batch.
- Send context, not a draft you wrote. Send the
messagefield only with a draft the user wrote. Amdahl keeps that draft as the base of the message and takes what it states as the user's own word. A draft you write would be sent as the user's words. - Email only. One call per recipient, one at a time.
Step 1: Check access
- Check whether the Amdahl tools are connected (MCP server
https://app.amdahl.ai/mcp). If they are, callget_setup_status. - If they are not connected, check for
AMDAHL_KEYin the environment or in a.envfile. If you find it, callGET https://app.amdahl.ai/api/platform/v1/setup/statuswith the headerX-API-Key: $AMDAHL_KEY. - Read
optimize.allowed. If it istrue, go to step 3. If it isfalse, tell the user theblockerand its fix (see the reference). - If the user has no workspace, send them to console.amdahl.ai/try. They can try Amdahl there with a work email, and the first run puts them on the beta waitlist. Stop here.
Step 2: Connect (if step 1 found nothing)
Pick the one path that fits the client you run in. Give the user the steps; do not do them for the user. The one exception is npx amdahl in Claude Code, Codex or Cursor.
| Client | What the user does |
|---|---|
| Claude Code, Codex, Cursor | If you can run shell commands and the user agrees, run npx amdahl yourself. In Claude Code or Cursor it sets up that client. Anywhere else it sets up every client it finds on the computer. It shows no menu and opens no browser. Tell the user the last step it prints: in Claude Code, run /mcp once; for Codex, run codex mcp login amdahl; Cursor asks on first use. The user signs in with a work email at that step. Or the user runs npx amdahl in their own terminal, ticks their tools and signs in once. |
| Claude (web or desktop) | Customize, then Connectors, then + Add, then Add custom connector. Name Amdahl, URL https://app.amdahl.ai/mcp. Click Connect and sign in. Open a new chat. |
| ChatGPT | Steps on Connect your agent. In every request, name the server: "Use the Amdahl MCP server to ...". |
| A script or server | Run npx @amdahl/cli keys create --name "Get started" --preset agent. Put the key in .env as AMDAHL_KEY=.... Check that .env is in .gitignore. |
In Claude, also add the Amdahl skill: download docs.amdahl.ai/skills/amdahl.zip, then Customize, then Skills, then + Add, then Upload skill.
After the user connects, do step 1 again.
Step 3: Collect recipient context
Amdahl's email is only as good as what you tell it about the recipient. Build one row per recipient with these columns:
| Column | What goes in it | Required |
|---|---|---|
name | Recipient's full name | yes |
email | Recipient's work email | yes |
company | Recipient's company | yes |
role | Recipient's job title | yes |
known | What the user knows about this person or account, one fact per line, with at least one reason to write now, each with its source (for example "CRM: trial started Sep 30", "Call Oct 2: SDRs rewrite every AI draft") | yes, at least 2 facts |
ask | What the email must get (for example "a 15 minute call next week", "a reply with the right contact") | yes |
Collect these once for all rows:
- What the user offers, and the proof they may cite. From the user's site, a one-pager or an earlier email. State numbers exactly as the source does.
- Rules: hard limits from the user or a style guide (for example "no pricing", "under 80 words"). Up to 20.
- Voice examples: up to 5 emails the user wrote and liked.
If the user has a draft for a row, do not send it. Take its facts (the reason to write, the offer, the ask) into the row, and leave the wording out.
Where to get the rows, in this order:
- Tools you can already read. A CRM (HubSpot, Salesforce), a sequencer, Clay, a spreadsheet, Notion or Drive. Read only. Map their fields to the columns above.
- A CSV file from the user. Ask for a file with the columns above. This is the fastest path for a first try.
- Paste. If neither works, ask the user to paste one recipient's details.
A row with one fact or less gives a generic email. Every row needs a reason to write now and the user's offer. Tell the user which rows are thin and what to add.
Step 4: Run Amdahl on 10 rows
Pick the 10 rows with the most facts. If there are fewer than 10, use all of them. Send one call per row, one at a time, and show each result as it lands (step 5). An email usually takes 1 to 2 minutes, so 10 take 10 to 20 minutes. Tell the user this before you start.
Over MCP, call the optimize_message tool. Over REST, call POST https://app.amdahl.ai/api/platform/v1/messages/optimize with X-API-Key: $AMDAHL_KEY. Allow up to 310 seconds per call, and do not retry early.
{
"channel": "email",
"include_tries": true,
"evidence": "off",
"context": {
"facts": [
"Priya Shah is VP Sales at Acme (CRM).",
"CRM: Acme started a trial on Sep 30.",
"Call Oct 2: she said her SDRs rewrite every AI draft.",
"We sell Relay, which drafts first-touch emails from CRM notes."
],
"rules": ["Ask for a 15 minute call next week.", "Never mention pricing."]
}
}facts(incontext): one entry per fact: who the recipient is (name,role,company), theknownfacts, and the user's offer. Up to 10 entries, each up to 1,000 characters.rules(incontext): the row'saskfirst, then the user's hard limits. Up to 20.voice_examples(incontext): send them when the user gave some. Up to 5.- No
message. Amdahl writes fromcontextalone. "evidence": "off". Tell the user once: "Evidence is off, so Amdahl evaluates your email on how it reads and how clearly it asks. It does not read or sync any of your CRM or call data yet."- Keep who the recipient is in
facts. You can also sendrecipient; Amdahl then reads what the workspace's own data holds about that person. - On
rate_limited, waiterror.details.retry_after_secondsand send the same call again. Onoptimizer_errororoptimizer_timeout, stop, waitretry_after_seconds(one minute when the response gives none), try that row once, and continue only when it succeeds. Onquota_exceeded, stop and tell the user.
Step 5: Show the result
For each row, in this order:
- Amdahl's
message, exactly as returned. - Its
summaryin one line. - The tries from
tries, each with its round and what it aimed at. These scores show the path, not proof of a gain. Do not quote the first try against the last.
If the result has rows in omitted, the email leaves out what the context could not back: show each why to the user, add the missing facts, and run that row again. If outcome is needs_input (only when the call sent on_missing_input: "ask"), no email came back. Put each question in ask to the user, add the answers as facts, and run that row again. If the result's context shows 0 or 1 facts, say the email is generic because the context is thin. If ok is false, give the reason and change nothing. Never run the same context again unchanged: it returns the same result.
Step 6: Next steps
Ask the user which result they want to use. Then offer one of these:
- More rows. For more than 10, use the campaign cookbook. It runs a whole list with an API key.
- Before every send. Use the optimize before you send cookbook.
- Evaluate claims. Connect a CRM or call recorder in the console. After the first sync, add
"evidence": "workspace"to evaluate every claim against the customers' own conversations.
Full reference: Optimize a message.