Skip to content

Commit cb2c76c

Browse files
final changes
1 parent 51a2ee6 commit cb2c76c

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

assistants/assistant.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,7 @@ export const assistant: CreateAssistantDTO | any = {
9494
},
9595
firstMessage:
9696
"Hi. I'm Paula, Welcome to Broadway Shows! How are u feeling today?",
97-
serverUrl: "https://08ae-202-43-120-244.ngrok-free.app/api/webhook",
97+
serverUrl: process.env.NEXT_PUBLIC_SERVER_URL
98+
? process.env.NEXT_PUBLIC_SERVER_URL
99+
: "https://08ae-202-43-120-244.ngrok-free.app/api/webhook",
98100
};

components/app/assistantButton.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ const AssistantButton = ({
2222
boxShadow: `1px 1px ${10 + audioLevel * 40}px ${
2323
audioLevel * 10
2424
}px ${color}`,
25+
backgroundColor:
26+
callStatus === CALL_STATUS.ACTIVE
27+
? "red"
28+
: callStatus === CALL_STATUS.LOADING
29+
? "orange"
30+
: "green",
2531
cursor: "pointer",
2632
};
2733

example.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
VITE_VAPI_WEB_TOKEN=
1+
VITE_VAPI_WEB_TOKEN=
2+
NEXT_PUBLIC_SERVER_URL=

styles/globals.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4+
5+
.btn-active {
6+
@apply bg-red-500 hover:bg-red-700;
7+
}
8+
9+
.btn-loading {
10+
@apply bg-orange-500 hover:bg-orange-700;
11+
}
12+
.btn-idle {
13+
@apply bg-green-500 hover:bg-green-700;
14+
}

0 commit comments

Comments
 (0)