Home/Integrations/Codex
Vistara AI + Codex Integration

Integrate Voice AI with Codex in Seconds

Have OpenAI Codex implement Vistara AI voice calling in Python, Node.js, Go or PHP — from the CLI, your IDE or the cloud. Effortlessly equip your project with low-latency (450–600 ms) conversational telephony simply by copying and pasting the master prompt below into Codex.

Codex logo
OpenAI Codex 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 Codex to follow it.

1-Click Copy No Manual SDK Config Required Live Phone Call Experience Included Up to 200 free calls 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 Codex

STEP 01

Account Verification

Codex asks if you are registered at app.vistaraai.in. If new, it guides you through phone OTP sign-up — ₹150 free credit with GSTIN (₹50 without) — up to 200 calls, since unanswered calls are never charged.

STEP 02

Agent Query & Selection

Uses your API key to list your existing voice agents. You can pick an active agent or let Codex 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 Codex 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" }
    ]
  }'

Codex Integration FAQ

How do I add AI calling to my app with Codex?
Copy the Vistara AI integration prompt on this page and paste it into Codex, or save it in your project as VISTARA.md and ask Codex to follow it. Codex 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.
What if Codex runs without network access?
Sandboxed Codex environments often have the network turned off. If a Vistara API call fails with a network or DNS error, Codex gives you the exact command to run on your own machine instead of retrying in a loop.
Is my Vistara API key safe?
The prompt never contains your key. Codex 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 ₹150 free credit with GSTIN (₹50 without) — up to 200 calls, since unanswered calls are never charged. After that, calls are billed per connected minute from your prepaid wallet.

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 ₹150 free credit with GSTIN (₹50 without) — up to 200 calls, since unanswered calls are never charged.

Claim Free Credit