AI

AI

Summaries, drafts and sorting, and what runs them.

On this page
  1. ai status
  2. ai source
  3. ai key set
  4. ai key remove
  5. ai key check
  6. ai models
  7. ai models set
  8. ai summarize
  9. ai replies
  10. ai draft
  11. ai triage
  12. ai safe
  13. ai search
  14. ai explain
  15. ai report

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.

In the API: POST /v1/ai.status

Usage
mailset ai status
Example
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).

Admin or owner

Flags

  • <source>argumentrequired

    mailset: Mailset’s key. own: the org’s own key. off: no AI.

Returns

With --json it prints the AI settings object.

In the API: POST /v1/ai.source

Usage
mailset ai source <source> [--org <id>]
Example
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.

Admin or ownerPasskey

Flags

  • <provider>argumentrequired

    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.

In the API: POST /v1/ai.key.set

Usage
mailset ai key set <provider> [--org <id>]
Example
mailset ai key set anthropic

mailset ai key remove

Remove the org’s own AI key.

Admin or ownerPasskey

Flags

  • <provider>argumentoptional

    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.

In the API: POST /v1/ai.key.remove

Usage
mailset ai key remove [<provider>] [--org <id>]
Example
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.

Admin or owner

Flags

  • <provider>argumentoptional

    Whose key it is: anthropic.

    Default anthropic.

Returns

With --json it prints the AI settings object.

In the API: POST /v1/ai.key.check

Usage
mailset ai key check [<provider>] [--org <id>]
Example
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.

Admin or owner

Returns

With --json it prints the AI settings object.

In the API: POST /v1/ai.models

Usage
mailset ai models [--org <id>]
Example
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).

Admin or owner

Flags

  • <feature>argumentrequired

    The feature: sorting, phishing, summaries, replies, drafts, followups, ask or chat.

  • --model<model>required

    The model’s id, from ai models, or default for Mailset’s pick.

Returns

With --json it prints the AI settings object.

In the API: POST /v1/ai.models.set

Usage
mailset ai models set <feature> --model <model> [--org <id>]
Example
mailset ai models set summaries --model claude-haiku-5-5

mailset ai summarize

Summarize a conversation.

Flags

  • <id>argumentrequired

    The conversation’s id.

Returns

With --json it prints what the API returns.

In the API: POST /v1/ai.summarize

Usage
mailset ai summarize <id>
Example
mailset ai summarize t_5d2c8a1f9e3b47c6a0d1e2f3

mailset ai replies

Suggest short replies to a conversation. Nothing is sent.

Flags

  • <id>argumentrequired

    The conversation’s id.

Returns

With --json it prints what the API returns.

In the API: POST /v1/ai.replies

Usage
mailset ai replies <id>
Example
mailset ai replies t_5d2c8a1f9e3b47c6a0d1e2f3

mailset ai draft

Write a draft reply to a conversation. Nothing is sent.

Flags

  • <id>argumentrequired

    The conversation’s id.

  • --instructions<instructions>optional

    What you want the reply to do, in your own words.

Returns

With --json it prints what the API returns.

In the API: POST /v1/ai.draft

Usage
mailset ai draft <id> [--instructions <instructions>]
Example
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

  • <id>argumentrequired

    The conversation’s id.

Returns

With --json it prints what the API returns.

In the API: POST /v1/ai.triage

Usage
mailset ai triage <id>
Example
mailset ai triage t_5d2c8a1f9e3b47c6a0d1e2f3

mailset ai safe

Take a phishing warning off a conversation.

Flags

  • <id>argumentrequired

    The conversation’s id.

Returns

With --json it prints what the API returns.

In the API: POST /v1/ai.safe

Usage
mailset ai safe <id>
Example
mailset ai safe t_5d2c8a1f9e3b47c6a0d1e2f3

mailset ai explain

Say why a conversation is in its tab.

Flags

  • <id>argumentrequired

    The conversation’s id.

Returns

With --json it prints what the API returns.

In the API: POST /v1/ai.explain

Usage
mailset ai explain <id>
Example
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.

In the API: POST /v1/ai.report

Usage
mailset ai report
Example
mailset ai report