ConversAI DocsIntroductionOverview

DOCUMENTATION

Welcome to the ConversAI Labs documentation.

Introduction

Introduction to ConversAI Labs

ConversAI Labs is a comprehensive platform designed to build, test, deploy, and monitor human-like AI phone agents. Whether you're handling inbound customer service calls, automating outbound lead generation, or scheduling appointments, you describe what the agent should do, the AI builds the conversation, and you connect your own phone numbers and get transcripts, recordings and extracted fields back.

ConversAI Labs Platform

Platform Capabilities

Ultra-Low Latency Conversational AI

Agents that respond in milliseconds, making interactions feel natural and indistinguishable from a human.

Complete Customization

Choose the voice and language, change the conversation by chat, and add knowledge base documents, extraction fields and webhooks.

Built-in Analytics & History

Instantly monitor agent performance. Review full call transcripts, listen to audio recordings, and see the credits each call used.

Developer First API

Integrate ConversAI into your own software using our robust REST API to manage agents, leads, and initiate automated calls programmatically.

Next Steps

Ready to start building? We recommend exploring these sections first:

Quickstart

Go from sign-up to a first real call. Most of the work happens in conversation: you describe what you want, and the AI does the editing.

You need:

  • a ConversAI Labs account at dashboard.conversailabs.com. New users can continue with Google and complete their profile.
  • Claude or ChatGPT on a plan that allows custom connectors (optional, for step 1)
  • for real phone calls: a phone number connected to your account (see Telephony)

1. Connect your AI assistant (MCP)

Connect our MCP server so Claude or ChatGPT can look up your agents, calls and leads.

  1. In the dashboard, open Developers → AI assistants (MCP) and copy the Server address: https://api.conversailabs.com/mcp/
  2. Add it as a custom connector named ConversAI: in Claude, Settings → Connectors → Add custom connector; in ChatGPT, Settings → Apps & Connectors → Create with OAuth.
  3. Sign in to ConversAI when asked, pick your company and click Approve.
  4. In a chat, turn on the ConversAI connector and ask: "Which agents do I have?"

Your assistant can look things up, explain what happened on a call, and build, test, publish and call by chat. Anything that uses credits or changes what callers hear is shown to you first and only runs after you agree. Details: MCP server.

2. Build an agent by chat

  1. In the dashboard, open Campaigns → + New campaign.
  2. Fill in Let's set up your agent: agent name, company name, what the agent should achieve, what it should know about your business, voice, language, and how customers reach it (Outbound, Inbound or Web VoiceBot). Agent name and call type can't be changed later.
  3. The AI drafts a conversation flow. In the chat on the right (Describe a change to the flow…), ask for changes in plain words, for example "If the customer says they already paid, thank them and end the call." Each change can be undone.

Building the agent and each AI edit use credits, charged only when they succeed (a daily limit applies; see Errors and limits).

3. Test it

  1. Click Test agent in Agent Studio, then Browser Test, and talk to your agent through your microphone. This tests your unsaved changes without publishing them.
  2. For repeatable checks, open More → Automated test cases and run test calls between a tester bot and your agent.
  3. When you're happy, click Publish. Only the published version takes real calls.

Test calls and simulated test calls use credits at the same rate as real calls. See Billing and credits.

4. Connect a phone number

Open Telephony → Your provider, connect your Vobiz or TryVox account, import your numbers and assign one to your agent. Using another provider? Email connect@conversailabs.com. See Telephony.

5. Add credits

Sign up with your work email; personal addresses such as Gmail or Outlook aren't accepted. To add credits, click the plan card at the bottom of the dashboard sidebar, open Top-up Credits and click Buy credits. See Billing and credits.

6. Make your first call

  • Outbound: go to Leads → Add Lead (or Import CSV), pick your agent and add your own number first. The agent calls within its calling hours.
  • Inbound: call the number you assigned to the agent.
  • From your code: create an API key under Developers → API Keys, then add a lead with the API. If the lead is eligible, the call is placed automatically:
# Keep the key on your server, in an environment variable. Never put it in browser code or Git.
curl --fail-with-body -X POST \
  "https://api.conversailabs.com/api/v1/leads/" \
  -H "X-API-Key: $CONVERSAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "<agent-id>", "first_name": "Asha", "phone_e164": "+919876543210"}'

This request can start a real call that uses credits. Use a number you control and have permission to call. Check call_scheduled and message in the response to see what happened.

