Skip to main content
Two complete, copy-pasteable starting points. Pick whichever matches your stack.

Next.js (App Router)

Works out of the box on Vercel. Set BOLNA_API_KEY and BOLNA_AGENT_ID as environment variables and deploy.
app/api/bolna-session/route.js
app/components/BolnaCallButton.jsx
usage

Plain HTML + Node

No build step, no framework. Two files, no package.json needed. Run BOLNA_API_KEY=bn-… BOLNA_AGENT_ID=… node server.mjs, then open index.html.
server.mjs
index.html

Next steps

SDK API reference

Take calls in the browser