SETUP (5 minutes)
1. Plugins tab > Voice Agent Pro: paste your OpenAI API key in "OpenAI API Key". It is a private key: only the server-side action reads it.
2. Drag the Voice Agent Pro element onto a page (HTTPS). Set Button text, Interface language (pt-BR, en, es), colors and, optionally, an Opening line so the agent greets first.
3. Workflow "When Voice Agent Pro Start requested" (fires when the visitor taps the mic and allows it):
Step 1: Voice Agent - Create session token. Fill Instructions, Voice, Language (default pt-BR) and, if you want tools, Tools (JSON).
Step 2: Connect Voice Agent Pro, Client secret = Result of step 1's Client secret. Add "Only when Result of step 1's Error is empty" and show the Error otherwise.
4. Tools (optional). Tools (JSON) is an array like [{"name":"book_appointment","description":"...","parameters":{"type":"object","properties":{"name":{"type":"string"},"date":{"type":"string"}},"required":["name","date"]}}]. Put the argument names in the element's "Tool argument names" (comma separated) to read them as Arg 1 to Arg 6.
Workflow "When Voice Agent Pro Tool called" + Only when Tool name is book_appointment: do the work (create a thing, search...), then "Send tool result" with a short text or JSON. Unanswered calls time out after "Tool timeout" seconds.
5. Transcript (optional): on "User said" and "Agent said", create a thing with Last user text / Last agent text and Session ID. On "Call ended", save the Transcript state.
ACTIONS: Connect, Disconnect, Interrupt (barge-in), Send tool result, Send text, Set muted, Update instructions.
STATES: Status (idle, connecting, listening, thinking, speaking, error), Status label, Is connected, Is listening, Is thinking, Is speaking, Is muted, Error message, Transcript, Last user text, Last agent text, Tool name, Tool call ID, Tool arguments, Arg 1-6, Session ID.
NOTES: Model defaults to gpt-realtime-2.1 (use gpt-realtime-2.1-mini to spend less). The temporary key lasts "Token lifetime" seconds (default 120) and only starts a call. Anyone who can run your workflow can start a call billed to your key: add conditions (logged in, rate limits) on the Start requested workflow in production. Live demo and full setup: see the demo page.
STYLE (new in 1.1)
All style fields are optional and default to the 1.0 look. Corner radius (px): 0 = square, half the Button size = round. Border width (px): 0 to 12. Button size (px): 32 to 160; the icon and the Interrupt button scale with it. Font size (px): 8 to 40; the status text and the Interrupt button use 1px less, and the font family follows the element's Font setting. Text color during a call: icon and text on the filled button. Error color: status text on errors. Icon: microphone, none, or image (set Icon image). Labels: type your own text for any status, the End and Interrupt buttons, or the transcript prefixes; leave empty to keep the Interface language default.
Demo app editor:
https://bubble.io/page?id=voiceagentpro-demo&tab=Design&name=index&type=page