Docsvoxioagent 2.0.0

Get started

Servers and environments

Choose which Voxio servers your code talks to: the standard deployment or the GPU deployment.

Every entry point takes the same two options. environment picks the deployment for every service at once. endpoints overrides single services, and wins over environment.

Environments

Servicestandard (default)gpu
Voicehttps://voice.voxio.inhttps://gpu.voice.voxio.in
Chathttps://chat.voxio.inhttps://gpu.agent.voxio.in
Data (voxioagent/server)Nonehttps://gpu.data.voxio.in

Use gpu for flows with a face and for voxioagent/server. Avatars render on the GPU servers, and the data service only runs there.

Choose an environment

Pass environment to any widget, session or server client:

mountVoiceButton({ flowKey, environment: "gpu" });
createSession({ flowKey, environment: "gpu" });
new Voxio({ secretKey, environment: "gpu" });

With a script tag, add data-environment="gpu".

Override one service

To move one service and leave the rest, pass endpoints. This chat runs on the standard server while everything else uses GPU:

mountChat({ flowKey, environment: "gpu", endpoints: { chat: "https://chat.voxio.in" } });

With a script tag, use data-voice-url and data-chat-url.

Next steps