5 min read

Quickstart

Put a working AI team on your web app in three steps — create a team, allow your domain, and paste one script tag.

TeamShelf adds a shelf of AI teammates to the side of any web app. You configure the team in the portal, then load it on your site with a single <script> tag. You’ll need a TeamShelf account and an OpenAI API key.

Create a team

Open the portal at app.teamshelf.ai/portal/ and create a team. Then, in the team’s Setup tab:

  1. Choose the space the team’s bots live in.
  2. Paste your OpenAI API key under AI provider. One key covers the whole team.
  3. Pick a primary bot — the lead that takes most requests — and apply the coordinator instructions.

Add the rest of the team under Bots & sections. Give each bot a name, a one-line role (“how other bots see it”), instructions, a model and an effort level.

Allow your domain, then embed

The widget only runs on sites you allow. Under Setup → Embed, add your app’s origin to Allowed origins — for example https://app.example.com, with no path. See Allowed origins for the rules.

Then copy the snippet from the same card and paste it anywhere before </body>:

HTML
<script src="https://app.teamshelf.ai/embed.js" data-team="ts_yxT2lwZi7337" async></script>

data-team is your team’s public key. It’s safe to ship in your HTML — the allowed-origins list decides which sites may use it.

Reload and say hello

Reload your page. The shelf appears on the left edge, floating over your app. Click the lead, ask anything, and watch the specialists light up as work is delegated:

  • A blue dot means a bot is working.
  • Amber means it needs your answer, or its last run failed.
  • Green means it has a reply you haven’t read yet.

Every visitor gets their own conversations with the team. Open your site in a private window and you’ll start fresh, as a new visitor.

The script takes a few optional attributes:

AttributeDefaultWhat it does
data-teamrequiredYour team’s public key
data-positionthe team’s cornerOverride the corner for this page, such as bottom-right
data-expandedfalseStart with names and status lines visible
data-user-tokennoneIdentify a signed-in user of your app

Next steps