SAMMY Implementation Guide
The comprehensive guide for integrating@sammy-labs/sammy-three
Screen-aware AI agent into your React application.
What is SAMMY?
SAMMY is a production-ready Screen-aware AI agent package that provides:Voice Conversations
Real-time voice interactions
Screen Capture
Optimized visual context capture with render or video methods
Memory Management
Semantic search and intelligent context injection
Interactive Guides
Built-in walkthrough system for user onboarding
Quick Start
Get up and running with SAMMY in minutes.1
Install the package
2
Set up authentication
3
Wrap your application
4
Use in your components
Core Configuration
Configure SAMMY to match your application’s needs.Feature Documentation
Explore the full capabilities of SAMMY.Audio Processing
Advanced noise suppression, noise gate, and environment presets
Screen Capture
Render-based and video-based capture with optimization strategies
Interactive Guides
Built-in walkthrough system with URL activation and progress tracking
Custom Tools
Extend agent capabilities with custom tools and handlers
MCP Integration
Model Context Protocol support for dynamic tool discovery
Observability
Comprehensive event tracking, analytics, and debugging
Context Management
Automatic context tracking and memory management
Performance
Optimization strategies and worker architecture
Environment Variables
Configure SAMMY using environment variables.Common Issues & Solutions
- Authentication Errors
- Microphone Issues
- Audio Stuttering
- Noise Issues
Token Expired
Best Practices
Authentication: Always implement token refresh logic and handle expiration gracefully
Audio Configuration: Use environment presets for quick setup and test noise gate threshold
Production: Enable worker mode for better performance and prevent main thread blocking
Capture Methods: Use
render
for web apps (recommended) and video
for full screen needsError Handling: Implement both provider-level and component-level error boundaries
Performance: Enable audio-aware capture and use appropriate quality settings
Monitoring: Use observability for production monitoring and debug logs in development
Additional Resources
API Reference
Complete API documentation
Error Handling
Comprehensive error management
Migration Guide
Upgrade from legacy versions