Video Flow
Agent IFrame SDK Integration
Integrate Video agent portal using IFrame WebSDK for seamless agent interactions
Overview
The Agent IFrame SDK Integration allows you to embed the Video agent portal directly into your existing web application using an iframe. This enables agents to conduct Video sessions without leaving your application, providing a seamless user experience.
Key Features
- Seamless Integration: Embed agent portal directly into your application
- Real-time Communication: Live video and audio communication capabilities
- Document Verification: Built-in document capture and verification tools
- Session Management: Complete session lifecycle management
- Customizable UI: Adapt to your application's design and branding
Basic Implementation
IFrame Code Structure
Required Parameters
Parameter | Description | Required | Example |
---|---|---|---|
base_url | The Video service base URL | Yes | https://vkyc.kwikid.com |
domain | Your organization's domain identifier | Yes | yourcompany.com |
agent_id | Unique identifier for the agent | Yes | agent_12345 |
password | Agent authentication password | Yes | secure_password_123 |
height | Height of the iframe in pixels | Yes | 600 |
width | Width of the iframe in pixels | Yes | 800 |
Complete Example
Required Permissions
The iframe requires specific browser permissions to function properly:
Camera Permission
- Purpose: Enable video capture for face verification and liveness detection
- Usage: Real-time video streaming during KYC sessions
- Implementation: Automatically requested when iframe loads
Microphone Permission
- Purpose: Enable audio communication between agent and customer
- Usage: Two-way voice communication during sessions
- Implementation: Required for voice-based verification
Geolocation Permission
- Purpose: Capture customer's location for compliance and verification
- Usage: Location-based verification and audit trails
- Implementation: Used for regulatory compliance
Display Capture Permission
- Purpose: Enable screen sharing and recording capabilities
- Usage: Document sharing and screen recording for verification
- Implementation: Required for document verification workflows
Advanced Configuration
Responsive Design
For responsive implementation, use percentage-based dimensions:
Custom Styling
Dynamic Loading
Security Considerations
Authentication
- Always use secure, encrypted passwords
- Implement proper session management
- Use HTTPS for all communications
Data Protection
- Ensure compliance with data protection regulations
- Implement proper data encryption
- Regular security audits
Access Control
- Implement role-based access control
- Monitor agent activities
- Log all session activities
Integration Best Practices
1. Error Handling
2. Performance Optimization
Troubleshooting
Common Issues
-
Permission Denied
- Ensure all required permissions are granted
- Check browser settings for camera/microphone access
- Verify HTTPS is being used
-
Iframe Not Loading
- Check network connectivity
- Verify URL parameters are correct
- Ensure domain is whitelisted
-
Audio/Video Issues
- Check device permissions
- Verify microphone and camera are working
- Test with different browsers
Debug Mode
Enable debug mode for troubleshooting:
API Reference
URL Parameters
Parameter | Type | Required | Description |
---|---|---|---|
d | string | Yes | Domain identifier |
a | string | Yes | Agent ID |
p | string | Yes | Agent password |
debug | boolean | No | Enable debug mode |
theme | string | No | UI theme (light/dark) |
lang | string | No | Language code |
Support and Documentation
For additional support or technical assistance:
- Technical Support: Contact our development team
- API Documentation: Refer to the complete API reference
- Integration Guide: Follow the step-by-step integration guide
- Best Practices: Review security and performance guidelines
Note: This document and its contents are confidential. Do not share without prior permission from Think Analytics India Pvt. Ltd.