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:
- Choose the space the team’s bots live in.
- Paste your OpenAI API key under AI provider. One key covers the whole team.
- 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>:
<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:
| Attribute | Default | What it does |
|---|---|---|
data-team | required | Your team’s public key |
data-position | the team’s corner | Override the corner for this page, such as bottom-right |
data-expanded | false | Start with names and status lines visible |
data-user-token | none | Identify a signed-in user of your app |
Next steps
- Concepts — leads, specialists, sections and what the shelf’s states mean.
- Script options and SPA mounting — control where and when the shelf loads.
- Identify signed-in users — let users’ conversations follow them across devices.
- Lead & delegation — how the lead decides which teammate to ask.
- Security — what the public key can and can’t do, and how visitors are kept apart.