Skip to content

Iframe Embedding Requirements

To embed HAMI within your application using an <iframe>, you must configure specific browser permissions and ensure proper network connectivity. Incorrect configuration will prevent core features like microphone access and real-time audio from functioning.

The <iframe> tag must include the specified permissions. Replace {groupName} with your configured clinic or hospital’s name (e.g., baytown).

<iframe
src="https://careflow.bostonhealth.ai/g/{groupName}"
title="{groupName}"
width="390"
height="630"
style="border:0; border-radius:12px; max-width:calc(100vw - 2rem); max-height:calc(100vh - 2rem); display:block;"
loading="lazy"
referrerpolicy="strict-origin-when-cross-origin"
allow="microphone; camera; autoplay; clipboard-write; geolocation"
allowfullscreen
></iframe>
PermissionRequiredDescription
microphoneYesRequired for real-time audio input during patient intake
autoplayYesRequired for AI avatar audio playback
cameraRecommendedOptional, recommended for future-proofing
clipboard-writeNoEnables copy-to-clipboard functionality
geolocationYesEnables location-based features

The embedded application makes outbound connections from the patient’s browser to several services. Ensure none of these are blocked by your network or firewall configuration.

ServiceProtocolNotes
REST APIHTTPSMust be reachable from the patient’s browser
WebSocketWSSMust not be blocked by corporate firewalls
Real-time audio serverUDP/TCPRequires open ports for real-time communication
Country flag CDN (flagcdn.com)HTTPSUsed for country flag images in the phone number input

For additional support or questions about iframe embedding: