You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Vapi Example for Serverless Vercel
1
+
# Vapi Example for Cloudflare Worker
2
2
3
-
Welcome to the Vapi Serverless Vercel sample project. This project demonstrates how you can extend the functionalities of Vapi, an abstraction layer for your personal assistant, to create a unique experience tailored for story writers. Using this project, writers can design characters for their stories through voice interactions with the assistant.
3
+
Welcome to the Vapi Cloudflare worker sample project. This project demonstrates how you can extend the functionalities of Vapi, an abstraction layer for your personal assistant, to create a unique experience tailored for story writers. Using this project, writers can design characters for their stories through voice interactions with the assistant.
4
4
5
5
## Project Overview
6
6
@@ -24,19 +24,19 @@ To get started with this project:
24
24
25
25
1. Clone the repository to your local machine.
26
26
2. Install the dependencies by running `pnpm install`.
27
-
3. Setup Vercel using `vercel`command from the root directory. Install vercel cli if you don't have it using `npm i -g vercel`.
27
+
3. Setup wrangler by creating `wrangler.toml` by command `cp wrangler.example.toml wrangler.toml` in the root directory. Install wrangler cli if you don't have it using `npm i -g wrangler`.
28
28
4. You can start the project locally using command `pnpm start`
29
-
5. You can deploy the project to vercel using command `pnpm deploy:prod`
29
+
5. You can deploy the project to cloudflare worker using command `pnpm deploy:prod`
30
30
31
31
#### Configuration
32
32
33
-
1.create a .env file in your repository using the command `cp example.env .env`
34
-
2. Get ur `OPENAI_API_KEY` from openai and update the `.env` file.
35
-
3. From Vapi dashboard, you can get your Vapi Private key from **Dashboard > Accounts > Vapi Keys > Api Key** and update `.env` file
33
+
1.Create `wrangler.toml` by command `cp wrangler.example.toml wrangler.toml` in the root directory.
34
+
2. Get ur `OPENAI_API_KEY` from openai and update the `wrangler.toml` file.
35
+
3. From Vapi dashboard, you can get your Vapi Private key from **Dashboard > Accounts > Vapi Keys > Api Key** and update `wrangler.toml` file
36
36
4. Get ServerURL
37
37
38
38
1. Using Ngrok: Start the project locally using `pnpm start` and then use ngrok to get the url.
39
-
2. Using Vercel: Deploy functions to vercel using `pnpm deploy:prod` and get URL from the Vercel.
39
+
2. Using Cloudflare Worker: Deploy to cloudflare using `pnpm deploy:prod` and get URL from the cloudflare.
40
40
41
41
The serverURL to be configured in the **Dashboard > Accounts > Settings** is `https://<domain>/api/webhook` This has all the messages placeholder. You can also try `https://<domain>/api/functions/basic` or `https://<domain>/api/rag`
0 commit comments