Then ask your assistant: "Show my last call: transcript, outcome and extracted fields." Or open Call History in the dashboard, and set up webhooks to send results to your systems.

MCP server

Our MCP (Model Context Protocol) server lets Claude, ChatGPT, Claude Code, Cursor and other MCP clients work with your ConversAI agents by chat: look up agents, calls and leads, explain what happened on a call, and build, test, publish and run agents. Ask in plain language: "Why did calls fail yesterday?" or "Build an agent that confirms tomorrow's appointments, test it and show me the results."

  • Server address: https://api.conversailabs.com/mcp/ (also shown, with a copy button, under Developers → AI assistants (MCP) in the dashboard)
  • Transport: Streamable HTTP
  • Sign-in: OAuth (Claude, ChatGPT, Claude Code) or an API key sent as a bearer token (Cursor and other clients without OAuth)
  • Access: limited to the one company you approve
  • Already connected on the old …run.app/mcp/ address? It keeps working; you don't need to reconnect.

Who can connect

Only the company owner and members with the Admin role can approve a connection. If the approval page says "You cannot connect this company", ask the company owner to change your role under Team Members.

Connect Claude

  1. Open Settings → Connectors and choose Add custom connector.
  2. Name it ConversAI and paste the server address.
  3. Click Connect, sign in to ConversAI if asked, pick your company and click Approve.
  4. In a chat, turn on the ConversAI connector and ask a question.

Connect ChatGPT

  1. Open Settings → Apps & Connectors. Depending on your plan, custom connectors may need Developer mode under Advanced settings.
  2. Choose Create, name it ConversAI, paste the server address and pick OAuth.
  3. Sign in to ConversAI, pick your company and click Approve.
  4. In a new chat, add the ConversAI connector and ask a question.

Connect Claude Code

claude mcp add --transport http conversai https://api.conversailabs.com/mcp/

Start Claude Code, type /mcp, choose conversai and Authenticate, and approve in the browser.

Connect Cursor (API key)

  1. Create a key under Developers → API Keys named for this use (for example cursor-mcp), so you can revoke it on its own.
  2. Put it in an environment variable named CONVERSAI_MCP_TOKEN. Never commit it to a file.
  3. Add this to .cursor/mcp.json and restart Cursor:
{
  "mcpServers": {
    "conversai": {
      "url": "https://api.conversailabs.com/mcp/",
      "headers": { "Authorization": "Bearer ${env:CONVERSAI_MCP_TOKEN}" }
    }
  }
}

An API key works only for the company it was created in. Use OAuth sign-in where your app supports it. The MCP server accepts the key only as Authorization: Bearer <key>, not as X-API-Key.

Look things up

Tool What it does
list_agents Lists the agents in the company you approved.
list_calls Lists calls, newest first. Filter by agent, lead, status or outcome.
explain_call What happened on one call, in plain language: whether it connected, the conversation, lookups that ran and whether the goal was met.
why_are_calls_failing Failure patterns over the last 1 to 30 days for one agent or the whole company.
get_call_debug One call: status, outcome, failure reason, transcript and the lead.
get_call_trace One call in order: what the caller and the bot said, and which lookups ran.
get_call_failure_summary Counts of calls by status, outcome and failure reason over the last N days.
get_agent_stats Per-agent totals over the last N days: calls, completed, failed, answered, answer rate, average duration.
get_lead One lead by ID or exact phone number (E.164): status, attempts, schedule and recent calls.
get_call_queue Per agent: open leads, how many are due now or soon, the calling window and the next leads due.
campaign_status Progress of a campaign started by chat, or the latest ones.
get_balance Your credit balance, credits held by running calls and approximate minutes left.
list_phone_numbers Your phone numbers and the agent each one is connected to.
list_voices Voices an agent can use. Filter by language and gender.

Build, test and run

Tool What it does
build_agent Builds a new agent from a plain-language goal. The result is a draft.
edit_agent Changes an agent from a plain-language instruction. Makes a new draft; live calls don't change.
get_operation Status and result of a build or edit.
test_agent / get_test_results Runs test calls between a tester bot and your draft, then shows pass or fail per case.
publish_agent / rollback_agent Makes the draft live, or makes an earlier version live again.
set_voice Sets the agent's voice. Takes effect on the next call.
call_me The live agent calls a phone number you give it.
start_campaign / pause_campaign Calls a list of contacts with a live agent, or pauses and resumes it.
manage_kb Lists knowledge bases, adds or removes documents, attaches a knowledge base to an agent.
set_extraction_fields Sets the fields pulled out of every call.
set_webhook Creates, updates or disables a webhook endpoint.
assign_number Connects a phone number to an agent.
connect_telephony Returns the dashboard link to connect your Vobiz or TryVox account. Never paste telephony credentials into a chat.

