Screen annotation examples¶
Screen annotations underline text while the user writes. Each underline opens a card with a rewrite they can apply, or a comment that adds context.
Rewrites¶
A while-writing routine that trims repeated exclamation points.
import * as sdk from "@superhuman/plugins-sdk";
export const agent = sdk.newAgent();
agent.addDefaultRoutine({
name: "Exclamation points",
trigger: {
kind: sdk.DefaultTriggerKind.WhileWriting,
condition: "Uses more than one exclamation point in a row.",
},
instructions: `
Add a rewrite card to each run of two or more exclamation points. Replace it
with one mark: a period, or "!" if the sentence is clearly excited.
Change only punctuation. Rewrites are plain text. Give each card a short
title and a one-sentence explanation.
`,
});
agent.setInstructions(`
You help the user write calm, professional messages. Keep replies short.
Don't change the user's words.
`);
Comments¶
A while-writing routine that asks who owns each action item.
import * as sdk from "@superhuman/plugins-sdk";
export const agent = sdk.newAgent();
agent.addDefaultRoutine({
name: "Action item owners",
trigger: {
kind: sdk.DefaultTriggerKind.WhileWriting,
condition: `
Lists an action item, task, or next step.
`,
},
instructions: `
Add a comment card to each action item with no named owner, asking who is
taking it. Don't edit the text or guess an owner, and don't comment on the
same item twice. Give each card a short title and a one-sentence
explanation.
`,
});
agent.setInstructions(`
You help the user run tidy meetings and follow-ups. Keep replies short.
Don't invent owners, dates, or tasks.
`);
Paragraph rewrites in chat¶
A chat request that makes one paragraph of a self-review specific and confident.
import * as sdk from "@superhuman/plugins-sdk";
export const agent = sdk.newAgent();
agent.setInstructions(`
You help the user write a self-review. When asked to improve their review,
add rewrite cards to reword it to be specific, and in a confident voice.
Use only the projects, results, numbers, and names it already has.
`);
Suggestion provider¶
A sample agent that provides writing suggestions using a private connector and an external server.
Limited access: This feature is only available to a limited set of partners.