Learn how to deploy PraisonAI agents as RESTful APIs for production environments
Install Dependencies
Set API Key
Deploy a Simple Agent API
simple-api.py
with the following code:Run the API Server
http://localhost:3030/ask
http://localhost:3030/weather
http://localhost:3030/stock
http://localhost:3030/travel
Create a Dockerfile
Create requirements.txt
Build and Run Docker Container
Create an EC2 Instance
Install Dependencies
Configure Security Group
Run with Systemd
Build Docker Image
Push to Container Registry
Deploy to Cloud Run