AI
Summaries, drafts and sorting, and what runs them.
On this page
mailset ai status
Show what runs AI in each of your orgs, anything that stopped it, and this month’s AI credit.
Returns
With --json it prints what the API returns.
mailset ai status
mailset ai status
mailset ai source
Run the org’s AI on Mailset’s key (mailset), its own key (own), or not at all (off).
Flags
mailset: Mailset’s key.own: the org’s own key.off: no AI.
Returns
With --json it prints the AI settings object.
mailset ai source <source> [--org <id>]
mailset ai source own
mailset ai key set
Check and keep the org’s own AI key, and run its AI on it. The CLI reads the key from stdin or a hidden prompt.
Flags
Whose key it is:
anthropic.
It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.
Returns
With --json it prints the AI settings object.
mailset ai key set <provider> [--org <id>]
mailset ai key set anthropic
mailset ai key remove
Remove the org’s own AI key.
Flags
Whose key it is:
anthropic.Default
anthropic.
It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.
Returns
With --json it prints the AI settings object.
mailset ai key remove [<provider>] [--org <id>]
mailset ai key remove anthropic
mailset ai key check
Try the org’s own AI key again: one that works resumes its AI, one that doesn’t pauses it.
Flags
Whose key it is:
anthropic.Default
anthropic.
Returns
With --json it prints the AI settings object.
mailset ai key check [<provider>] [--org <id>]
mailset ai key check anthropic
mailset ai models
Show the model each AI feature uses, a month of each at your volume, and this month’s credit.
Returns
With --json it prints the AI settings object.
mailset ai models [--org <id>]
mailset ai models
mailset ai models set
Pick the model one AI feature uses on the org’s own key (--model default goes back to Mailset’s pick).
Flags
The feature:
sorting,phishing,summaries,replies,drafts,followups,askorchat.The model’s id, from
ai models, ordefaultfor Mailset’s pick.
Returns
With --json it prints the AI settings object.
mailset ai models set <feature> --model <model> [--org <id>]
mailset ai models set summaries --model claude-haiku-5-5
mailset ai summarize
Summarize a conversation.
Flags
The conversation’s id.
Returns
With --json it prints what the API returns.
mailset ai summarize <id>
mailset ai summarize t_5d2c8a1f9e3b47c6a0d1e2f3
mailset ai replies
Suggest short replies to a conversation. Nothing is sent.
Flags
The conversation’s id.
Returns
With --json it prints what the API returns.
mailset ai replies <id>
mailset ai replies t_5d2c8a1f9e3b47c6a0d1e2f3
mailset ai draft
Write a draft reply to a conversation. Nothing is sent.
Flags
The conversation’s id.
What you want the reply to do, in your own words.
Returns
With --json it prints what the API returns.
mailset ai draft <id> [--instructions <instructions>]
mailset ai draft t_5d2c8a1f9e3b47c6a0d1e2f3 --instructions "Say yes, and ask to move it to Thursday"
mailset ai triage
Sort a conversation and check it for phishing, now.
Flags
The conversation’s id.
Returns
With --json it prints what the API returns.
mailset ai triage <id>
mailset ai triage t_5d2c8a1f9e3b47c6a0d1e2f3
mailset ai safe
Take a phishing warning off a conversation.
Flags
The conversation’s id.
Returns
With --json it prints what the API returns.
mailset ai safe <id>
mailset ai safe t_5d2c8a1f9e3b47c6a0d1e2f3
mailset ai search
Turn a question into search operators.
Flags
What you’re looking for, in your own words. Up to 500 characters.
Returns
With --json it prints what the API returns.
mailset ai search <question>
mailset ai search "invoices from Stripe since March"
mailset ai explain
Say why a conversation is in its tab.
Flags
The conversation’s id.
Returns
With --json it prints what the API returns.
mailset ai explain <id>
mailset ai explain t_5d2c8a1f9e3b47c6a0d1e2f3
mailset ai report
Show what sorted your mail and how much reached a model.
Returns
With --json it prints what the API returns.
mailset ai report
mailset ai report