Antigravity logoVistara AI + Antigravity Integration

Add AI Calling to Your App with Antigravity

Supercharge your Antigravity agentic workflows with low-latency (450–600 ms) AI voice calling and carrier telephony. Effortlessly equip your project with low-latency (450–600 ms) conversational telephony simply by copying and pasting the master prompt below into Antigravity.

Google Antigravity Master Prompt
Production Telephony & Voice Agent Prompt Ready

The prompt contains complete knowledge of the Vistara Connect REST API, low-latency Hindi telephony defaults, voice agent craftsmanship guidelines, and an automated flow to trigger a live test call to your personal mobile phone.

Download as .md File

Coding agents work best with the file: save it in your project (for example as VISTARA.md) and ask Antigravity to follow it.

1-Click Copy No Manual SDK Config Required Live Phone Call Experience Included Up to ₹100 Free Credit on Signup

Using a different AI tool or editor?

Switch to dedicated integration pages for your favorite coding assistant:

View All AI Tools
Interactive Telephony Workflow

What Happens When You Paste This Prompt into Antigravity

Step 01

Account Verification

Antigravity asks if you are registered at app.vistaraai.in. If new, it guides you through phone OTP sign-up — ₹100 free credit with GSTIN (₹50 without); only connected minutes are billed, so unanswered test calls cost nothing.
Step 02

Agent Query & Selection

Uses your API key to list your existing voice agents. You can pick an active agent or let Antigravity construct a brand new dedicated persona.
Step 03

Voice Prompt Craftsmanship

Constructs a 10-section prompt with native Devanagari Hindi spoken text, phone conversation mechanics, objection handling, and CRM deliverables.
Step 04

Live Phone Test Call

Asks for your mobile number and dispatches a priority test call (x-call-type: test). Your phone rings immediately so you experience the AI conversation live!
Step 05

Codebase Scaffolding

Scaffolds clean outbound call dispatchers, webhook receivers for post-call transcripts, rate-limiting guards, and .env files directly in your repository.
Developer Telephony Specs

Under the Hood: Vistara Connect REST Architecture

Everything Antigravity will wire up into your backend application:

Programmatic Agent Management (GET, POST, PUT /api/v1/agents)

Manage conversational agent lifecycles via REST. Agents default to Hindi with native Indian speech synthesis (meera or Aoede).

// Create Voice Agent (100 req/min limit)
curl -X POST https://app.vistaraai.in/api/v1/agents \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Customer Support RM",
    "language": "Hindi",
    "calling_method": "traditional",
    "voice": "meera",
    "first_message": "नमस्ते {{customer_name}} जी! मैं आपकी क्या सहायता कर सकती हूँ?",
    "system_instruction": "You are a courteous, expert AI support assistant...",
    "deliverables": [
      { "question": "Was customer interested?", "type": "fixed", "options": "Yes, No", "isGoal": true, "goalValue": "Yes" }
    ]
  }'

Step-by-Step Guide: Antigravity + Vistara AI

The short answer: paste the prompt from vistaraai.in/integration/antigravity into Antigravity with your project open and VISTARA_API_KEY set. Antigravity turns the setup into a task plan, runs the Vistara API calls in the terminal, builds and tests your voice agent with a live call to your phone, and wires calls and webhooks into your app — checking each step before it moves to the next.

Plan, execute, verify

Antigravity is an agentic IDE: it can plan multi-step work, run terminal commands and edit files. The Vistara prompt contains a step-by-step workflow, so Antigravity typically plans the work like this:

  1. Confirm the API key is set (without printing it) and list your agents.
  2. Build or improve the voice agent and save its prompt in the repository.
  3. Place a test call to your number and fetch the result.
  4. Add a Vistara client, a webhook endpoint and a calls table to your app.
  5. Trigger calls from your app's events and verify a webhook end to end.
  6. Walk through the go-live checklist.

After each task it checks the evidence — the agent ID returned, the test call's result, the webhook received — and only then moves on.

Where it stops and asks you

Autonomy stops where your judgement matters. Antigravity asks you what the agent should say and capture, fills business facts only from what you tell it (anything unknown stays marked [TO FILL]), confirms the destination number before every call, and gets your go-ahead before anything goes live. Calls cost money, so it only calls numbers you have given it for testing.

Triggering calls from events in your app

Most products don't need a "Call" button — they need calls to start when something happens. Ask Antigravity to wire triggers like these:

  • New lead — call within minutes, with the lead's details in metadata.
  • Renewal or payment due — a scheduled job picks due records and starts calls inside the 09:00–20:00 IST calling window.
  • Delivery to confirm — call before dispatch and store the answer.

Whatever you put in metadata is shown to the agent during the call, so the keys must match the agent's prompt exactly. Use flat snake_case keys and YYYY-MM-DD dates:

{
  "phone": "+919876543210",
  "agentId": "AGENT_UUID",
  "name": "Ravi",
  "metadata": { "plan_name": "Gold Annual", "renewal_due_date": "2026-10-15", "lead_id": "L-1042" }
}

Verifying the webhook end to end

Antigravity can prove the whole loop works: expose your local server with a tunnelling tool, set that URL with its secret token on a test agent, place a test call, and confirm the result was stored. A good final check is sending the same webhook body twice — the second delivery should be recognised and ignored, because Vistara may deliver an event more than once.

Antigravity Integration FAQ

How do I add AI calling to my app with Antigravity?
Copy the Vistara AI integration prompt on this page and paste it into Antigravity, or save it in your project as VISTARA.md and ask Antigravity to follow it. Antigravity then checks your Vistara account and API key, helps you create a voice agent, places a test call to your own phone, and writes the code that starts calls and receives each call's transcript, summary and extracted answers by webhook.
Can Antigravity run the whole setup by itself?
It turns the setup into a task plan and runs the API calls in the terminal, but it still asks you for the decisions that matter — what the voice agent should say and which phone number to call — and confirms the number before any call is placed.
Is my Vistara API key safe?
The prompt never contains your key. Antigravity is told to read it from the VISTARA_API_KEY environment variable, keep it out of source files, examples and logs, and use it only on the server — never in browser or mobile app code.
How much does it cost to try?
The prompt is free. New Vistara AI accounts get ₹100 free credit with GSTIN (₹50 without); only connected minutes are billed, so unanswered test calls cost nothing. After that, calls are billed per connected minute from your prepaid wallet.
How does Antigravity know each step worked?
It checks the evidence before moving on: the agent ID returned when the agent is created, the finished test call's result fetched from the API, and the webhook stored by your app.
What should I put in metadata?
The per-customer details the agent needs during the call — plan, due date, amount, branch, order — as flat snake_case keys with simple values and YYYY-MM-DD dates, plus your own record ID so you can match the result.
Does Antigravity need my API key in the chat?
No. Set VISTARA_API_KEY in the environment; Antigravity checks that it is set without printing it and never writes it into your files.

Ready to integrate voice AI into your product?

Sign up in under 60 seconds with your mobile number and get your live API key — plus ₹100 free credit with GSTIN (₹50 without); only connected minutes are billed, so unanswered test calls cost nothing.

Claim Free Credit