Production-ready AI-powered workflow automation system built for Seyah Space. Demonstrates expertise in FastAPI, async Python, LLM integration, and scalable backend architecture.
π’ Live API: https://seyah-workflow-automation.onrender.com/docs
π API Key: seyah-demo-key-2026
π¨β Built by: Bashir (BashOps)
Try the live API right now:
- Go to https://seyah-workflow-automation.onrender.com/docs
- Click Authorize (top right)
- Enter API Key:
seyah-demo-key-2026 - Try any endpoint!
Example: Automate a task
curl -X POST "https://seyah-workflow-automation.onrender.com/api/v1/automate/task" \
-H "Content-Type: application/json" \
-H "X-API-Key: seyah-demo-key-2026" \
-d '{
"description": "Summarize the benefits of FastAPI for building modern APIs"
}'- Create multi-step automation workflows
- Store workflow definitions in PostgreSQL
- Execute workflows on-demand
- Natural language task execution
- Groq LLM integration (Mixtral-8x7b)
- Sub-200ms response times
- Structured JSON output
- Extract entities from text
- Auto-summarization
- Categorization & tagging
- Key information extraction
- Sequential step execution
- Progress tracking
- Status monitoring
- Error handling
| Layer | Technology |
|---|---|
| Framework | FastAPI 0.109.0 |
| Language | Python 3.11+ |
| Database | PostgreSQL / SQLite (Async SQLAlchemy) |
| AI/LLM | Groq API (Mixtral-8x7b-32768) |
| Validation | Pydantic V2 |
| Deployment | Render |
| API Docs | OpenAPI 3.1 / Swagger UI |
POST /api/v1/workflows/create- Create new workflowPOST /api/v1/workflows/{id}/execute- Execute workflow
POST /api/v1/automate/task- AI-powered task executionPOST /api/v1/process/document- Intelligent document processing
GET /- Root health check
The app uses SQLAlchemy async engine with a flexible configuration:
- Development/Demo: SQLite + aiosqlite (zero setup)
- Production: PostgreSQL + asyncpg (one-line toggle)
This allows instant testing without Docker while maintaining production readiness.
Why Groq?
- 10-50x faster than traditional LLM APIs
- Critical for real-time workflow automation- Cost-effective for high-volume tasks
- Mixtral-8x7b provides excellent reasoning capabilities
- All endpoints use
async/await - Non-blocking database queries
- High concurrency support
- Optimized for I/O-bound operations
git clone https://github.com/BashOpsDev/seyah-workflow-automation.git
cd seyah-workflow-automationpython -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activatepip install -r requirements.txt# Copy example env file
cp .env.example .env
# Edit .env and add your Groq API key
# Get yours at: https://console.groq.com.env file:
DATABASE_URL=sqlite+aiosqlite:///./seyah_demo.db
GROQ_API_KEY=your_groq_api_key_here
API_KEY=seyah-demo-key-2026
SECRET_KEY=your_secret_key_here```
### **5. Run the Application**
```bash
python run.pyServer starts at: http://localhost:8000
API Docs: http://localhost:8000/docs
curl -X POST "http://localhost:8000/api/v1/workflows/create" \
-H "Content-Type: application/json" \
-H "X-API-Key: seyah-demo-key-2026" \
-d '{
"name": "Daily News Summary",
"description": "Summarize top AI news daily",
"steps": [
{"step_id": "fetch", "action": "scrape", "parameters": {"url": "https://news.ycombinator.com"}},
{"step_id": "summarize", "action": "llm", "parameters": {"max_length": 500}},
{"step_id": "email", "action": "send", "parameters": {"to": "user@example.com"}}
]
}'curl -X POST "http://localhost:8000/api/v1/automate/task" \
-H "Content-Type: application/json" \
-H "X-API-Key: seyah-demo-key-2026" \
-d '{
"description": "Explain the benefits of async Python for web development"
}'curl -X POST "http://localhost:8000/api/v1/process/document" \
-H "Content-Type: application/json" \
-H "X-API-Key: seyah-demo-key-2026" \
-d '{
"content": "Seyah Space is building AI-powered automation tools using Python and FastAPI to help businesses streamline workflows and increase productivity."
}'git add .
git commit -m "Production-ready workflow automation API"
git push origin main- Go to https://render.com
- Click New β Web Service
- Connect your GitHub repo
- Configure:
- Name: seyah-workflow-automation
- Region: Choose closest to you
- Branch: main
- Runtime: Python 3
- Build Command:
pip install -r requirements.txt - Start Command:
uvicorn app.main:app --host 0.0.0.0 --port $PORT
In Render dashboard, add:
DATABASE_URL(Render auto-creates PostgreSQL)GROQ_API_KEY=your_key_hereAPI_KEY=seyah-demo-key-2026SECRET_KEY=your_random_secret
Click Create Web Service β Wait 3-5 minutes β Done!
- Framework: FastAPI, Python 3.10+
- Database: PostgreSQL / SQLite (via SQLAlchemy Async)
- AI Integration: Groq API
- Validation: Pydantic V2
- Clone & Install Dependencies
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt