-
Notifications
You must be signed in to change notification settings - Fork 0
/
AiPediatricsTester.html
80 lines (76 loc) · 2.39 KB
/
AiPediatricsTester.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<title>Warda</title>
<style>
.vapi-btn {
margin: 0px !important;
position: absolute !important;
left: 50vw !important;
top: 50vh !important;
transform: translate(-50%, -50%) !important;
animation: none !important;
width: 80vw !important;
height: 20vw !important;
padding: 0px !important;
}
#vapi-icon-container {
margin: 3vw !important;
}
#vapi-icon-container img {
width: 10vw !important;
}
#vapi-title-container {
font-size: 3.4vw !important;
}
#vapi-subtitle {
color: rgb(0, 30, 95) !important;
font-size: 0.9em !important;
}
</style>
</head>
<body>
<script>
var vapiInstance = null;
const assistant = "4fdc76fb-4b57-4742-8753-85473dfba032";
const apiKey = "1ef7ca5e-9f52-4203-86c6-544de63a4c85";
const buttonConfig = {
position: "bottom",
width: "50px",
height: "50px",
idle: {
color: `rgb(93, 254, 202)`,
type: "pill",
title: "Want to practice for the MRCPCH clinical exam?",
subtitle: "Talk to Warda the AI examiner",
icon: `https://unpkg.com/[email protected]/icons/phone.svg`,
},
loading: {
color: `rgb(93, 124, 202)`,
type: "round",
icon: `https://unpkg.com/[email protected]/icons/loader-2.svg`,
},
active: {
color: `rgb(200, 0, 50)`,
type: "round",
icon: `https://unpkg.com/[email protected]/icons/phone-off.svg`,
},
};
(function (d, t) {
var g = document.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = "https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js";
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g, s);
g.onload = function () {
vapiInstance = window.vapiSDK.run({
apiKey: apiKey,
assistant: assistant,
config: buttonConfig,
});
};
})(document, "script");
</script>
</body>
</html>