Skip to content

Quickstart

This walkthrough takes you from a new account to your customer talking with an agent that uses your tools.

In Parivox Workspace:

  • Open Settings → LiveKit Cloud Configuration, turn on Use my LiveKit config, and enter your LiveKit project’s URL, API key and secret. The agent joins rooms on that project.
  • Open Settings → Parivox API keys and create a key with the Dispatch agents permission (agents:dispatch). See Authentication.
  • Choose or create the agent persona to use. Its Internal ID, shown in the Agent Editor’s Metadata section, is your agentId.

Any MCP-compliant server works, over the http, sse or streamable_http transport. Expose the tools your agent needs, such as get_review_context or save_customer_request.

Validate inputs on your server. When you reject a call, return a structured, instructive error message: the agent reads it and retries with corrections. That’s how your business rules stay on your server while still shaping the conversation.

Your server must be reachable over HTTPS from Parivox, and should answer within its timeoutSeconds (a few seconds by default). Slow tools stall the conversation.

When your customer is ready to talk, call the dispatch endpoint:

POST /api/v1/agent-dispatches
Authorization: Bearer nxk_…
Content-Type: application/json
{
"roomName": "session-abc123",
"agentId": "your-persona-id",
"mcpServers": [{
"name": "my-domain",
"url": "https://api.example.com/mcp",
"headers": { "Authorization": "Bearer <short-lived session token you minted>" },
"transport": "streamable_http",
"llmInstructions": "Use these tools to read and update the customer's review."
}],
"context": { "sessionRef": "abc123" }
}

The same call with curl, from a server where PARIVOX_API_BASE is your Parivox API base URL and PARIVOX_API_KEY holds the key:

Terminal window
curl -sS "$PARIVOX_API_BASE/api/v1/agent-dispatches" \
-H "Authorization: Bearer $PARIVOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"roomName":"session-abc123","agentId":"your-persona-id"}'

A new dispatch returns 201 with dispatchId, roomName, agentName, workerStatus and reusedExistingDispatch: false.

Your backend mints the customer a LiveKit token for session-abc123 on your project, and your UI connects with the standard LiveKit client SDKs. The agent joins through the dispatch and the conversation begins.

Every tool call the agent makes lands on your MCP server with your headers. context is delivered to the agent session verbatim (as jitContext), if your tools or prompts need a correlation reference.