Add AI voice conversations to your website with one script tag
Generate a developer key from the Developer Portal. This key will be used to authenticate API requests.
Keep your developer key secure! Never expose it in client-side code.
Create a server endpoint that fetches temporary API keys. The aiId parameter will be passed automatically from your button.
// example for express.js
app.get('/webVoxKey', async (req, res) => {
// IMPORTANT: Authenticate the user first to protect your webVox credits!
// if (!req.session.user) return res.status(401).json({ error: 'Unauthorized' });
const aiId = new URL(req.url).searchParams.get("aiId");
const response = await fetch(
`https://webvoxai.com/api?aiId=${aiId}`,
{
method: "POST",
headers: {
authorization: "Bearer YOUR_WEBVOX_DEVELOPER_KEY",
},
}
);
const json = await response.json();
res.json({ apiKey: json.token });
});Critical: Add authentication and rate-limiting to protect your webVox quota. Without this, anyone can use your credits!
💡 The aiId is automatically extracted
from the button's data-ai-id attribute
and passed as a query parameter.
Include the webVox embed script in your HTML. Set the data-endpoint to your API endpoint path:
loading...This script automatically detects the webVox button on your page and handles widget creation.
Create a button with data-webvox="true" and your AI's UUID in data-ai-id:
loading...💡 Find your AI's UUID in your AI configurations page. Each AI config has a unique UUID.
data-webvox="true"data-ai-id UUID
from the button/webVoxKey?aiId={uuid}AI can understand your page content when embedded:
AI can guide users through your site:
Safe and secure by design:
Natural voice interactions:
| Attribute | Required | Example | Description |
|---|---|---|---|
| data-webvox | Yes | "true" | Enables webVox functionality on the button |
| data-ai-id | Yes | 550e8400-e29b... | Your AI agent's UUID - find it in your AI configurations page |
| Attribute | Required | Example | Description |
|---|---|---|---|
| data-endpoint | Yes | webVoxKey | The path to your API endpoint (receives aiId as query param) |
Join our Discord community to get help from the team and other users with integration issues and questions.
Manage your API keys, monitor usage, and access advanced configuration options.
Open Portal