Skip to content

Write your own agent

A Parivox agent is an ordinary LiveKit agent wrapped with ParivoxRoom:

from livekit.agents import AgentServer, AgentSession, JobContext, cli
from parivox_agents import ParivoxAgent, ParivoxRoom
server = AgentServer()
class Helper(ParivoxAgent):
def __init__(self, parivox: ParivoxRoom) -> None:
super().__init__(parivox, instructions=parivox.job.persona.system_prompt or "You are helpful.")
@server.rtc_session(agent_name="acme-helper")
async def entrypoint(ctx: JobContext) -> None:
parivox = ParivoxRoom(ctx)
session = AgentSession(stt="deepgram/nova-3", llm="openai/gpt-4.1-mini", tts="cartesia/sonic-3")
await parivox.start(session, Helper(parivox))
if __name__ == "__main__":
cli.run_app(server)

agent_name must match Self-hosted worker name on the agent in Parivox.

You get From
The agent’s name, prompt, greeting, skills and settings from the Agent Editor parivox.job.persona
Tile presence, hush, unhush and remove parivox.start(...)
Listening to whoever is speaking, ignoring transcribers and translators parivox.start(...)
Quiet mode (“give us a minute” … “Okay Scribe”) on by default; ParivoxRoom(ctx, quiet_mode=False) to opt out
Handoff to a human on when the agent has a human contact
Tap-to-say buttons on the tile await parivox.set_suggested_responses([...])
Room memory and Shared Files parivox.client (see Callback API)
Your provider keys stored in Parivox await ProviderKeys.load(parivox.job)
Real-time translation nothing to do: Parivox runs it beside your agent

ParivoxAgent is an ordinary LiveKit Agent, so add @function_tool methods, other models, or anything else from LiveKit Agents.

Room Scribe appends the system prompt from the Agent Editor to its own base instructions. That pattern lets you adjust the agent’s behavior in Parivox, effective at the next meeting, without shipping new code.

The package’s tests use fakes for the LiveKit room, job context and session (tests/conftest.py), so you can test hush, suggestions and tool results without a server:

Terminal window
uv run pytest

Everything parivox_agents does uses standard LiveKit participant attributes and RPC. The in-room protocol documents it for porting to another language. One rule matters most: publish presence within 15 seconds of joining, or the meeting client cancels the dispatch.