YOUR BUSINESS, CONNECTED
A voice agent that can
do the next thing.
Use your model, your knowledge and your HTTP endpoints. The platform handles the conversation, scoped execution and the record of what happened.
Start a session
Create and publish an agent in your workspace. Create a scoped API key under Developers. Keep it on your server.
curl -X POST "$API/v1/workspaces/$WORKSPACE/voice/sessions" \
-H "X-API-Key: $STUDIO_KEY" \
-H 'Content-Type: application/json' \
-d '{"agent_id":"AGENT_ID","mode":"simulation","variables":{"customer_name":"Alex"}}'The response contains a short-lived session token, call ID and media URL. Simulation uses the real session and persistence path without contacting a phone or speech provider.
One account. Your devices under control.
Sign in with Google or verify your email after password signup. Profile lets you update your details, connect Google and sign out other devices. Email links expire and can only be used once.
Dashboard access uses short-lived HttpOnly JWT cookies and rotating refresh cookies. Browser mutations also need the current X-CSRF-Token and an allowed Origin. The web client refreshes expired access automatically. Server integrations use scoped API keys instead of dashboard cookies.
Self-hosting requires Google OAuth and SMTP configuration before those sign-in methods can serve real users. The Google callback is /backend/v1/auth/google/callback on your app host.
Put your published agent on a website.
Open Chat widget and enter your website URL. Choose a new or existing agent; public pages, products and policies connect through a background crawl. Confirm your exact website origins in Appearance, then copy the generated widget ID and publishable-key script into your site. Add context with data-variables; missing required values are collected before the conversation starts. Keep private credentials in tool settings rather than website variables.
Widget sessions use a short-lived capability bound to their installation, publishable key and origin. History resumes across page navigation without dashboard cookies. The assistant recognizes indexed current pages and can open a permitted page or scroll to an indexed section when a visitor asks. Optional voice needs HTTPS, microphone permission and configured speech services. Disable the installation to revoke public use. Workspace turn and voice limits apply across conversations.
Try it on your site before you build anything.
Paste one script on any page and the trial assistant reads that page and answers visitors from it. Our servers fetch the page once (public pages only, and only if its robots.txt allows crawlers), and the assistant answers from that single page. It cannot book, call, take payments or browse other pages. The page text and the questions are kept for up to an hour so it can follow the conversation, then deleted.
<script defer src="https://app.phirmy.com/widget.js" data-widget-id="phir-test" data-public-key="phir_pk_test"></script><script defer src="https://app.phirmy.com/widget.js" data-widget-id="phir-test" data-public-key="phir_pk_test" test_web="https://your-site.example"></script>The trial ends after 5 visitor messages. Its last card, Trial done, has a Keep it button that opens Phirmy with your website filled in, so you can sign in and make a real assistant and widget from it. Without test_web the script only reads the page it is running on, as the browser reports it. With test_web, from an HTML tester or a local file, it reads the public address you give instead.
Limits: a few trials per hour per network, and a daily cap across everyone. Pages that only show their content after JavaScript runs, sit behind a sign-in, or whose robots.txt asks crawlers to stay away cannot be read, and the trial says so.
Connect your calendar and calling workflow.
Integrations stores encrypted credentials per workspace. Connect Google Calendar to check availability and sync a confirmed local appointment. An appointment is only on Google after remote sync succeeds. For Cal.com or Calendly, use the OAuth Connect button to authorize your account (or connect with an API key/personal token), choose a meeting type and enable booking in your agent’s Actions tab. Select its booking platform, then publish. During a call, the agent checks live availability, collects details and reads them back before asking for confirmation. Only an accepted provider result confirms the booking. Calendly requires Standard or above and Scheduling API permissions.
Appointments shows booking requests and their latest checked status. Pending approval and uncertain submissions stay unconfirmed. Use Check status to reconcile a request, and Manage at provider to change or cancel it. A lost response never triggers another automatic booking.
Contacts previews CSV imports, exports your address book and records permission to call. Additional CSV columns become contact variables. Select contacts with permission to create a campaign draft, then review it before starting. Real calling requires an activated carrier and verified owned number. No draft creation places a phone call.
Bring your model
The server default supports the official OpenAI endpoint or a compatible host. Changing the environment requires an API restart.
OPENAI_API_KEY=your_private_key
OPENAI_MODEL=gpt-5.6-luna
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_API_STYLE=auto
OPENAI_TOKEN_PARAMETER=auto
OPENAI_REASONING_EFFORT=auto| Protocol | Output cap | Sampling |
|---|---|---|
| Responses | max_output_tokens | Omitted by default |
| Chat Completions | max_completion_tokens | Omitted by default |
| Legacy / compatible Chat | max_tokens, if documented | Only when explicitly supported |
Support varies by model and reasoning mode. Open Models → Add model, supply the exact model ID, HTTPS base URL, key and provider documentation URL. Review its parameter rules, run the streaming test, and save. Select the profile on your agent and publish.
Profiles store a documentation source and test evidence. A new key creates a new profile; disabling a profile prevents further use. The platform only negotiates a rejected token or temperature parameter before any text has streamed. It never replays a turn after emitting output.
Official parameter reference ↗Your API becomes an agent tool.
Create a workspace tool, declare its argument schema and describe when to call it. Import cURL in the editor or create the definition through the API.
curl -X POST "$API/v1/workspaces/$WORKSPACE/tools" \
-H "X-API-Key: $STUDIO_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name":"lookup_order",
"description":"Look up an order when the caller asks about its status.",
"method":"POST",
"url":"https://your-business.example/api/orders/lookup",
"arguments":{"type":"object","properties":{"order_id":{"type":"string"}},"required":["order_id"],"additionalProperties":false},
"body_template":{"order_id":"{{order_id}}"},
"headers":{"Authorization":"Bearer YOUR_BUSINESS_TOKEN"},
"timeout_seconds":15,
"execution_mode":"wait_for_result",
"error_handling":"hide",
"side_effecting":false
}'cURL import is a parser. It never runs a shell, command substitution or local-file uploads. Headers are encrypted and write-only. Public URLs are validated and pinned to public IP addresses when connecting; redirects are not followed.
Templating
Use {{order_id}} for a declared argument and {{system.call_id}} for server context. Dotted paths read nested values. A placeholder occupying an entire JSON value preserves its type; values are JSON-encoded safely. URL placeholders are percent-encoded and cannot change the host.
Access and publishing
curl -X PUT "$API/v1/workspaces/$WORKSPACE/tools/$TOOL/access" \
-H "X-API-Key: $STUDIO_KEY" -H 'Content-Type: application/json' \
-d '{"agent_ids":["AGENT_ID"]}'
# Publish the updated agent draft before starting a new session.Tools have immutable revisions. Editing creates a new revision; reattach and publish to use it. Active calls keep their published definitions. Disabling a tool is an immediate revocation for all agents.
Test the endpoint
curl -X POST "$API/v1/workspaces/$WORKSPACE/tools/$TOOL/test" \
-H "X-API-Key: $STUDIO_KEY" -H 'Idempotency-Key: test-order-123' \
-H 'Content-Type: application/json' \
-d '{"arguments":{"order_id":"ORD-123"},"mock":false}'A real test makes a real request. Set mock:true to use the stored mock without external traffic. The result includes HTTP status, elapsed time, a bounded response and an actual execution state. Headers and known credential values are redacted.
| Execution | Behavior |
|---|---|
| wait_for_result | The model receives the persisted endpoint result before continuing. |
| background | A durable job runs the request. Its result is visible in execution history. |
| fire_and_forget | The conversation receives acceptance, not a completion claim. The job remains auditable. |
Use stable idempotency keys for operator requests. Network timeouts become unknown; reconcile before repeating a side effect. The endpoint receives an execution ID and Idempotency-Key that it can use for deduplication. Responses are limited to 64 KiB.
Ground answers in your business.
curl -X POST "$API/v1/workspaces/$WORKSPACE/knowledge" \
-H "X-API-Key: $STUDIO_KEY" -H 'Content-Type: application/json' \
-d '{"name":"My business","website_url":"https://your-business.example","max_pages":20}'
# The response is a job. Poll GET /jobs/{id} until completed or failed.Website jobs follow internal links and sitemap indexes, respect robots permissions and crawl delays, normalize URLs and preserve source revisions. Structured product offers, variants and specifications become searchable evidence. TXT, PDF and DOCX uploads are also supported. Published knowledge snapshots stay active while a recrawl builds; an indexing failure preserves the previous snapshot.
Website assistants connect successful snapshots automatically and can refresh on a schedule. Existing calls and conversations retain their pinned knowledge; unpublished draft edits remain unpublished. Manually created knowledge can also be selected on an agent and published. Qdrant queries filter workspace and snapshot identity. Credentials for Qdrant, embeddings and Azure remain server-side.
Static extraction and guarded JavaScript rendering are available. Blocked pages, third-party-dependent applications and image-only PDFs may remain incomplete. Check page limits, exclusions and crawl notices; discovered content does not guarantee complete website coverage.
Connect the conversation.
// Your server creates a short-lived session. Never expose STUDIO_KEY.
const session = await fetch('/your-server/voice-session', {method:'POST'}).then(r => r.json());
const ws = new WebSocket(session.media_url);
ws.onopen = () => ws.send(JSON.stringify({
type:'client.start', session_token:session.session_token
}));
ws.onmessage = event => {
if (typeof event.data !== 'string') return;
const message = JSON.parse(event.data);
if (message.type === 'server.ready') {
// Simulation only. Live mode sends framed PCM after ready.
ws.send(JSON.stringify({type:'client.text',text:'How can I book?'}));
}
console.log(message);
};Listen for server.ready before audio input. Incoming frames use a 32-byte NTV1 header followed by mono PCM16 at 16 kHz. Server output uses the same header and mono PCM16 at 24 kHz. Input frames must be at most 200 ms. The bundled /pcm-capture.js worklet handles browser capture and resampling.
server.clear advances the playback epoch. Stop old scheduled audio and discard frames from earlier epochs. Text events include turn state, partial/final transcripts, errors and session end. Send client.stop to end a session. Permanent API/provider keys never belong in browser code.
Browser and telephone voice use Phirmy Voice: Indian-language speech recognition, a conversational model with tools, and natural speech. Text chat keeps its selected model. Opt-in recordings use separate caller/assistant channels, announce recording in the greeting, and expire according to the published retention setting.
Twilio and Plivo.
# Configure your provider's owned number with these public URLs:
# Twilio (POST, signed by Twilio):
https://YOUR_API/v1/provider-webhooks/twilio/answer
https://YOUR_API/v1/provider-webhooks/twilio/status
# Plivo (POST, V3 signatures):
https://YOUR_API/v1/provider-webhooks/plivo/answer
https://YOUR_API/v1/provider-webhooks/plivo/hangupRegister an account-owned number, verify its capabilities, attach a published agent, and configure the provider’s signed POST callbacks. Set an exact public HTTPS media origin with WebSocket support.
Twilio uses bidirectional Connect/Stream with mu-law 8 kHz media, stream IDs, signed forms and clear events. Plivo uses its own signed callbacks and negotiated Stream protocol. These are distinct adapters; a generic webhook does not make an arbitrary carrier media-compatible.
Outbound admission requires a verified number, a controlled destination allowlist, live credentials and a budget reservation. Callback retries settle the canonical call once. Live tariffs remain unpriced testing until a production tariff and provider reconciliation are configured.
Tell your systems what happened.
curl -X POST "$API/v1/workspaces/$WORKSPACE/webhooks" \
-H "X-API-Key: $STUDIO_KEY" -H 'Content-Type: application/json' \
-d '{"url":"https://your-business.example/voice-events","events":["call.completed","ticket.created"],"enabled":true}'
# Store the returned signing_secret privately. It is returned once.Event deliveries are recorded transactionally, signed and retried with backoff. Inspect failures under Developers and replay intentionally. Read X-Studio-Timestamp, X-Studio-Signature and X-Studio-Event. The signature is v1= followed by the hex HMAC-SHA256 of timestamp + a period + the exact raw request body, using your signing secret. Compare in constant time, reject timestamps older than five minutes, and deduplicate by X-Studio-Event. Parse JSON after verification.
Tool endpoints execute actions during a conversation. Event webhooks report persisted events. Carrier webhooks admit and update phone calls. Keep these three contracts distinct.
Design around actual outcomes.
| Status | Meaning |
|---|---|
| 401 / 403 | Missing credentials, invalid signature, wrong origin or insufficient scope. |
| 404 / 410 | Resource unavailable in this workspace, or an expired capability. |
| 409 | Conflicting idempotency key, unavailable state, budget or booking conflict. |
| 422 | Invalid arguments, incompatible model settings or unsupported endpoint configuration. |
| 429 | Rate limit reached. Back off before retrying. |
| 502 / unknown | The provider rejected the request or its outcome needs reconciliation. |
Do not retry side effects with a new identity after an unknown network outcome. A queued action, generated promise or nonempty configuration flag is not proof of delivery.