Build the Future of Commerce
Welcome to the StateSet Documentation. Whether you’re building your first AI agent or architecting a complex autonomous system, this guide will help you harness the full power of StateSet’s platform.New to StateSet? Start with our Quickstart Guide to deploy
your first agent, then come back here to dive deeper.
Why Developers Love StateSet
Modern Stack
Built with Rust, Axum, GraphQL, and cutting-edge AI models
Developer First
Clean APIs, comprehensive SDKs for 11 languages, and documentation that
actually helps
Instant Deploy
From intent to outcome in minutes, not months
Getting Started
Prerequisites
Before you begin, ensure you have:- Required
- Recommended
- Node.js 22+ or Python 3.8+
Installation
npm
python
Core Concepts
1. Agents: Your AI Workforce
Agents are autonomous AI entities that can understand, decide, and act on behalf of your business. Each agent has:- Role & Personality: Define its behavior and communication style
- Capabilities: Specific skills like order management, support, or analytics
- Knowledge Base: Access to your business documents and processes
- Integrations: Connections to external systems and APIs
2. Sandboxes: Orchestrating Agentic Operations
Sandboxes are isolated environments that allow you to run your AI Agents in a safe and controlled manner. They provide:- Secure Execution: Run code and tools without affecting production
- Resource Management: Control compute and memory allocation
- Network Isolation: Isolate external calls and webhooks
- State Management: Track agent decisions and outcomes
🚀 Ship faster with StateSet Sandbox Get free sandbox credits when you
sign up today. No credit card required.
3. Workflows: Orchestrating Multi-Step Operations
Workflows handle long-running processes that span multiple steps and systems:4. Events: Real-Time Business Signals
StateSet emits events for every meaningful state change:Essential SDK Methods
Injecting Messages
Send messages to agents or conversations:Handling Conversations
Manage multi-turn conversations:Managing Knowledge Base
Upload and query documents:Architecture Patterns
Pattern 1: Agent + Integration
Connect agents to your existing systems:Pattern 2: Event-Driven Workflow
React to business events automatically:Pattern 3: Multi-Agent Orchestration
Coordinate multiple specialized agents:Error Handling Best Practices
Graceful Degradation
Retry Strategies
Performance Optimization
Batch Operations
Caching Strategy
Testing
Unit Testing Agents
Integration Testing
Monitoring & Debugging
Enable Debug Logging
Track Agent Performance
Next Steps
API Reference
Complete API documentation with all endpoints and parameters
SDK Guides
Language-specific guides for Node.js, Python, Ruby, and more
Best Practices
Production-ready patterns and security considerations