Two-step confirmation. Anything that uses credits or changes what callers hear (test calls, publish, rollback, calls, campaigns, voice, numbers, knowledge base, extraction fields, webhooks) runs in two steps. Your assistant first shows a preview with the estimated credits, and only does it after you agree.

Credits. Building and editing an agent use credits only when they succeed. Test calls and real calls are billed per connected minute. Lookups are free. See Billing and credits.

Drafts. Build and edit only make drafts. Callers hear the published version until you publish.

Some tools are for the ConversAI team. If your assistant tries one, it gets "Platform staff only" or "Not available for this account".

Resources

Resource What it holds
agent://{agent_id}/configuration The agent's settings and current version. The flow and prompt are not included.
agent://{agent_id}/versions Version history metadata, without prompt or flow bodies.
agent://{agent_id}/behaviour-guide A plain-language guide to how the live agent handles callers: what it answers, what it refers elsewhere and what it never says. up_to_date says whether it matches the live version.

Example prompts

  • How many calls did each agent get this week, and what was the answer rate?
  • Why did yesterday's calls fail?
  • What did the caller ask on the last call, and what did the bot answer?
  • Add a step that offers a callback if the customer is busy, test it, and publish if the tests pass.
  • Call me on +91… with the live agent.

What it can't do

  • Show your agent's internal flow and prompt. Ask how the bot behaves instead; answers come from its behaviour guide.
  • Take telephony credentials. Connect your provider in the dashboard (connect_telephony gives the link).
  • See other companies than the one you approved.

Privacy

  • Phone numbers are masked. API keys, prompts and other secrets are never returned.
  • Test calls made from the dashboard are left out of call lookups.
  • Transcripts you look up are shared with the app you connect, under that app's data policy.

Revoke access

Developers → AI assistants (MCP) → Connected apps lists the apps you signed in. Revoke ends access right away. For an API-key connection, delete the key under Developers → API Keys.

Troubleshooting

Problem What to do
"You cannot connect this company" You need the Admin role in that company. Ask the owner to change it under Team Members.
Your company isn't in the list You're not an admin of it. Sign in with the account that is.
"Not found or not accessible" The call, lead or agent belongs to a company you didn't approve, or the ID is wrong.
A call you made from the dashboard is missing Test calls are left out on purpose.
Build, test or publish tools are refused Your connection was approved before these tools existed. Revoke it and connect again.
The connection stopped working It was revoked, your role changed, or it wasn't used for 30 days. Connect again.

Concepts

Agents

