Skip to content

Private Beta

Building, testing, and publishing agents are only available to a limited set of developers at this time.
The following documentation provides an early preview of the SDK, and the specifics are subject to change.

Build your first agent in 5 minutes

You can build an agent for Superhuman Go in only a few minutes, without leaving your browser. This quick tutorial walks you through building, deploying, and testing your agent end-to-end.

Before you begin

Before you can start coding, there are a few things you need:

Grammarly Account

If you don’t already have one, sign up for a free account here: grammarly.com/signup

Individual accounts only

At the moment, you can only use agents with individual Grammarly accounts. If you have an account on a team plan (Pro or Enterprise), it won’t be compatible. As a workaround, select another email address and create a new Grammarly account on the Free plan.

Coda account

If you don't already have one, sign up for a free account here: coda.io/signup

Ensure the emails match

Please ensure that you use the same email address to sign up for both Coda and Grammarly. The email address is the key being used to link both accounts.

Grammarly for Chrome

Install it from the Chrome web store. Once installed, click on the Grammarly icon in the extension toolbar and enable the option Use Superhuman Go.

Google Chrome only

Although other browsers support Chrome extensions (Arc, Opera, etc), only Google Chrome is supported at this time.

Create the agent

  1. Visit https://pack.new to open the Pack Studio web editor and create a new Pack.
  2. Select the option Start with an empty Pack.
  3. Replace the initial code with the following:

    import * as coda from "@codahq/packs-sdk";
    
    export const pack = coda.newPack();
    
    pack.addSkill({
      name: "SecretPassword",
      displayName: "Secret password",
      description: "Tells the user the secret password.",
      prompt: `
        When the user asks for the secret password, tell them it's "foobar".
      `,
      tools: [],
    });
    
  4. Click the Build button to compile and upload the Pack.

  5. When prompted to Create a test doc, dismiss the dialog with the X icon in the upper right.
  6. Click on the name of the Pack in the upper left, and rename it to “Secret”.

Install the agent

  1. Open any website (textarea.org is great for testing agents).
  2. Slide your mouse to the right of the page, and click the Superhuman Go icon that slides out.
  3. Click the + icon labeled More agents.
  4. In the search box, type Secret, look for the matching agent with you listed as the author, and click on the tile.
  5. Click the Add agent button at the bottom.

The agent should be added to your bench and selected, with a puzzle piece icon extension-outline Created with Sketch. and the label Secret.

Test the agent

  1. In the chat box, type:

    Who are you?
    

    It should respond saying that it is the “Secret agent”.

  2. Reply with the message:

    What is the password?
    

    It should respond with “foobar”.

Next steps

The agent you just built was pretty simple, but agents can do so much more. Explore the full set of features using the resources below:

  • Try some of the Example agents to explore what else you can build.
  • Read the documentation on Skills, Tools, and Context to learn more about the capabilities of the platform.