Web Call
Learn to make a web call to your assistant
Overview
You can use Vapi anywhere you run client-side JavaScript. This includes plain JavaScript, React, Next.js, and other web frameworks.
This guide shows you how to make a web call to your Vapi assistant. You can create an assistant using the web SDK or the Vapi dashboard.
See the full next.js demo here on v0. To try it live and make edits, follow these steps:
- Fork the app in v0
- Go to settings —> environment variables
- Create a new environment variable called
NEXT_PUBLIC_VAPI_API_KEY
- Add your public api key from the dashboard!
Installation
Get started
Using the SDK
In the dashboard
Create an assistant
Create an assistant object.
focus
Parameters:
name
sets the display name for the assistant (internal use)firstMessage
is the first message the assistant saystranscriber
selects the speech-to-text provider and modelvoice
selects the text-to-speech provider and voicemodel
sets the LLM provider, model, and system prompt