Thank you! Your feedback helps us improve.
✕

Work with custom agents in Docs

Add an agent to a doc, ask it to work, and review the results.

Agents in Docs are AI agents from Superhuman Go that you can add to a doc the way you’d add a collaborator. This article explains how to add an agent to a doc, ask it to work, and see which agents are working.

Feature availability

  • Superhuman Pro & Business: Paid seats (Doc Makers) can create custom agents, edit them, and add them to docs.
  • Docs-only Pro & Team: Paid seats (Doc Makers) can create custom agents, edit them, and add them to docs.
  • Custom agents in Docs are not yet available for Enterprise customers.

 


About agents in Docs

Agents in Docs are custom agents built in Superhuman Go, Superhuman's AI assistant. A custom agent can start in Docs, such as when someone mentions it in a comment or a row is added to a table. It can also start somewhere else, such as Slack, and then work in a doc. It can act as you (the agent's creator) or as itself. While it works, you and your collaborators see it in the doc like any other teammate.

To learn how to build one, see Build agents that work in Superhuman Docs. To learn more about Go agents beyond Docs, see Explore Superhuman Go agents and connectors.

Note: With Go, you can also build proactive writing agents that work inline as you type in Docs. These proactive agents work differently from the agents in this article. They aren’t shown as collaborators in the doc, and your teammates don’t see them working. To learn how to build one, refer to Create and configure agents with the agent builder.

 

Add an agent to a doc

In order to work in your docs, a custom agent needs access to Superhuman Docs - and to the specific docs where it will be used.

When you build the custom agent, you can give it broad access to workspace-wide docs. This means that the agent can access any doc that is accessible to all workspace members. Alternatively, you can choose to give the agent access to only selected docs. When you choose this latter option, you will need to explicitly share each doc where you want the agent to work.

Share a doc with an agent

Note: You need to have “Full access” to an agent in order to invite it to a doc. To learn more about sharing agents with teammates, see Share and publish your agent.

Sharing a doc with an agent gives it access to that doc. You use the same dialog you use for sharing with people.

To share a doc with an agent:

  1. In your doc, click Share in the upper-right corner.

  2. Type the name of your agent and select it from the list.

  3. Choose the agent's access level in the doc. See Share your doc for an explanation of the different access levels.

  4. Click Invite.

invite Go agent to a doc.gif

If you don't see the agent in the list of options, make sure to check the following:

 

Mention an agent

Mention an agent the same way you'd mention a collaborator. You can mention it in a comment or in the body of the doc.

Anyone with access to the doc can mention an agent that's already been added, unless the agent's creator has limited who can mention it.

To mention an agent:

  1. Within a comment or within the body of the doc, type @ followed by the name of the agent.

  2. Select the agent from the list.

  3. If the agent doesn’t yet have access to the doc, you will see a popup prompting you to grant access. Use the dropdown to choose the access level for the agent (Can view, Can comment, or Can edit), then click Invite agent.

  4. Continue writing your request for the agent.

at mention agent and invite to doc.gif

If you mention the agent again in the same thread, it continues the same run. If someone else mentions it, it starts a new run.

Tip: You can also create a button that triggers the agent when pushed. Within the button settings, just select Trigger agent in the On click field. To learn more about buttons, check out Buttons in Superhuman Docs.

 

Review an agent’s work in Docs

While an agent is working in a doc, you'll see it alongside people at the top of the doc. Click the agent to jump to the spot where it's working.

Every edit an agent makes appears in the doc's version history, attributed to the agent and the person who authorized it. Open version history to see what changed. To undo a change, copy the content you want back from an earlier version of the doc. For general steps, see View and copy doc history.

 

FAQs

Do I need to invite the agent to every doc where I want it to work?

It depends on your agent’s access settings. If the agent has Can view or Can edit access to your workspace, you don’t need to share docs that anyone in the workspace can access. You do need to share docs that are limited to specific people, and every doc if you chose Selected docs. If you @mention an agent in a doc it can’t access yet, Docs prompts you to share the doc with it. For details, see Build agents that work in Superhuman Docs.

Why can’t I add an agent to a doc?

Adding an agent to a doc requires Full access to the agent. Use the agent lets you @mention an agent that’s already in a doc, but not add it. Ask the agent’s creator to give you Full access, or to add the agent to the doc for you.

If I add a custom agent to a doc, will everyone else in the doc be able to see and use the agent?

Yes, in most cases. Anyone who can see people in the doc sees the agent at the top of the doc while it works, and anyone with access to the doc can @mention it, unless its creator has limited who can. Free users can @mention an agent that’s already in a doc, but they can’t add agents to docs.

Does an agent have to start in Docs to work in a doc?

No. An agent can start in Docs, such as when someone mentions it in a comment or a row is added to a table. It can also start somewhere else, such as Slack, and then take action in a doc, such as adding a row. Either way, it shows up at the top of the doc while it works, and its changes appear in version history.

How does pricing for custom agents work?

During the open beta, paid Doc Makers can create and use unlimited custom agents. Free users and Editors can’t create custom agents, but they can @mention agents that are already in a doc.

What happens to an agent if the person who created it leaves the workspace?

If you created an agent and shared it with others, the agent stays in the workspace as long as at least one other person has Full access to it. If no one else has Full access when you leave, the agent is removed.

 


Related resources

Was this article helpful?

Tell us what you think. We promise to act on your feedback to make Grammarly's support pages even more helpful.
Have more questions? Submit a request