Checking your session

Workbench

From idea to AI-powered application.

Build, customize, and integrate intelligent experiences, all in one place.

Chat Starter

A small, readable chat app that runs on your computer and talks to Aivana MMI through the Node.js SDK.

What it shows

  • Answers that stream in as they are written
  • Formatted answers: Markdown, code and tables, with a Copy button
  • Stop, Retry and Regenerate
  • Effort, answer length and web search settings
  • An optional Agent Kit Blueprint, loaded from a file (read-only)
Download starter ZIPView source code (opens GitHub in a new tab)

Built on the Node.js SDK 0.8.0

Illustration with sample content

Run it

Before you start: Node.js 20.6 or newer, with npm. An Aivana API key with credit available.

Unzip the download, then in its folder:

  1. node setup.mjs

    Creates a private .env file. Open it and paste your API key.

  2. npm ci

    Installs the starter’s dependencies.

  3. npm run doctor

    Checks your setup. It makes no paid request.

  4. npm start

    Starts the app. Open http://127.0.0.1:3006 in your browser.

npm run doctor checks your setup and makes no paid request. Sending a message, Retry and Regenerate each make a new request that uses credit.

Then open http://127.0.0.1:3006.

Keep your key on the server

The starter reads your API key from a local .env file and uses it only in its own server, never in the browser. Do not commit that file or paste the key into a web page. You can create a key on the API Keys page.

What to know

  • Conversation history is kept in your browser only; closing the tab clears it.
  • A Blueprint is read from the exported file. Its system instructions are not sent to the browser, and the starter does not import your Playground prompt or settings.
  • It is an example to learn from and build on, not a hosted service.

If something goes wrong

The API key is missing or rejected
Open the .env file in the starter’s folder, paste a current key, then run npm run doctor. Keys are managed on the API Keys page.
You are out of credit
Requests are refused until credit is added. See Billing, then try again.
You are sending too fast
Wait a moment and send again. The Rate Limits guide explains how limits work.
An answer stops partway
It stays on screen marked Interrupted. Retry sends a new request, which uses credit.
Port 3006 is already in use
Stop the other program using it, then run npm start again.
Setup fails on your computer
It needs Node.js 20.6 or newer. It was checked on macOS, Windows and Linux with Node.js 20, 22 and 24.

Errors and limits are covered in the guides: Errors & Retries, Rate Limits, API Keys and Billing.