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
Where value of assistant can be your assistant ID (Dashboard > Assistants > Select your assistant > Copy the id) or assistant config like below example.
40
45
41
46
```js
42
47
constassistant= {
@@ -54,6 +59,42 @@ const assistant = {
54
59
};
55
60
```
56
61
62
+
You can also customise the look and feel of your Vapi Support Button using the following configurations.
63
+
The button will have 3 states, `idle`, `loading` and `active`.
You can customize the assistant by modifying the `assistant` object. The `apiKey` should be replaced with your unique key provided by Vapi.
@@ -63,9 +104,12 @@ You can customize the assistant by modifying the `assistant` object. The `apiKey
63
104
The SDK exposes several CSS classes that can be targeted for custom styling. Here is a list of the classes you can customize:
64
105
65
106
-`.vapi-btn`: The main class for the Vapi button.
107
+
-`.vapi-btn-is-idle`: The class for the Vapi button when the call is disconnected.
66
108
-`.vapi-btn-is-active`: The class for the Vapi button when the call is active.
67
109
-`.vapi-btn-is-loading`: The class for the Vapi button when the call is connecting.
68
110
-`.vapi-btn-is-speaking`: The class for the Vapi button when the bot is speaking.
111
+
-`.vapi-btn-pill`: The class for Vapi button to set pill variant.
112
+
-`.vapi-btn-round`: The class for Vapi button to set round variant.
69
113
70
114
You can add custom styles to these classes to match the look and feel of your website. These are exposed in case u need some more customisations besides the `position`, `color` and `offset` config available currently.
0 commit comments