@ourguide-ai/agent) loads a headless agent runtime in your end user’s browser tab. An Argide agent can then drive that tab — clicking, filling forms, navigating — to complete a goal your own chatbot delegates to it.
Where the chat widget gives you a complete, Argide-owned chat UI, the Agent SDK ships no UI at all. Your product keeps its own assistant; Argide takes over only when a conversation turns into something that must be done in the app rather than answered.
How it works
- The SDK mints a session.
init()runs in the tab and receives{ sessionId, pairingCode }. - Your server claims it. The browser forwards the pair to your backend, which exchanges it for a claim using your
ak_live_...API key. Until then, the session can’t run tasks. - Your chatbot delegates a goal.
do({ goal })hands the agent a job and resolves with ataskIdas soon as the task exists. - The agent drives the tab. Clicking, filling forms, navigating — in the user’s own session, right in front of them.
- You read the outcome.
check({ taskId })returns the authoritative{ status, summary }.
Security model
- The browser never holds your API key. The
ak_live_...key lives on your server; the tab only ever sees a single-use pairing code. - Unclaimed sessions can’t act. Tasks are refused until your server has claimed the session.
- A pairing code is exchanged once. Re-claiming an already-claimed session returns
409 ALREADY_CLAIMED— reserved as the signal that a stolen code is being replayed.
Integration requirements
- Package access. The SDK is a restricted package on GitHub Packages, so you need an access grant and an authenticated token before you can install it — see Installation.
- Client-side tool execution. Your stack must be able to execute tools in the browser.
Get started
Installation
Get package access and configure your token
Quickstart
Initialize, claim, and run your first task
