CaptionAmerica
01/03/2025, 7:34 AMVapi
01/03/2025, 7:34 AMsh
yarn add @vapi-ai/web
Or if you're using npm, you can install it like this:
sh
npm install @vapi-ai/web
After installation, you'll need to import the package into your project:
javascript
import Vapi from "@vapi-ai/web";
Then, create a new instance of the Vapi class, passing your Public Key as a parameter to the constructor:
javascript
const vapi = new Vapi("your-public-key");
You can find your public key in the Vapi Dashboard.
Once you have your instance, you can start using Vapi by calling the .start() method:
javascript
vapi.start();
This will initialize the Vapi service on your website. If you need more detailed documentation or have any specific questions, please let me know, and I'll be glad to help further!CaptionAmerica
01/03/2025, 7:35 AMShubham Bajaj
01/03/2025, 8:58 AM