Inspiration

Most AI agents interact with users through a chat interface. Voice is an upgrade but when you mix Agentic UI in the interaction is better. It makes information flow concise and easier. When I came to know about the capabilities of the Meta VR platform extended via IWSDK, it created an instant spark. XR+AI can make Human-AI interaction cross boundaries and make it a much more natural, comfortable, and pleasant experience. The Meta VR Start competition provided a platform where I can try my hands at the intersection of AI and XR.

What it does

Gazeware is a virtual workspace where you interact with your agent through voice and hand gestures as the agent builds mini-apps on the fly using catalogs of 2D and 3D components. The agent utilizes the catalogs and services available to build your mini-apps ala carte.

As the user interacts with the apps the agent gets instant notification and acts as an intelligent backend for the mini-apps and keeps updating them. The mini-apps can be saved and retrieved across sessions or disposed of when not necessary.

XR brings a whole new dimension to the interaction. If the user chooses to use camera pass-through (optional), the agent can use the additional visual information available. When XR is not necessary, the virtual room available within Gazeware provides a quiet environment that elevates the user experience.

How we built it

We used Freesail - an open source Agentic UI SDK as the foundation. It provides support for Lit and React but we wanted to use IWSDK to create a VR first experience so we extended Freesail and built renderers and catalogs for IWSDK. We also built new capabilities such as a voice proxy, passkey support, data transfer between different surfaces (mini-apps), and an entity store to persist the UI and conversation data.

Gazeware uses Typescript as the programming language, Muse Transcribe for Speech to Text, Google TTS Chirp3 for Text to Speech, Claude Sonnet 5.5 for the LLM and Langchain as the agent framework. Caddy is used for web hosting and the server is hosted in Google Cloud. The entire stack was built in around 40 days using Claude Code.

Gazeware uses multiple components that work with each other to build and maintain the user experience. The agent does the reasoning and builds the mini-apps using catalog components and backend services. Freesail Gateway provides the communication channel between the agent and the browser in the headset while guiding the agent using tools, resource notifications and system prompts. The browser level IWSDK renderer manages the entire placement and comfort rules, while Freesail Core provides essential client-side services and management.

Challenges we ran into

IWSDK has undergone a rapid evolution since its introduction last year. The latest version 1.0 released in September supports most of Quest's native hand gestures including wrist gestures. We wanted to use hand gestures to provide the best possible experience to the user. IWSDK sometimes sends hand gestures differently than expected and we used timing rules and virtual controls to handle them.

Gestures and Movements: In 2D we only have to move around the UI in a plane. In 3D we have to handle the UI’s orientation, rotation and placement, all at the same time. Microgestures such as wrist movements are useful but difficult for the user to know what they are doing. Also a free movement moves the UI uncontrollably. To handle this we introduced a virtual controller - in the shape of a ship’s helm with a button in the middle to control the movements. The user uses the helm like a controller while its movement serves as a proxy to convey wrist gestures and pinches to the app in a controlled manner.

Moving 3D components between surfaces: Freesail has a surface concept that keeps components and data tightly bound together. But in a 3D VR environment we need objects to be transferred from surface to surface in a controlled manner. We updated the Freesail SDK’s core to allow this in a controlled manner if both the surfaces share the same catalog. Both UI and data transfer between surfaces which could be used for use cases such as games.

Different AI models, different strengths: We wanted to use a single provider for speech to text, text to speech and the agent but our experience shows that openness to use a mixture of models from different providers leads to better outcomes.

Muse Transcribe is a good model for transcription but Muse did not have text to speech at the time of development. We used piper which runs on local CPU first. It was actually good but struggled with words such as ‘mm’ and '8-9C'. Google’s Chirp TTS has a good TTS capability but Google’s speech to text does not support streaming and Muse Transcribe has a better speech to text ability in our experience.

We used Muse Spark 1.3 which has good reasoning ability but it had some latency. We also tried Muse Ember, but found that Claude Sonnet had the best balance between reasoning ability and latency for our use case.

Accomplishments that we're proud of

In Gazeware, we have introduced a virtual controller in the shape of a ships’ helm. It helps the user to control several functions such as the mini-app’s orientation, directional rotation, positional movement, and saving the mini-app for future use and destroying it if no longer required. The user can do these actions by moving the helm, rotating it vertically, steering it horizontally, bringing together two pinches to form a heart and breaking the helm.

The gestures with the helm provide good visual feedback to the user and help them to track and control their gestures without a physical controller. The button at the center of the helm is used to lock and unlock orientation and rotation so that gestures can be done in a controlled manner by the user. We believe the tool to be a useful addition for hands-only interaction in VR.

Voice Interaction: Getting the voice interaction right with proper handovers was difficult but we were able to find the right balance for hands-free voice interaction.

What we learned

Test early with the headset: This uncovered several scenarios when the apps were displayed behind the user. Quick updates to the placement rules were made to fix this. Design that looks good during development can settle differently when tested in a headset.

Space is a scarce resource: We had to put in rules to handle how and where each surface is displayed in VR. User comfort is difficult to manage as the field of view is restricted when the user is seated.

Hand gestures are easy but accident prone: The helm we introduced was very useful, but difficult to control until we introduced a lock for it.

What's next for Gazeware - Your Agentic VR Workspace

We have built a generic IWSDK catalog with 16 components and several variants and an IWSDK weather catalog to display weather. It also includes skills for connecting to Google Maps API to get the weather.

Next we are planning to introduce a user configured MCP server so the users can bring their own services. We are also planning to allow users to connect their Google or Outlook calendars. Also on cards are multiple choices of virtual rooms for users to unwind.

Built With

Share this project:

Updates

Submission history