An agent is one AI voice assistant with a goal, a voice, a language and a conversation flow. In the dashboard, agents are listed under Campaigns. A campaign is a list of leads run through an agent.

  • Call type, picked when you create the agent and fixed after that:
    • Outbound: the agent calls your leads.
    • Inbound: customers call the agent's number.
    • Web VoiceBot: customers talk to the agent in a browser (use Embed Code from the agent's menu).
  • Create with Campaigns → + New campaign. The setup form asks what the agent should achieve and what it should know about your business; the AI drafts the first flow from that.
  • Agent ID: use Copy campaign ID in the agent's menu, or list agents with the API. The API and MCP tools take this ID.
  • Voice: pick one in the voice list when you create or edit the agent. Each voice is marked Premium or Standard; calls are charged at the same rate either way.

Flows and steps

The agent's conversation flow is a set of steps: greeting, questions, answers to objections, closing. On each turn the agent works within one step and moves to another when the conversation calls for it.

  • Edit the flow by describing changes in the Agent Studio chat (Describe a change to the flow…), or through the MCP server. You see the steps and how they connect, not the flow's internal definition.
  • Each AI change can be undone (Undo this change).
  • AI builds and edits use credits only when they succeed. A daily limit per company also applies (see Errors and limits).

Versions, publish and rollback

  • Draft: saving creates a draft. Drafts don't take calls. The toolbar shows Draft saved · Unpublished changes.
  • Publish: makes the current flow live for real calls. The toolbar shows Published and Live vN.
  • Test before you publish: Test agent runs your unsaved changes without publishing.
  • Rollback: More → Version history, pick a version, Confirm Rollback. Rolling back to a full version makes it live immediately. Restoring a draft revision (for example v4.2) only reopens it in the editor; the live version doesn't change until you publish.

Ask your assistant through MCP: "Which version of my agent is live?"

Knowledge base

A knowledge base holds documents the agent can look up during a call: product details, FAQs, policies.

  • Knowledge Base → Create Knowledge Base → Upload Document.
  • Files: PDF, DOCX, TXT, MD or CSV, up to 20 MB each.
  • Attach it to an agent in Agent Studio: Add Function → Knowledge Base → Select Knowledge Base.

Extraction fields

Extraction fields are data points the agent pulls out of each conversation, for example callback_day, email or loan_amount.

  • Set them in Agent Studio under Extraction Fields: a Field Name and a Description of what to capture.
  • A field is filled only if the customer mentioned it; otherwise it is empty (null).
  • Results appear in Call History (as columns, in the export and under Extracted Information on a call), in ai_insights from call history in the API, and in ai_analysis.user_extraction_fields in the call.analysed webhook.

Leads

A lead is a person an outbound agent should call: first name, phone number and any custom fields your flow uses (for example loan_amount).

  • Add leads with Leads → Import CSV (first_name and phone required; other columns become custom fields), Add Lead, or the API.
  • List name groups leads, for example by campaign or upload. A CSV's list name defaults to the file name.
  • Lead statuses: New, In Progress, Done, Stopped, Rescheduled.
  • Follow-up calls: an agent can call a lead again on set days (for example day 0, 1 and 3) within its calling hours, up to a maximum number of attempts.

Workflows

A workflow gives an outbound agent one goal (for example "Pay the registration fee") and moves each lead through four states: New → Qualified → Won, or Lost. Workflows are free; only connected calls use credits.

  • Open Workflow Setup from the agent's menu and click Set up workflow.
  • For New and Qualified you set a contact plan: how many tries, the gap between tries, calling hours (Call from / Call until, in the lead's time) and optional WhatsApp messages.
  • Leads move on their own: interested → Qualified, goal confirmed → Won, not interested or out of tries → Lost.
  • The same conversation handles both states: on each call the agent knows the lead's state and what was said on earlier calls.
  • Save, then Publish this journey.

Sales and support campaigns

Some campaigns open as one page with tabs:

  • Sales campaigns: Leads, Follow-ups (the goal and the contact plan for New and Qualified), Conversation and Calls. Setting 0 calls for Qualified leaves qualified leads for your team instead of marking them Lost.
  • Support campaigns (for example inbound customer support): Calls and Conversation only. There is no goal, no lead states and no follow-ups.

Test runs

  • Test call: Test agent (in Agent Studio) or Test Call (in Campaigns) opens Browser Test and Phone Test.
  • Automated test cases: More → Automated test cases. Each case is a simulated voice call between a tester bot and your agent on a fixed flow version, graded by an AI judge. Add cases by hand, Import CSV, or generate them, then Run all tests.
  • Test calls and simulated test minutes use credits at the same rate as real calls. See Billing and credits.
  • Browser test calls from the dashboard don't trigger your webhooks.

Getting Started

Environment Setup

Quick Start

Set these environment variables before making API calls

Base URL

https://api.conversailabs.com/api/v1

API Key

your-api-key-here

Example .env

.env
Shell

CONVERSAI_API_KEY="your-api-key-here"

CONVERSAI_BASE_URL="https://api.conversailabs.com/api/v1"

Authentication

API Key Authentication

All API requests must be authenticated using an API key. The API key should be included in the request header.

X-API-Key: <your-api-key>

Getting Your API Key

You can generate and manage your API keys from your account settings.

View API Key Settings

Using the dashboard

The dashboard at dashboard.conversailabs.com has Dashboard, Campaigns, Leads, Call History, Telephony, Knowledge Base and Developers in the sidebar. Account pages (Profile, Team Members, Support, Credit Top-Ups, Invoices) open from your name at the bottom of the sidebar.

Create an agent

  1. Open Campaigns → + New campaign.
  2. Fill in Let's set up your agent: agent name, company name, what the agent should achieve, what it should know about your business, voice, language, and how customers reach it (Outbound, Inbound or Web VoiceBot). Agent name and call type can't be changed later.
  3. The AI drafts the conversation flow. Ask for changes in the chat (Describe a change to the flow…).
  4. Click Test agent to try it, then Publish.

More: Quickstart, Agents, Flows and steps.

Knowledge base

  1. Open Knowledge Base → Create Knowledge Base, then Upload Document (PDF, DOCX, TXT, MD or CSV, up to 20 MB each).
  2. Attach it to an agent in Agent Studio: Add Function → Knowledge Base → Select Knowledge Base.

During a call the agent looks up the passages that match the caller's question and answers from them. Keep documents short and factual, and update them when your prices or policies change.

Leads

  • Add Lead: pick the agent, then enter first name, phone number and any custom fields your flow uses.
  • Import CSV: bulk upload for one agent (see below).
  • Statuses: New, In Progress, Done, Stopped, Rescheduled. Workflow states (New, Qualified, Won, Lost) are shown separately; see Workflows.

CSV format

  • Required columns: first_name and phone. Any other column is stored as a custom field.
  • Phone numbers: without the country code is preferred (for example 9876543210); pick the country code in the import window. +919876543210 also works. Each number can appear once per list.
  • Values that contain commas must be in double quotes, for example "Home Number, Society Name".
  • Optional schedule_at: DD-MM-YYYY HH:MM or DD/MM/YYYY HH:MM. Without it, eligible leads are called shortly after the import.
  • Calls only go out in the agent's calling hours and between 09:30 and 20:00 in the lead's local time.

Call History

  • Filter by Campaign and Outcome, or search leads, agents and summaries.
  • Each row shows the lead, phone, date, duration, call status, outcome, key points, next actions and the fields extracted by AI. Export CSV downloads the list.
  • More Details opens the call: recording, transcript, conversation summary and Extracted Information.
  • The same data is available from the API (call history), webhooks and the MCP server.

Your account

  • Profile: your name and your company details. Add your GSTIN to the Company Profile to have it printed on invoices.
  • Team Members: Add Member with a name, email and role. Only the owner and Admin members can connect AI assistants (MCP).
  • Support: links to these docs and to email support at connect@conversailabs.com.
  • Credit Top-Ups and Invoices: see Billing and credits.

API keys

  1. Open Developers → API Keys and click Generate Key.
  2. Name it after where it will be used (for example crm-sync) and click Create Key.
  3. Copy the key right away and store it in a secret manager or environment variable. It is shown in full only once.

Delete a key from its row menu when you no longer need it; anything using it stops working at once. Send the key as X-API-Key (see Authentication).

Webhook settings

Developers → Webhooks holds the company webhook: endpoint URL, events, an optional key and a switch to pause delivery. An agent's own webhook, set in Agent Studio, takes priority for that agent's calls. Payloads, retries and security: Webhooks.

Telephony

ConversAI Labs works over your own telephony account. You keep the account, the numbers and the phone bill with your provider; we connect to it to place and answer calls. Your provider bills you for call minutes and numbers; ConversAI credits cover the AI side of the call.

How it works

  1. Open an account with the provider, complete their KYC, buy a number and add balance there.
  2. In the dashboard: Telephony → Your provider, choose the provider and paste your Auth ID and token.
  3. We check the credentials and list the numbers on your account. Import numbers brings them in and points them at ConversAI, so you don't set any answer URL yourself.
  4. Assign a number to an agent. Outbound calls use it as the caller ID; inbound calls to it reach that agent.

Vobiz

  1. In your Vobiz account: complete KYC, buy one or more numbers, add balance, and find your Auth ID and Auth token in the Vobiz console.
  2. In the ConversAI dashboard, open Telephony → Your provider and choose Vobiz.
  3. Paste your Auth ID and Auth token. We check them with Vobiz before saving.
  4. Click Import numbers, then assign a number to an agent under Telephony → Phone numbers.

Disconnecting stops calls on the imported numbers. The numbers stay in your Vobiz account.

TryVox

  1. In your TryVox account: complete KYC, buy one or more numbers, add balance, and find your API credentials (Auth ID and token) in the TryVox dashboard.
  2. In the ConversAI dashboard, open Telephony → Your provider and choose TryVox.
  3. Paste your Auth ID and token. We check them with TryVox before saving.
  4. Click Import numbers, then assign a number to an agent under Telephony → Phone numbers.

Check it works

  • Inbound agent: call the number from your phone.
  • Outbound agent: add yourself as a lead (Leads → Add Lead) and wait for the call.
  • Ask your AI assistant: "Show the last call on my agent and why it failed, if it did."

Other providers

Using a different carrier, or your own SIP trunk? Email connect@conversailabs.com with the provider name and what you need (inbound, outbound or both). We'll tell you whether we can connect it.

Calling rules in India

You're responsible for calling consented numbers, respecting DND preferences and keeping to permitted calling hours. Set the agent's calling hours to match.

Billing & Credits

How calls are charged

  • You pay only for connected minutes. The per-minute rate covers the AI and the platform: speech recognition, the AI model, the voice, transcripts, recordings and post-call analysis. There are no separate charges per component.
  • Pricing is custom for your volume. Your rate is set for your account; talk to sales for a quote.
  • Billed in 30-second steps, rounded up to the next step.
  • Unanswered, busy and failed calls are free. Only connected call time uses credits.
  • Workflows are free. Creating, running and testing a workflow doesn't use credits; only the connected calls it makes do.
  • Test calls (Browser Test, Phone Test) and simulated test minutes (automated test cases) use credits at the same rate as real calls.
  • AI agent building and editing use credits only when the build or edit succeeds, and the cost is shown before it runs.
  • Telephony is separate. Your provider (Vobiz, TryVox) bills you directly for the phone line and numbers. See Telephony.

Buying credits

Credits are bought from Top-up Credits in the dashboard. Prices shown there exclude GST, which is added at checkout for customers in India. Customers outside India pay no GST.

  • Payment is through PhonePe. A GST tax invoice is issued for every purchase. Company admins can download it as a PDF from Invoices in the account menu (your name at the bottom of the sidebar). Add your GSTIN in your Company Profile to have it printed on the invoice.
  • Your current balance and the validity of your credits are shown in the dashboard.

What uses credits

Activity Uses credits?
Connected calls (inbound and outbound) Yes, per connected minute
Unanswered, busy or failed calls No
Test calls and simulated test minutes Yes, same as real calls
Workflows No, workflows are free
Building an agent with AI Yes, only when it succeeds
AI chat edits to your flow Yes, only when an edit succeeds
MCP lookups from Claude or ChatGPT No
API requests No (calls they start are charged as calls)

When your balance runs out

New calls don't start, including test calls and scheduled follow-ups, until you add credits. Calls already in progress finish normally.

Seeing what you spent

Pricing, monthly plans and enterprise

For pricing, monthly plans, high volumes, committed spend or invoice billing, book a demo or talk to us at connect@conversailabs.com.

Webhooks

Webhooks POST call results to your server as soon as they're ready, so you don't have to poll the API. Manage them in the dashboard (see Webhook settings) or with the webhook settings API.

Set up

  1. Open Developers → Webhooks in the dashboard.
  2. Enter your endpoint URL (up to 500 characters). Use HTTPS in production.
  3. Pick the events to receive.
  4. Optional: add a key. We send it in the X-API-Key header on every delivery so your endpoint can reject other callers.
  5. Save. Enable company webhook delivery pauses or resumes delivery without deleting the setup.

Per-agent webhooks: an agent can have its own webhook URL, set in Agent Studio. It takes priority over the company webhook for that agent: only the agent's URL receives its events. Agent webhooks receive all call events and are sent without the X-API-Key header.

Events

Event When
call.analysed An answered call has ended and its AI analysis is ready. Includes the transcript, recording link, extracted fields and credits used.
call.failed A call couldn't be completed, for example not answered or not connected.

Request

POST <your URL>
Content-Type: application/json
User-Agent: VoiceAI-Webhook/1.0
X-API-Key: <your key, if set>

call.analysed payload

{
  "event": "call.analysed",
  "timestamp": "2026-10-27T09:15:42.120000+00:00",
  "company_id": "6f1c2b9e-1111-4c1f-85dc-4fa4557c4c60",
  "call_direction": "outbound",
  "call_id": "0b7d6a35-2222-4f2e-9a51-7c1d2e3f4a5b",
  "lead_id": "a1b2c3d4-3333-4e5f-8a9b-0c1d2e3f4a5b",
  "agent_id": "b3c0da56-f7d0-4c1f-85dc-4fa4557c4c60",
  "agent_name": "Loan follow-up",
  "phone_number": "+919876543210",
  "lead_name": "Asha",
  "duration_seconds": 94,
  "credits_consumed": 10,
  "status": "completed",
  "outcome": "answered",
  "recording_url": "https://storage.googleapis.com/...",
  "transcript": "...",
  "ai_analysis": {
    "key_points": ["Interested in a top-up loan", "Asked for a callback on Friday"],
    "next_action_items": ["Call back on Friday afternoon"],
    "user_extraction_fields": { "loan_amount": "200000", "callback_day": "Friday" }
  }
}
  • user_extraction_fields holds your agent's extraction fields.
  • recording_url is a signed link that works for about 7 days. Download the recording if you need to keep it.
  • If the analysis fails, the ai_analysis fields are null, and analysis_status is "failed" with an analysis_error message.

call.failed payload

{
  "event": "call.failed",
  "timestamp": "2026-10-27T09:15:42.120000+00:00",
  "company_id": "6f1c2b9e-1111-4c1f-85dc-4fa4557c4c60",
  "call_direction": "outbound",
  "call_id": "0b7d6a35-2222-4f2e-9a51-7c1d2e3f4a5b",
  "lead_id": "a1b2c3d4-3333-4e5f-8a9b-0c1d2e3f4a5b",
  "agent_id": "b3c0da56-f7d0-4c1f-85dc-4fa4557c4c60",
  "agent_name": "Loan follow-up",
  "phone_number": "+919876543210",
  "lead_name": "Asha",
  "status": "failed",
  "failure_reason": "no_answer",
  "error_message": null
}

call_direction is outbound or inbound. On inbound calls with no lead, lead_id may not be a valid UUID: match on call_id instead.

Delivery and retries

  • Return any 2xx status to confirm delivery. We wait up to 30 seconds for your response.
  • On a network error, a timeout, 429 or 5xx, we try again: up to 3 attempts in total, about 1 second and then 5 seconds apart.
  • Other 4xx responses are not retried.
  • Deliveries can arrive more than once. Use call_id + event to ignore duplicates.
  • Respond quickly and do slow work after you've returned 2xx.

Securing your endpoint

  • Set a key in Developers → Webhooks and check the X-API-Key header on every request.
  • Use HTTPS.
  • Treat transcript and recording_url as personal data.

Browser test calls made from the dashboard don't send webhooks. To check your endpoint, use Send test webhook in the API reference.

Errors & limits

Error format

Errors return a standard HTTP status and a JSON body with detail:

{ "detail": "Agent not found" }

Validation errors (422) list each problem:

{
  "detail": [
    { "loc": ["body", "phone_e164"], "msg": "Field required", "type": "missing" }
  ]
}

Status codes

Status Meaning What to do
200 Success. Check the body: Add lead can return 200 with call_scheduled: false (see below).
400 Bad input: an invalid ID, phone number or time, or custom fields your agent needs are missing. Fix the request. detail says what is wrong.
401 Missing or invalid API key, for example Invalid API key provided in X-API-Key header. Send a valid key. See Authentication.
404 The agent, lead or call doesn't exist or isn't in your company. Check the ID.
409 The request conflicts with the lead's current state. Read detail, then fetch the lead and retry if it still applies.
422 The body doesn't match the schema. See detail.
429 Too many requests. Retry with exponential backoff.
500 Something failed on our side. Retry later; if it persists, email connect@conversailabs.com with the time and endpoint.

When a lead is saved but no call starts

Add lead saves the lead first. If no call starts right away, it still returns 200 with lead_created: true. Check call_scheduled, call_queued and message:

  • The agent has follow-up days or calling hours, so the lead is queued and called in its calling hours.
  • Trial accounts test agents in the browser. To make phone calls, connect your own Vobiz or TryVox account in Telephony → Your provider, or buy credits.
  • Calls only go out between 09:30 and 20:00 in the lead's local time; outside that window the lead is called at the next 09:30.
  • Your account is already running as many calls at once as it allows (trial accounts 1, pay-as-you-go 5); the call is placed when a line frees up.
  • Your balance has run out (see Billing and credits).

Don't assume a call started: read message.

Limits

What Limit
Lead creation by API 2,000 per hour per API key
CSV import by API 50 uploads per hour per API key; .csv up to 5 MB
Agent max_attempts 1 to 10
Agent retry_delay_minutes 15 to 720
Agent max_call_duration_minutes 5 to 60
Agent business_hours_start / business_hours_end HH:MM:SS
Lead first_name 1 to 255 characters
Webhook URL Up to 500 characters
Webhook delivery 30-second timeout, up to 3 attempts
Knowledge base file PDF, DOCX, TXT, MD or CSV, up to 20 MB
AI chat edits 100 per company per day by default, reset at midnight
MCP connection Expires after 30 days without use
Recording links Short-lived signed URLs: hours from the API, about 7 days in webhooks

For coding assistants

This section is written for coding assistants (Claude Code, Cursor, Codex, Copilot and similar) that write code against the ConversAI Labs API. Humans can read it too. Plain-text versions: /llms.txt (index) and /llms-full.txt (all docs).

What ConversAI Labs is

A platform for AI voice agents in India. A company builds agents in the dashboard, connects a phone number, adds leads, and the agent calls them. Each call produces a transcript, a recording, a summary and extracted fields.

Two ways in

  • MCP server (https://api.conversailabs.com/mcp/): look up agents, calls, leads and call queues, and build, test, publish and call by chat with a confirm step. Use it to inspect and debug. See MCP server.
  • REST API (https://api.conversailabs.com/api/v1): list and update agents, add and manage leads, start calls, read call history and metrics, manage webhook settings. See the API reference. Machine-readable spec (OpenAPI 3.1): https://api.conversailabs.com/api/v1/public/openapi.json.

Rules

  1. Authenticate with an API key in X-API-Key: <key>. Read it from an environment variable such as CONVERSAI_API_KEY. Never hard-code it, log it or send it to a browser.
  2. Only use the endpoints in the API reference. Other paths on the API host are internal and can change without notice.
  3. Phone numbers in E.164 (+91...). IDs are UUIDs.
  4. Keep the trailing slash on /api/v1/agents/ and /api/v1/leads/.
  5. Starting a call uses credits (per connected minute). Adding an eligible lead with POST /api/v1/leads/ places a call automatically, and so does POST /api/v1/calls/schedule. Don't run them in loops, retries or tests without the user's say-so, and test with a number the user controls.
  6. A 200 from Add lead doesn't mean a call started. Check call_scheduled, call_queued and message.
  7. Avoid duplicate leads. Search with GET /api/v1/leads/?search=<phone> before adding, and update with PUT /api/v1/leads/{lead_id}.
  8. Prefer webhooks to polling for call results (call.analysed, call.failed). Handle duplicates by call_id + event, return 2xx fast, and check the X-API-Key header you configured.
  9. Recording links expire. Download what you need to keep.
  10. Agent changes from the API are limited to the fields of PUT /api/v1/agents/{agent_id}. Flow edits, publishing and rollback happen in the dashboard or through the MCP server.

Typical integration

CRM: new lead       -> POST /api/v1/leads/                 (call placed automatically if eligible)
CRM: lead updated   -> PUT  /api/v1/leads/{lead_id}
Bulk upload         -> POST /api/v1/leads/csv-import, then GET /api/v1/leads/csv-import/{job_id}/status
Your server         <- webhook call.analysed / call.failed (store transcript, fields, outcome)
Reporting           -> GET  /api/v1/calls/history, GET /api/v1/calls/metrics

Example: add a lead (Python)

import os, requests

BASE = "https://api.conversailabs.com/api/v1"
HEADERS = {"X-API-Key": os.environ["CONVERSAI_API_KEY"]}

resp = requests.post(f"{BASE}/leads/", headers=HEADERS, timeout=30, json={
    "agent_id": os.environ["CONVERSAI_AGENT_ID"],
    "first_name": "Asha",
    "phone_e164": "+919876543210",
    "custom_fields": {"loan_amount": "200000"},
})
resp.raise_for_status()
body = resp.json()
if not (body["call_scheduled"] or body.get("call_queued")):
    print("Lead saved, no call yet:", body["message"])

Example: webhook receiver (Node.js / Express)

app.post("/webhooks/conversai", express.json(), (req, res) => {
  if (req.get("X-API-Key") !== process.env.CONVERSAI_WEBHOOK_KEY) return res.sendStatus(401);
  const { event, call_id } = req.body;
  res.sendStatus(200);                 // acknowledge first
  queue.add({ id: `${call_id}:${event}`, payload: req.body }); // dedupe on call_id + event
});

API reference

Endpoints, request and response fields, examples and webhook payloads are in the API reference.