From Zero to Autonomous in 5 Minutes

Time to first value: 5 minutes

By the end of this guide, you’ll have a live AI agent handling real customer conversations.

What You’ll Build

In the next 5 minutes, you’ll:

  1. ✅ Create a StateSet account
  2. ✅ Deploy an AI customer service agent
  3. ✅ Send your first message
  4. ✅ See autonomous operations in action

No complex setup. No infrastructure. Just results.

Prerequisites

All you need is:

  • A web browser
  • An email address
  • 5 minutes

That’s it. Really.

Step 1: Create Your Account (30 seconds)

1

Sign Up

Go to stateset.com/signup and enter your email.

# Or use the CLI
curl -L https://stateset.com/install | sh
stateset signup
2

Verify Email

Click the link in your email. You’re now in your StateSet dashboard.

Step 2: Deploy Your First Agent (2 minutes)

In your dashboard, click the “Deploy Agent” button and choose:

Customer Service Pro

Pre-trained on 10M+ support conversations

Sales Assistant

Optimized for conversions and upselling

Operations Manager

Handles orders, inventory, and logistics

Option B: Code Your Agent

// Install the SDK
npm install stateset-node

// Create your agent (agent.js)
import { StateSetClient } from 'stateset-node';

const client = new StateSetClient({
  apiKey: 'your_api_key_here' // Get from dashboard
});

async function deployAgent() {
  const agent = await client.agents.create({
    name: 'Alex',
    role: 'Customer Success Specialist',
    personality: 'Friendly, helpful, and solution-oriented',
    greeting: 'Hi! I\'m Alex from customer success. How can I help you today?',
    capabilities: [
      'answer_product_questions',
      'track_orders',
      'process_returns',
      'technical_support'
    ]
  });
  
  console.log(`Agent deployed! ID: ${agent.id}`);
  console.log(`Chat URL: https://app.stateset.com/chat/${agent.id}`);
}

deployAgent();

Run it:

node agent.js

Step 3: Test Your Agent (1 minute)

Live Chat Test

  1. Open the chat URL from the previous step
  2. Try these test messages:
"Hi, I need help with my order"
"What's your return policy?"
"I'm having trouble logging in"
"Can you help me track order #12345?"

API Test

# Send a message via API
curl -X POST https://api.stateset.com/v1/chat \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "agent_xxx",
    "message": "Hello, I need help with my order",
    "session_id": "test_session_001"
  }'

# Response
{
  "response": "I'd be happy to help you with your order! Could you please provide your order number or email address so I can look that up for you?",
  "confidence": 0.98,
  "suggested_actions": ["lookup_order", "check_status"],
  "session_id": "test_session_001"
}

Step 4: See the Magic (1.5 minutes)

Real-Time Dashboard

Watch your agent work in real-time:

  1. Go to your StateSet Dashboard
  2. Click on “Agent Analytics”
  3. See:
    • 🎯 Conversations handled
    • ⚡ Average response time (usually less than 1 second)
    • 😊 Customer satisfaction score
    • 📈 Issues resolved autonomously

What Just Happened?

Your AI agent is now:

  • Learning from every interaction
  • Improving response quality automatically
  • Scaling to handle unlimited conversations
  • Operating 24/7 without breaks

Your Agent’s Capabilities

Out of the box, your agent can:

  • Answer product questions
  • Track orders and shipments
  • Process returns and refunds
  • Handle complaints with empathy
  • Escalate complex issues

Next Steps: Level Up (Optional)

Add Knowledge Base (2 minutes)

Make your agent smarter with your business knowledge:

// Upload your documentation
const kb = await client.knowledgeBase.create({
  name: 'Product Documentation',
  agent_id: agent.id
});

await kb.uploadDocument('./product-guide.pdf');
await kb.uploadDocument('./faq.md');

// Your agent now knows everything in these docs!

Connect Your Systems (5 minutes)

Let your agent take real actions:

// Connect to your order system
await agent.addIntegration({
  type: 'webhook',
  name: 'order_lookup',
  endpoint: 'https://api.yourstore.com/orders',
  authentication: {
    type: 'api_key',
    key: process.env.STORE_API_KEY
  }
});

// Now your agent can actually look up orders!

Deploy to Your Website (3 minutes)

<!-- Add to your website -->
<script src="https://cdn.stateset.com/widget.js"></script>
<script>
  StateSet.init({
    agentId: 'agent_xxx',
    position: 'bottom-right',
    primaryColor: '#6366f1',
    greeting: 'Hi! How can I help you today?'
  });
</script>

Common Questions

Congratulations! 🎉

You’ve just deployed an AI agent that can:

  • Handle unlimited conversations simultaneously
  • Learn and improve automatically
  • Work 24/7 without breaks
  • Scale with your business

Your autonomous operations journey has begun.

Ready for More?


Need help? Our agents (yes, AI agents) are standing by at support@stateset.com or just click the chat bubble below.