Deploying Agents
Agents in Elacity combine a versioned prompt, tools, provider configuration, and an environment into a single deployable unit. When you deploy an agent, Elacity compiles everything together and pushes it to your target provider (e.g. VAPI, Ultravox, or Telnyx).
This guide walks through deploying a simple voice agent to VAPI with a versioned prompt and an API request tool.
Prerequisites
Before deploying, make sure you have:
- A prompt registry with at least one published prompt
- An environment with VAPI provider credentials configured
- A VAPI account with an API key (added to your environment’s provider config)
Example: Deploy a VAPI Voice Agent
This example creates a simple customer-lookup agent that can query an external API during a call.
Create a prompt in your registry
Publish a prompt to your registry. For this example, we’ll use a prompt called customer-lookup at version 1.0.0:
The {{COMPANY_NAME}} variable will be replaced with the value from your environment at deployment time.

Create an API request tool
Navigate to Tools and create a new tool with the following configuration:
Tool settings:
Provider configuration (VAPI):
The ${CUSTOMER_API_KEY} variable is resolved from your environment’s secrets at deployment time — the actual key is never embedded in the tool definition.

Preview the deployment
Before deploying, preview what will be sent to VAPI. Click Deploy and select your target environment (e.g. dev).
The deployment preview shows:
- The compiled prompt with variables resolved and promptlets expanded
- Tools that will be attached to the agent
- The full provider configuration
- A content hash for drift detection

Deploy
Confirm and dispatch the deployment. Elacity will:
- Compile the prompt with environment-specific variables
- Deploy the tool to VAPI (creating it if new, updating if changed)
- Create or update the VAPI assistant with the compiled prompt and attached tools
- Record the deployment for audit and drift detection

Once complete, the agent status will show as Healthy with the deployed version and environment.

What Happens During Deployment
When you deploy an agent, Elacity orchestrates the following behind the scenes:
- Prompt compilation — the raw prompt is fetched from the registry, promptlets are inlined, environment variables are substituted, and model-specific preprocessors run
- Tool deployment — each referenced tool is created or updated in the provider’s system (e.g. VAPI tool API)
- Agent deployment — the provider assistant is created or updated with the compiled prompt, tool references, model settings, and voice configuration
- Hash recording — a content hash of the entire deployment is stored for drift detection; if someone changes the agent directly in VAPI, Elacity will flag it as “drifted”
Deployment Features
Approval Gates
For sensitive environments (e.g. prod), you can enable approval gates that require team members to approve a deployment before it executes. Configure this in your environment settings.
Drift Detection
After deployment, Elacity can verify that the agent in the provider still matches what was deployed. If someone modifies the agent directly in VAPI (outside of Elacity), the agent status changes to Drifted so you can investigate and redeploy if needed.
Rollbacks
Because every prompt version is immutable, rolling back is as simple as redeploying a previous version. Select the prior version in the deployment flow and deploy — the agent will be updated to match the older prompt.

