Documentation

Everything you need to integrate Vantyx.

Quickstart

  1. Sign up at vantyx.ai
  2. Create your first AI agent
  3. Upload your knowledge base (PDF, URL, or paste text)
  4. Copy your embed snippet
  5. Paste on your website — done

Authentication

All API requests require an API key. Your key looks like:

sx_live_xxxxxxxxxxxx

Include it in the Authorization header:

Authorization: Bearer sx_live_xxxxxxxxxxxx

Rate limits: Starter — 100 req/day · Pro — 10,000 req/day · Business — Unlimited

Widget Setup

Basic embed — one script tag:

<!-- Basic embed -->
<script src="https://vantyx.ai/widget.js"
  data-agent-id="YOUR_AGENT_ID">
</script>

Advanced configuration:

<!-- Advanced -->
<script>
  Vantyx.init({
    agentId: 'YOUR_AGENT_ID',
    position: 'bottom-right',
    primaryColor: '#ffffff',
    greeting: 'Hi! How can I help?'
  });
</script>

API Reference

Base URL: https://api.vantyx.ai/v1

MethodEndpointDescription
GET/api/agentsList all agents
POST/api/agentsCreate agent
GET/api/conversationsList conversations
POST/api/widget/connection-detailsGet LiveKit token

Webhooks

Events you can subscribe to:

conversation.startedconversation.endedescalation.createdmessage.receivedbilling.updated

Example payload:

{
  "event": "escalation.created",
  "timestamp": "2026-02-26T23:00:00Z",
  "data": {
    "conversationId": "conv_xxx",
    "agentId": "agent_xxx",
    "reason": "payment_issue"
  }
}

Agent Config

Full configuration fields reference:

FieldTypeRequiredDescription
namestringYesAgent display name
descriptionstringNoBrief description of the agent
systemPromptstringYesSystem prompt / personality
tonestringNoprofessional | friendly | technical
avatarStylestringNomale | female | neutral
voicestringNoVoice ID for TTS
modelstringNoLLM model (default: gpt-4o)
temperaturenumberNo0-1 creativity (default: 0.7)
maxTokensnumberNoMax response tokens
languagestringNoPrimary language
greetingstringNoInitial greeting message
widgetColorstringNoWidget accent color
widgetPositionstringNobottom-right | bottom-left
isActivebooleanNoEnable/disable agent