Deploy an AI avatar on your website in under 10 minutes. Create the avatar, upload knowledge, and embed the widget.
1
Create Avatar
Define personality, voice, appearance, and default persona through the API.
2
Upload Knowledge
Ingest product docs, FAQs, case studies, and competitive battle cards into the knowledge base.
3
Deploy Widget
Add one script tag to your site. The avatar is live and ready to engage visitors.
// npm install v100-sdk
import { V100 } from 'v100-sdk';
const v100 = new V100('YOUR_API_KEY');
// Step 1: Create an AI avatar agent
const avatar = await v100.avatars.create({
name: 'Alex',
role: 'Sales Engineer',
voice: 'professional-male-1',
language: 'en',
personality: {
tone: 'friendly-professional',
greeting: 'Hi! I\'m Alex, a sales engineer. How can I help?',
fallback: 'Great question. Let me connect you with a specialist.'
},
personas: {
technical: { focus: ['architecture', 'APIs', 'benchmarks'] },
executive: { focus: ['ROI', 'strategy', 'competitive'] },
smb: { focus: ['pricing', 'simplicity', 'quick-start'] }
},
escalation: {
triggers: ['pricing_negotiation', 'human_request', 'knowledge_gap'],
routeTo: 'sales-team@yourco.com',
preserveContext: true
}
});
// Step 2: Upload knowledge base
await v100.avatars.knowledge.upload(avatar.id, {
sources: [
{ type: 'url', url: 'https://docs.yourco.com', crawlDepth: 3 },
{ type: 'pdf', path: './product-datasheet.pdf' },
{ type: 'faq', url: 'https://yourco.com/faq.json' }
],
autoSync: { enabled: true, interval: 'daily' }
});
// Step 3: Get widget embed code
const widget = await v100.avatars.deploy(avatar.id, {
type: 'widget',
position: 'bottom-right',
theme: { primaryColor: '#4F46E5', borderRadius: '16px' },
crm: { provider: 'salesforce', connectionId: 'crm_xxx' },
calendar: { provider: 'google', teamId: 'sales-east' }
});
// widget.embedCode → <script src="https://cdn.v100.ai/avatar/xxx.js"></script>