Index of /devuser/tutorial_dark

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]support_knowledge.html2025-06-18 20:03 30K 
[TXT]sales_knowledge.html2025-06-18 20:03 28K 
[TXT]README.html2025-06-18 20:03 33K 
[TXT]lesson5_extending_agents.html2025-06-18 20:03 111K 
[TXT]lesson4_advanced_features.html2025-06-18 20:03 91K 
[TXT]lesson3_multi_agent_systems.html2025-06-18 20:03 54K 
[TXT]lesson2_knowledge_bases.html2025-06-18 20:03 54K 
[TXT]lesson1_first_agent.html2025-06-18 20:03 50K 

Documentation

SignalWire Agents SDK Tutorial 🔗 ↑ TOC

Welcome to the comprehensive tutorial for building AI-powered voice agents using the SignalWire Agents SDK. This tutorial will take you from creating your first simple agent to building sophisticated multi-agent systems with knowledge base integration.

Table of Contents 🔗 ↑ TOC

  1. What You'll Learn
  2. Prerequisites
  3. Tutorial Structure
  4. Getting Started
  5. Additional Resources

What You'll Learn 🔗 ↑ TOC

This tutorial covers everything you need to know to build production-ready AI voice agents:

Core Concepts:

Advanced Features:

Real-World Skills:


Prerequisites 🔗 ↑ TOC

Before starting this tutorial, ensure you have:

Required:

Recommended:


Tutorial Structure 🔗 ↑ TOC

This tutorial is organized into progressive lessons, each building on the previous:

Lesson 1: Creating Your First Agent 🔗 ↑ TOC

📖 Read Lesson 1

Learn the fundamentals by building a simple sales agent named Morgan. You'll understand:

Lesson 2: Adding Intelligence with Knowledge Bases 🔗 ↑ TOC

📖 Read Lesson 2

Enhance your agent with searchable knowledge using vector search. You'll learn:

Lesson 3: Building Multi-Agent Systems 🔗 ↑ TOC

📖 Read Lesson 3

Create a complete multi-agent system with routing and context sharing. You'll master:

Lesson 4: Advanced Features and Best Practices 🔗 ↑ TOC

📖 Read Lesson 4

Master advanced concepts for production deployment. Topics include:

Lesson 5: Extending Your Agents 🔗 ↑ TOC

📖 Read Lesson 5

Learn to add custom functionality and create sophisticated conversational flows:


Getting Started 🔗 ↑ TOC

Quick Installation 🔗 ↑ TOC

# Clone the repository (if not already done)
git clone https://github.com/signalwire/signalwire-agents.git
cd signalwire-agents

# Install the base SDK
pip install -e .

# Or install with search capabilities
pip install -e .[search]

Running Your First Agent 🔗 ↑ TOC

After completing Lesson 1, you can run your first agent:

# Run the simple sales agent
python tutorial/sales_agent.py

# The agent will be available at http://localhost:3000/

Testing with SWML 🔗 ↑ TOC

You can test your agent using curl:

curl -X POST http://localhost:3000/ \
  -H "Content-Type: application/json" \
  -d '{}'

Additional Resources 🔗 ↑ TOC

Quick Reference 🔗 ↑ TOC

Common Commands:

# Install with search support
pip install -e .[search]

# Build a search index
sw-search ./docs --output knowledge.swsearch

# Test SWAIG functions locally
swaig-test agent.py --list-tools
swaig-test agent.py --exec tool_name --param value

# Run with SSL enabled
SWML_SSL_ENABLED=true \
SWML_SSL_CERT_PATH=/path/to/cert.pem \
SWML_SSL_KEY_PATH=/path/to/key.pem \
SWML_DOMAIN=yourdomain.com \
python agent.py

Environment Variables:

Variable Description Default
SWML_SSL_ENABLED Enable HTTPS false
SWML_SSL_CERT_PATH Path to SSL certificate None
SWML_SSL_KEY_PATH Path to SSL private key None
SWML_DOMAIN Domain for SSL None
SWML_AUTH_USER Basic auth username Auto-generated
SWML_AUTH_PASS Basic auth password Auto-generated
PYTORCH_DISABLE_AVX512 Disable AVX512 for compatibility 0

Code Examples 🔗 ↑ TOC

All code examples from this tutorial are available in this directory:

Troubleshooting 🔗 ↑ TOC

Common Issues:

  1. Port already in use: bash # Change the port in your agent configuration port=3001 # or any available port

  2. Search module not found: bash # Install with search support pip install -e .[search]

  3. PyTorch compatibility issues: bash # Disable AVX512 instructions export PYTORCH_DISABLE_AVX512=1

Getting Help 🔗 ↑ TOC

Resources:

Debugging Tips:

Best Practices Checklist 🔗 ↑ TOC

Agent Development:

Production Deployment:

Security:


Ready to Begin? 🔗 ↑ TOC

Start with Lesson 1: Creating Your First Agent to begin your journey into building AI-powered voice agents with SignalWire!

This tutorial is part of the SignalWire Agents SDK. For the latest updates and more information, visit the official repository.