TTP Flavor Test (Ecommerce / Hotels / …)
How it works:
Pick an Agent below — the demo passes flavor: { type, partnerId, callView: 'minimized' } for every vertical.
On desktop (>768px), callView: 'minimized' uses the bottom voice strip when a call is active (in-panel active call UI is hidden). Mobile keeps the existing minimized bar behavior.
Each vertical wires WebSocket handlers (e.g. hotels: show_items rooms, booking_updated, show_media).
Loading SDK...
Widget Configuration
Agent
Ecommerce Demo (agent_ed18369b3)
Hotels Demo (agent_d0774f1af)
Pharma Demo (update agent ID)
Restaurant Demo (update agent ID)
Tour Demo (update agent ID)
Custom...
Agent ID
App ID
Language
English
Hebrew
Direction
LTR
RTL
STT Provider
Soniox (default — no override)
Default (server)
Azure STT
Cartesia (Ink-Whisper)
OpenAI Realtime
Start Open
Yes
No
Create Widget
Destroy Widget
Test Actions (Simulated Messages)
Show Rooms
Injects a show_items message with mock hotel rooms — no voice call needed.
Show Rooms
Show Gallery
Injects a show_media message to test fullscreen gallery.
Show Gallery
Booking Updated
Injects a booking_updated message to test the booking summary bar.
Simulate Booking
Clear Booking
Console Commands
// Access the widget instance
window.testWidget
// Inject messages manually via the flavor's messageHandlers
window.testWidget._flavor.messageHandlers['show_items']({
t: 'show_items',
items: [
{ roomId: 'room-1', roomName: 'Test Room', imageUrl: '...', pricePerNight: 150, currency: 'USD', beds: 2, amenities: ['WiFi', 'Pool'] }
],
title: 'Test Rooms'
});
window.testWidget._flavor.messageHandlers['show_media']({
t: 'show_media',
images: [{ url: 'https://images.unsplash.com/photo-1631049307264-da0ec9d70304?w=800', caption: 'Standard Room' }],
title: 'Hotel Photos'
});