// cookbook

Examples.

Each of these is one screen long and does one real thing. Copy it, change the key, watch it work. Then read the notes underneath, which are where the parameters that bite you are written down.

Frontend chatbot with Client Tokens

A working chat widget on your marketing site, with no backend and no API key in the browser.

chatclient-tokenscustomers

Streaming chat completion

Text appearing as it is generated, cancellable mid-answer, with the token count you were actually billed for.

chat

Per-customer budgets

A hard ceiling per customer, so one runaway loop costs you the cap and not the weekend.

customerswebhooks

Webhook delivery + retries

A webhook endpoint that survives retries, forged payloads and your own handler crashing halfway through.

webhooks

Embeddings + RAG search (BYO index)

Semantic search over your own Postgres, when you want the index on your side of the wire.

embeddings

A self-learning agent with Brains

An agent that remembers what a customer told it three weeks ago, without you building a memory layer.

brainsmemorycustomers

file_search with citations (managed RAG)

Answers grounded in your PDFs, each claim linked back to the file and page it came from.

vector-storesassistantsrag

Assistants with tools

An agent that calls your functions, with the run state machine and the iteration cap handled for you.

assistantsthreadsruns

Overnight batch classifications

A million classifications run overnight at half the sync rate, while nothing waits on them.

batchesfiles

Migrate from OpenAI in 3 lines

Your existing OpenAI code, running on Ringside, in the time it takes to redeploy.

chaterrors

AI-driven CRM automation

Inbound email triaged and deal stages updated before anyone opens the inbox in the morning.

assistantsthreadsrunswebhookscustomers