Aurora can be embedded into any React app using an iframe
wrapper. The provided callAurora
function creates and manages an interactive iframe that allows users to start/stop calls with Aurora, adapting to both mobile and desktop environments.
1. How it Works
On first click, the iframe is dynamically created and loaded from:
Aurora requests microphone access and begins a session once loaded.
On mobile devices, the iframe launches full screen.
On desktop, it appears as a small floating circular widget in the bottom-right corner.
When the iframe sends a
micConfirmed
message, the widget shrinks back to its 64px floating circle.
2. Installation / Setup
Add the helper function to your project:
3. Usage Example
You can wrap any button or component with callAurora
to make it trigger Aurora:
When clicked:
The Aurora iframe is injected.
On mobile, it covers the screen.
On desktop, it shows as a floating widget.
Clicking again toggles start/stop.
4. Key Notes
Ensure your domain allows cross-origin iframe embedding (Aurora is hosted on
https://api.hellovoxify.com
).Microphone permissions must be granted by the user.
Multiple buttons/components can be wrapped, but they will all control the same iframe instance.
You can customize
assistantId
values to point to different Aurora assistants (e.g., one for support, another for sales).
