Skip to main content

Quick Start Guide

Get your Screen-aware AI agent running in just a few minutes with this step-by-step guide.

Installation

Install the SAMMY package using your preferred package manager:
For UI components, also install the companion UI kit:

Authentication

SAMMY requires JWT authentication. Set up your authentication configuration:
1

Get Your JWT Token

Obtain a JWT token from your authentication system or SAMMY Labs API.
2

Create Auth Hook

3

Environment Variables

Add these environment variables to your .env.local:

Basic Usage

1. Wrap Your App

Import the required components and wrap your application:

2. Create Your First Screen-aware AI Agent

Use the context hook to interact with the agent:

Enhanced Configuration

Audio Processing

Add advanced audio processing for better voice quality:

Learn More About Audio

Explore advanced audio processing features including noise suppression, noise gates, and environment presets.

Screen Capture

Configure screen capture for visual context:

Screen Capture Guide

Learn about render-based and video-based screen capture options.

Next Steps

Now that you have a basic agent running, explore these advanced features:

Interactive Guides

Add walkthrough experiences with URL-based guide activation

Custom Tools

Extend agent capabilities with custom tools and actions

Memory Management

Enable conversation memory and context tracking

Observability

Monitor performance and track events in production

Common Configuration Examples

Production Setup

Development Setup

Troubleshooting

Common Issues

Token expired errors:
If you encounter issues, check the error handling guide for comprehensive troubleshooting steps.

What’s Next?

1

Explore Features

Check out advanced features like VAD configuration and MCP integration
2

Add Tools

Learn how to create custom tools for your specific use case
3

Monitor Performance

Set up observability to track your agent’s performance
4

Handle Errors

Implement robust error handling for production use

Need Help?

Visit our comprehensive API reference or explore specific feature documentation for detailed implementation guides.