Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cdialai-0073e50a.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

This guide shows you how to make a web call to your Indigenius agent.
You can create an assistant using either:
  • The Web SDK
  • The Indigenius Dashboard
For apps built with Next.js (v0):
  • Go to Settings → Environment Variables
  • Create a new variable called:
    NEXT_PUBLIC_INDIGENIUS_AGENT_ID
    
  • Add your Agent ID from the dashboard.

Installation

Install the SDK with your preferred package manager:
npm install indigenius-ai-widget
Or use the official CDN:
copy
<script src="https://cdn.jsdelivr.net/npm/indigenius-ai-widget/dist/index.js"></script>

Quick Start

copy
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Web Call Demo</title>
  </head>
  <body>
    <h1>Web Call Demo (Tag Only)</h1>

    {/* Widget tag only */}
    <indigenius-convai agent-id="YOUR_AGENT_ID"></indigenius-convai>

    {/* SDK script */}
    <script src="https://cdn.jsdelivr.net/npm/indigenius-ai-widget/dist/index.js"></script>
  </body>
</html>

Widget Options

OptionTypeRequiredDefaultDescription
agentIdstring✅ YesUnique Agent ID for your AI agent
mountUIboolean❌ NofalseAuto-mount floating UI if true, manual control if false

Available Events

EventPayloadDescription
dialingvoidFired when connecting to the AI agent
connectedvoidFired when connection established
endedvoidFired when call ends
errorErrorFired on internal widget error

Tip

✅ Use mountUI: true for quick integration.
✅ Use mountUI: false for custom UI.
✅ Listen to events for granular call control.