Overview
This page provides complete, copy-paste ready configuration examples for different use cases using theAgentProvider component.
Minimal Setup
The simplest configuration to get started:Power User Setup
Full-featured configuration for users who need comprehensive assistance:Developer / Debug Setup
Configuration optimized for development and debugging:Privacy-Focused Setup
Minimal data collection for privacy-conscious users:Multi-Tier Subscription Setup
Different configurations based on subscription level:Next.js App Router
Complete setup for Next.js with App Router:app/layout.tsx
components/moss-assistant.tsx
app/api/moss-token/route.ts
Custom Branding Setup
Customize the assistant’s visual appearance to match your brand:High-Performance Setup
Optimized for minimal overhead:Best Practices Summary
Dashboard vs SDK Configuration
Use Dashboard Settings When:- Setting application-wide defaults
- Configuring security policies (allowed domains, API keys)
- Managing AI instructions that apply to all users
- Settings that rarely change
- Per-user customization is needed
- Configuration depends on environment (dev/staging/prod)
- Different user tiers need different settings
- Integrating with existing user preferences
Performance Tips
- Screenshot Mode: Use
viewportfor long pages - Stability Layers: Disable
loadingIndicatorsandlayoutShiftunless needed - Session Recording: Disable for privacy-sensitive pages
- Log Level: Use
WARNorERRORin production
Security Tips
- Never expose API keys in client-side code
- Use domain restrictions in Dashboard
- Implement user consent for session recording
- Use hashed/anonymized user IDs
Need Help?
SDK Reference
Complete SDK options reference
Advanced Configuration
Stability tuning and advanced features