ChatGPT logoVistara AI + ChatGPT Integration

Add AI Calling to Your App with ChatGPT

Integrate conversational voice agents using ChatGPT with custom agent prompt engineering. Effortlessly equip your project with low-latency (450–600 ms) conversational telephony simply by copying and pasting the master prompt below into ChatGPT.

ChatGPT 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 ChatGPT 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 ChatGPT

Step 01

Account Verification

ChatGPT 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 ChatGPT 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 ChatGPT 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: ChatGPT + Vistara AI

The short answer: copy or download the prompt from vistaraai.in/integration/chatgpt, paste it (or attach the file) in a new ChatGPT chat, and follow along. ChatGPT walks you through account setup, writes your voice agent's prompt, gives you the exact command to run for each API step — curl on macOS or Linux, PowerShell on Windows — and reads the responses you paste back. It finishes by writing complete files for your backend.

How this differs from a coding agent

In a normal chat, ChatGPT can't make requests to your Vistara account or edit your files. You are its hands: you run each command it gives you and paste the JSON response back, and it reads the response carefully before the next step. It is slower than a coding agent like Claude Code or Cursor, but it needs nothing beyond a browser and a terminal.

Step 1: Start the chat

Open a new conversation and paste the prompt. It is long; if ChatGPT says the message is too long, use Download as .md File on the ChatGPT page, attach the file, and ask ChatGPT to follow it.

Step 2: Tell it your operating system

ChatGPT asks whether you're on Windows or macOS/Linux and gives commands for that system. The commands read your key from the VISTARA_API_KEY environment variable, so you never paste the key into the chat. Set it once in your terminal:

# macOS / Linux
export VISTARA_API_KEY="your-key"

# Windows PowerShell
$env:VISTARA_API_KEY = "your-key"

Step 3: Design the agent together

Answer ChatGPT's questions about your business and the goal of the call. It writes the agent prompt with Vistara's Voice Agent Builder — instructions in English, spoken lines in the customer's own script — and gives you the agent as one JSON file, agent.json, plus the command that sends it. A long prompt full of quotes and Hindi text breaks easily inside a shell string, which is why it uses a file.

Step 4: Place a test call to your own phone

ChatGPT gives you a test-call command. In PowerShell it looks like this:

$headers = @{ "x-api-key" = $env:VISTARA_API_KEY; "x-call-type" = "test" }
$body = @{ phone = "+919876543210"; agentId = "AGENT_UUID"; name = "Ravi" } | ConvertTo-Json
Invoke-RestMethod -Uri "https://app.vistaraai.in/api/v1/calls/initiate" -Method Post -Headers $headers -ContentType "application/json; charset=utf-8" -Body $body

Your phone rings. Talk to the agent like a real customer — interrupt it, go off script, push back. Then run the status command ChatGPT gives you and paste the result: it reads the summary, answers and transcript and suggests fixes.

Step 5: Get the backend code

Tell ChatGPT your stack. It writes complete files — not fragments — and says exactly where each one goes: a server-side client that starts calls, a webhook endpoint protected by a secret token, and a table for call results.

Reading the responses you paste back

StatusWhat it means
200 / 201Success — ChatGPT moves to the next step.
400A field is invalid; the error message names it.
401The API key is missing or wrong in your terminal.
402Wallet balance too low — recharge on the Wallet page.
429Rate limit — wait the number of seconds in Retry-After.

ChatGPT Integration FAQ

How do I add AI calling to my app with ChatGPT?
Copy the Vistara AI integration prompt on this page and paste it into ChatGPT, or save it in your project as VISTARA.md and ask ChatGPT to follow it. ChatGPT 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 ChatGPT call the Vistara API itself?
In a normal chat, no: ChatGPT gives you each command (curl on macOS or Linux, PowerShell on Windows), you run it and paste the JSON response back, and ChatGPT reads it before the next step. It also writes complete files for you to add to your project.
What if the prompt is too long to paste into ChatGPT?
Use Download as .md File on this page, attach the file to your chat, and ask ChatGPT to follow it.
Is my Vistara API key safe?
The prompt never contains your key. ChatGPT 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.
Can ChatGPT place the calls itself?
In a normal chat, no. ChatGPT gives you each command, you run it on your computer and paste the response back. This keeps your API key on your machine.
Is it safe to paste API responses into ChatGPT?
Responses for your own test calls contain your agent settings and your own conversation. Do the setup with test calls to your own phone, and avoid pasting real customers' transcripts into any chat tool.
What if the prompt is too long to paste?
Download it as a .md file from the ChatGPT integration page, attach the file to your chat, and ask ChatGPT to follow it.
Can ChatGPT write the agent in Hindi?
Yes. The Voice Agent Builder keeps instructions in English and writes every spoken line in the customer's language and native script — Devanagari for Hindi — with numbers spoken as words.

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