The Tokkio UI WebSocket connects to the Tokkio ACE Controller, and offers real-time updates on conversation information from a Tokkio session. It includes:
ACE Controller WebSocket through the Ingress TLS endpoint
ACE Controller WebSocket through the Ingress insecure endpoint
ACE Controller WebSocket endpoint directly from the ACE Controller container
Available only on servers:
Accepts one of the following messages:
Inform the UI when to show a TTS Transcript. This will be sent when the avatar starts speaking or a new transcript is available.
{
"type": "tts_update",
"tts": "string"
}
Inform the UI when to hide a TTS Transcript. This will be sent when the avatar stops speaking.
{
"type": "tts_end"
}
Inform the UI when to show an ASR Transcript. This will be sent after the user starts speaking or a new transcript is available.
{
"type": "asr_update",
"asr": "string"
}
Inform the UI when to hide an ASR Transcript. This will be sent after the user stops speaking.
{
"type": "asr_end",
"asr": "string"
}
Informs the UI when the user is present.
{
"type": "user_presence_start"
}
Inform the UI when the user is no longer present.
{
"type": "user_presence_end"
}
Show custom view data in the front-end. This can include images, text, text boxes, buttons, and more, rendered as modular components.
{
"type": "custom_view",
"blocks": [
{
"id": "string",
"type": "header",
"data": {
"text": "string",
"level": 1
}
}
],
"style": {
"primary_color": "string",
"secondary_color": "string",
"background_color": "string",
"background_text_color": "string",
"primary_text_color": "string",
"secondary_text_color": "string"
}
}
Indicate that an interruption has occurred in the ACE controller, and that the UI state should be cleaned up accordingly.
{
"type": "interruption"
}
Available only on servers:
Accepts one of the following messages:
Message indicating that the user wishes to start the conversation. The avatar will greet the user once this message is triggered.
{
"type": "conversation_start"
}
Message indicating that the user wishes to end the conversation. The avatar will say goodbye to the user once this message is triggered.
{
"type": "conversation_end"
}
Message indicating that we should update the configuration of the NVIDIA RAG which Tokkio is connected to.
{
"type": "rag_settings",
"collection_name": "string",
"use_knowledge_base": "string",
"rag_server_url": "string"
}
Message indicating that the user has typed text into a custom view text box.
{
"type": "key_pressed",
"id": "string",
"interim_input": "string",
"timestamp": 0
}
Message indicating that the user has submitted text from a custom view text box.
{
"type": "editing_finished",
"id": "string",
"input": "string",
"enter_pressed": "string",
"timestamp": 0
}
Message indicating that the user has clicked a button in the custom view UI.
{
"type": "button_pressed",
"id": "string",
"timestamp": 0
}
message indicating that the user has toggled a selctable option in the custom view UI.
{
"type": "button_pressed",
"id": "string",
"timestamp": 0,
"toggled": true
}
Inform the UI when to show a TTS Transcript. This will be sent when the avatar starts speaking or a new transcript is available.
Inform the UI when to hide a TTS Transcript. This will be sent when the avatar stops speaking.
Inform the UI when to show an ASR Transcript. This will be sent after the user starts speaking or a new transcript is available.
Inform the UI when to hide an ASR Transcript. This will be sent after the user stops speaking.
Informs the UI when the user is present.
Inform the UI when the user is no longer present.
Show custom view data in the front-end. This can include images, text, text boxes, buttons, and more, rendered as modular components.
Indicate that an interruption has occurred in the ACE controller, and that the UI state should be cleaned up accordingly.
Message indicating that the user wishes to start the conversation. The avatar will greet the user once this message is triggered.
Message indicating that the user wishes to end the conversation. The avatar will say goodbye to the user once this message is triggered.
Message indicating that we should update the configuration of the NVIDIA RAG which Tokkio is connected to.
Message indicating that the user has typed text into a custom view text box.
Message indicating that the user has submitted text from a custom view text box.
Message indicating that the user has clicked a button in the custom view UI.
message indicating that the user has toggled a selctable option in the custom view UI.
Header component, displays text in large, bold letters.
Displays an image with an optional caption.
Displays an image with text next to it.
Contains hints to show to the user, rotates through hints one at a time if multiple are present.
Displays a paragraph of text.
Provides a textbox input to the user.
Provides one or more buttons to the user.
Provides a list of selectable options to the user.
Displays a table.