Introduction
Add a docs chat to your app in two pieces:
- A server you run:
createServer(ornpx sideagent) gives you a dashboard to create agents, add knowledge (markdown and URLs), pick a model and read audit logs, plus the endpoints the chat talks to and the sign-in for the dashboard. - A React component:
<AgentChat publishableKey="pk_…" />. The key names the agent and the server that runs it, so there is nothing else to configure.
npm i sideagent
- Quickstart: from nothing to a chat in your app.
- Server:
createServer, its options, sign-in, database and the dashboard. - Client: the
AgentChatcomponent and docked sidebar. - Knowledge: what the agent answers from.
- Self-hosting, Deployments, Cloudflare Workers.
- Theming, History, Hooks.