Step-by-step instructions to get your custom AI agent running in production. No DevOps experience required.
Follow these steps to deploy your AI agent to production
Within 4 hours of payment, you'll receive an email with:
Prepare your server or local machine:
# Install Python dependencies pip install -r requirements.txt # Or use virtual environment (recommended) python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
Set up your environment variables:
# Example .env file OPENAI_API_KEY=sk-...your-key-here GOOGLE_CALENDAR_API_KEY=... CHIRO_TOUCH_API_KEY=... TWILIO_ACCOUNT_SID=... TWILIO_AUTH_TOKEN=... SMTP_HOST=smtp.gmail.com SMTP_PORT=587 [email protected] SMTP_PASSWORD=your-app-password
Run your agent in development mode:
# Run in test mode python agent.py --test # Run with verbose logging python agent.py --verbose # Test specific function python test_booking.py
Choose your deployment method:
# Deploy with Docker docker build -t my-ai-agent . docker run -d --env-file .env my-ai-agent # Or use PM2 for Node.js-style process management pm2 start agent.py --name "booking-agent" pm2 save pm2 startup
Keep your agent running smoothly:
# View logs tail -f logs/agent.log # Check process status pm2 status # Monitor resource usage htop # or top on Linux
Choose the deployment method that fits your infrastructure
Deploy on your own VPS or dedicated server
Use AWS, Google Cloud, or Azure
Containerized deployment anywhere