Platform

Website call widget

Put a Talk to us button on your website. A visitor clicks it and talks to one of your voice agents straight from the browser: no phone number, no app, no sign-in. Every call becomes a lead with what the agent learned. It is the third channel an agent can take calls on, after phone numbers and WhatsApp.

Set it up

  1. Open Voice agents → Website widget and choose New widget, or open an agent and go to Build → Channels → Website. A new widget starts paused.
  2. Agent: pick the agent that answers. No agent yet? Create a starter agent makes a lead-capture agent for your business name (it asks who is calling, what they need, and their email and phone). It never changes an existing agent.
  3. Appearance: button label, colour, position (bottom right, bottom left or inline), your business and assistant names, the intro text, captions and a recording notice. The preview follows your changes.
  4. Access: list every website address the button may appear on, such as https://www.example.com. The button is not shown, and the call screen will not open, on any other site.
  5. Limits: longest call (1 to 30 minutes, default 5), calls at once (1 to 20, default 3) and a monthly spending cap in rupees (default ₹1,000).
  6. Install: copy the snippet into your site, just before </body>, then choose Save and go live. If something stops it going live (no website listed, paused agent, empty wallet), the reason is shown.
html
<script async src="https://api.inferexai.in/embed/v1/widget.js"
        data-inferex-widget="pw_your_public_id"></script>

The snippet contains only the widget's public id. No API key or agent setting is ever placed on your page. Open a test call in the portal tries the widget even while it is paused; test calls are marked as tests and send no lead webhook.

What visitors experience

  • The button sits on your page without affecting its styles. Clicking it opens a small call panel that says they are speaking with an AI assistant.
  • The browser asks once for the microphone. The call connects in a second or two and the agent speaks first, if it is set to.
  • Live captions show both sides. Visitors can mute, minimise the panel and keep browsing, or end the call. Closing the page ends the call.
  • If the microphone is blocked, the page is not secure (https), or the network refuses the call, the panel says so plainly and offers to try again.
  • Calls travel over the browser's real-time audio connection, which holds up on mobile networks, and fall back automatically on networks that block it.

Leads

Each call creates one lead, listed under Website widget → Leads: when, how long, the outcome, a short summary, the details the agent captured (such as name, email, phone and need), whether the visitor asked to be followed up, and the page they called from with any UTM tags. Captured details are extracted by AI from the conversation; confirm them before you rely on them. The full transcript and recording are in the agent's Calls, with the channel web.

Subscribe a webhook to lead.created to send leads to your CRM. It is sent once per call, never for test calls:

JSON
{
  "type": "lead.created",
  "data": {
    "lead_id": 42,
    "widget_id": "wg_8c1d2e3f4a5b",
    "agent_id": "va_3f2a9c1b7d5e4f608a12",
    "call_id": "e15b8332-…",
    "outcome": "qualified",
    "summary": "CTO wants inbound and outbound sales calls in Hindi and English, about 10,000 users.",
    "captured": {"name": "Chirag", "email": "chirag@example.com", "phone": "+919876543210", "timeline": "this month"},
    "captured_by": "ai_extraction",
    "follow_up": "mentioned_yes",
    "attribution": {"path": "/pricing", "utm_source": "newsletter"},
    "duration_s": 164
  }
}

API

EndpointWhat it does
GET /v1/widgetsYour widgets, with setup problems, the embed snippet, and this month’s calls and spend.
POST /v1/widgetsA new widget, paused: name, agent_id, optional allowed_origins, appearance, max_call_s, max_concurrent, month_budget_inr, contact_url.
PATCH /v1/widgets/{id}Change any setting. {"status": "active"} goes live only when nothing blocks it; paused stops new calls.
DELETE /v1/widgets/{id}Remove it. The button stops working at once.
POST /v1/widgets/starter-agent{"business_name": "…"}: a new lead-capture agent.
GET /v1/widgets/leadsLeads, newest first. ?widget_id= for one widget, ?include_tests=true to include test calls.
bash
curl -X POST https://api.inferexai.in/v1/widgets \
  -H "Authorization: Bearer sk-live-your-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Main website",
    "agent_id": "va_3f2a9c1b7d5e4f608a12",
    "allowed_origins": ["https://www.example.com", "https://example.com"],
    "appearance": {"button_label": "Talk to us", "business_name": "Example Ltd"},
    "max_call_s": 300,
    "max_concurrent": 3,
    "month_budget_inr": 1000
  }'
bash
curl -X PATCH https://api.inferexai.in/v1/widgets/wg_8c1d2e3f4a5b \
  -H "Authorization: Bearer sk-live-your-key-here" \
  -H "Content-Type: application/json" \
  -d '{"status": "active"}'

Safety and spending

  • Only the websites you list can show the button, and the browser itself refuses to open the call screen inside any other site.
  • Every call needs a fresh, single-use pass issued to a page we served, so a copied link or script cannot start calls on its own.
  • Calls are limited per visitor address (6 in 10 minutes) and per widget (120 an hour), besides your calls-at-once limit, longest call and monthly cap. When a limit is reached, the button says calls are busy and offers your contact link, if you set one.
  • Calls are charged like any agent call, from your wallet. There is no separate widget fee.
  • The widget sets no cookies. Only the page path and UTM tags are kept; nothing from the visitor's page reaches the agent's instructions, and every call starts with a fresh caller reference, so no visitor hears another's details.
The InferexAI website uses this widget for its own Talk to us button. See also Webhooks, Phone numbers and WhatsApp calls.