AI Integration Quick Reference
AI Integration Quick Reference
- Default idle timeout: 180 seconds (3 minutes) alone in a session
- Warning dialog appears 60 seconds before auto-termination
- Listen for
onSessionTimeoutto handle auto-termination - Customize with
setIdleTimeoutPeriod(seconds)in CallSettings (v4.1.0+)
How It Works
When a participant is alone in a session:- A warning dialog appears 60 seconds before the timeout, with “Stay” or “Leave” options
- If no action is taken, the call auto-terminates and the
onSessionTimeoutevent fires
Configuration
Set a custom timeout period usingsetIdleTimeoutPeriod() in CallSettingsBuilder. The warning dialog will always appear 60 seconds before the configured timeout.
- TypeScript
- JavaScript
Handling the Timeout Event
Listen foronSessionTimeout in your OngoingCallListener to clean up when the call auto-terminates:
- TypeScript
- JavaScript
Next Steps
Default Calling
Implement ringing call flows with accept/reject functionality
Call Session
Configure call settings including idle timeout
Standalone Calling
Implement calling without the Chat SDK