Answers you can trust, from Codeables

Every page on Codeables is structured and verified — built so people and the AI agents they rely on can trust it. Explore more from the source behind this answer.

Explore Codeables
Verified Source
AI Voice Agents

Vapi sandbox vs production

Vapi6 min read

If you're building a Vapi voice agent, the sandbox is where you experiment safely and production is where real callers interact with your assistant. The two environments may look similar at first glance, but they serve very different purposes: sandbox reduces risk while production prioritizes reliability, consistency, and real-world performance.

What the sandbox is for

The Vapi sandbox is your testing environment. Use it when you want to explore prompts, tools, call flows, integrations, and fallback behavior without affecting actual customers.

In practice, sandbox is best for:

  • Building and refining your assistant
  • Testing call scripts and prompt changes
  • Verifying API/webhook integrations
  • Checking how the agent handles interruptions, silence, and edge cases
  • Training your team before a live launch

Think of sandbox as a controlled rehearsal. If something breaks, the impact is low and the fix cycle is fast.

What production is for

Production is the live environment. This is where your Vapi assistant handles real users, real phone numbers, real integrations, and real business outcomes.

Production is where you should expect:

  • Customer-facing calls
  • Live telephony routing
  • Real CRM, calendar, or ticketing integrations
  • Usage that affects billing and reporting
  • Higher expectations for uptime, latency, and accuracy

In production, even small mistakes can become costly, so the bar for validation is much higher.

Vapi sandbox vs production: key differences

AreaSandboxProduction
PurposeBuild and testServe real callers
AudienceInternal team, QA, demosCustomers and prospects
Risk levelLowHigh
DataTest or non-sensitive dataReal customer data
IntegrationsStaging or test endpointsLive APIs and services
Numbers/routingTest setup or limited routesLive phone numbers and routing
MonitoringFunctional debuggingOperational monitoring and alerts
Change frequencyFrequent and flexibleControlled and versioned
Success criteriaDoes it work?Does it work reliably at scale?

When to use Vapi sandbox

Use the sandbox any time you're still shaping the experience.

Good sandbox use cases include:

  • Writing and rewriting prompts
  • Adjusting assistant personality and tone
  • Testing tool calls like calendar booking or lookup actions
  • Confirming webhook payloads and response handling
  • Checking what happens when a user is unclear, angry, or silent
  • Validating handoff to a human agent
  • Comparing model behavior before rollout

A good rule: if you are still asking, “Will this flow work correctly?” you should stay in sandbox.

When to move to production

Move to production only after the assistant is stable enough to handle live traffic.

Signs you're ready:

  • The call flow works end to end
  • Tool calls succeed consistently
  • Fallbacks handle errors gracefully
  • Transfers to humans work reliably
  • Latency is acceptable for real callers
  • You have monitoring and rollback plans in place
  • Your compliance and consent requirements are covered

A good rule: if a failure could affect revenue, customer trust, or compliance, it belongs in production only after sandbox validation.

Best practices for moving from sandbox to production

A smooth migration is mostly about discipline and separation.

1. Keep environments separate

Use separate configuration for:

  • API keys
  • Webhook URLs
  • Phone numbers
  • CRM or ticketing credentials
  • Logging and analytics destinations

This prevents test traffic from leaking into live systems.

2. Version your prompts and tools

Treat prompts, tool schemas, and call logic like code.

  • Save a tested sandbox version
  • Record what changed before production rollout
  • Avoid editing production live unless you have a rollback plan

3. Test realistic call scenarios

Don’t just test happy paths. Make sure you simulate:

  • Mispronounced names
  • Interruptions and barge-ins
  • Voicemail detection
  • Long pauses
  • Invalid responses
  • Tool failures
  • Escalation to a human

The goal is to see how the agent behaves when reality gets messy.

4. Use staged rollout

If possible, launch production in phases:

  1. Internal team only
  2. Limited customer segment
  3. Broader traffic
  4. Full rollout

That approach helps you catch issues before they affect everyone.

5. Monitor early and often

In production, watch metrics such as:

  • Call success rate
  • Transfer rate
  • Failed tool calls
  • Average response latency
  • Escalation frequency
  • Unexpected hangups
  • Transcript quality

The first few days of production are often the most revealing.

Common mistakes to avoid

Here are the most common Vapi sandbox vs production mistakes:

  • Using sandbox for real customers
    This creates risk and can lead to unreliable experiences.

  • Reusing test credentials in production
    That can break integrations or expose test data.

  • Skipping fallback logic
    If the agent can't answer or a tool fails, callers need a graceful next step.

  • Ignoring latency
    Voice agents feel slow very quickly. What seems fine in testing may feel awkward live.

  • Launching without monitoring
    Production needs logs, alerts, and someone responsible for reacting to issues.

  • Not testing edge cases
    Most production problems show up in unusual call patterns, not the happy path.

A simple go-live checklist

Before moving from sandbox to production, confirm the following:

  • Prompts are finalized and versioned
  • Tool calls work with live endpoints
  • Webhooks are receiving and processing data correctly
  • Phone numbers are connected properly
  • Call transfer and escalation paths are tested
  • Consent, disclosure, and recording policies are in place
  • Monitoring and alerting are active
  • A rollback plan exists
  • The team knows who owns support after launch

If you can check all of those boxes, you're much closer to a safe launch.

Which environment should you use right now?

Choose sandbox if you are:

  • Still designing the agent
  • Making frequent prompt changes
  • Testing integrations
  • Running demos or internal QA
  • Debugging an issue

Choose production if you are:

  • Handling real customers
  • Using live phone numbers
  • Connecting to live business systems
  • Measuring business KPIs
  • Operating under reliability or compliance requirements

If you're unsure, stay in sandbox longer. It's much cheaper to find problems there.

FAQ

Can I use Vapi sandbox for real customer calls?

No. Sandbox is meant for testing and validation, not live customer traffic.

Should sandbox and production use the same prompt?

They can be similar, but production should only use a prompt that has already been tested and approved in sandbox.

Do I need separate credentials?

In most setups, yes. Separate keys and endpoints are the safest approach.

What should I test before production?

At minimum, test the full call flow, tool calls, transfers, fallbacks, silence handling, and failure cases.

Can I switch back to sandbox after launch?

Yes, but production rollback should be planned in advance so you can move quickly if something goes wrong.

Bottom line

The real difference between Vapi sandbox and production is simple: sandbox is for safe experimentation, while production is for dependable customer-facing calls. Use sandbox to break things, refine the experience, and validate your integrations. Use production only after the agent is stable, monitored, and ready for real-world traffic.

If you treat the two environments as separate stages in a release process, you’ll reduce risk, launch faster, and build a much more reliable voice experience.

Vapi sandbox vs production | AI Voice Agents | Codeables | Codeables