Spaces:
Running
Running
mysterious75 commited on
Commit Β·
14a4c77
1
Parent(s): 6edd960
Fix env loading for HuggingFace Spaces
Browse files- ai_agent.py +11 -8
- email-to-dean-grace.md +44 -0
ai_agent.py
CHANGED
|
@@ -7,15 +7,18 @@ import os
|
|
| 7 |
import json
|
| 8 |
import httpx
|
| 9 |
from typing import Dict, Any, List
|
| 10 |
-
from dotenv import load_dotenv
|
| 11 |
|
| 12 |
-
# Load
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
|
| 21 |
async def call_ai(prompt: str, system: str = "") -> str:
|
|
|
|
| 7 |
import json
|
| 8 |
import httpx
|
| 9 |
from typing import Dict, Any, List
|
|
|
|
| 10 |
|
| 11 |
+
# Load .env file if it exists (for local development)
|
| 12 |
+
try:
|
| 13 |
+
from dotenv import load_dotenv
|
| 14 |
+
load_dotenv()
|
| 15 |
+
except ImportError:
|
| 16 |
+
pass
|
| 17 |
+
|
| 18 |
+
# API Configuration - works with both .env file and HuggingFace Secrets
|
| 19 |
+
BASE_URL = os.environ.get("ANTHROPIC_BASE_URL", "https://api.anthropic.com")
|
| 20 |
+
API_KEY = os.environ.get("ANTHROPIC_API_KEY", "")
|
| 21 |
+
MODEL = os.environ.get("ANTHROPIC_MODEL", "claude-sonnet-4-20250514")
|
| 22 |
|
| 23 |
|
| 24 |
async def call_ai(prompt: str, system: str = "") -> str:
|
email-to-dean-grace.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Email Draft β Dean Grace (Aurora Office Furniture)
|
| 2 |
+
|
| 3 |
+
**To:** dean@auroraoffice.com.au
|
| 4 |
+
**Subject:** AI Operating System Demo β Built for Aurora Office Furniture
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
Hi Dean,
|
| 9 |
+
|
| 10 |
+
I saw your Upwork posting for a Lead AI Automation Engineer and was genuinely excited by Aurora's vision for an AI-driven business transformation.
|
| 11 |
+
|
| 12 |
+
I've built enterprise AI systems with similar requirements to what you described:
|
| 13 |
+
|
| 14 |
+
**Relevant Projects:**
|
| 15 |
+
- **Hermes Enterprise AI Platform** β Multi-agent AI system with Odoo ERP integration, MCP servers, and autonomous workflows ([GitHub](https://github.com/mysterious75/hermes-mcp-autonomous-research-platform))
|
| 16 |
+
- **Fleet Management Agent** β Autonomous 24/7 monitoring agent with real-time dashboards, predictive alerts, and human-in-the-loop escalation ([GitHub](https://github.com/mysterious75/fleet-ryan-agent))
|
| 17 |
+
|
| 18 |
+
**What I've Built for Aurora:**
|
| 19 |
+
|
| 20 |
+
I've prepared a working demo tailored specifically to your business β an AI Operating System that:
|
| 21 |
+
|
| 22 |
+
1. **Connects to Odoo ERP** β Analyzes products, orders, customers, and inventory
|
| 23 |
+
2. **Identifies Risks** β Out-of-stock items, overdue receivables, low-margin products
|
| 24 |
+
3. **Prioritizes Actions** β Ranked by business impact, not just data dumps
|
| 25 |
+
4. **Interactive AI Assistant** β Ask questions about your business in natural language
|
| 26 |
+
|
| 27 |
+
**Live Demo:** https://vora-sonnet-aurora-ai-os.hf.space
|
| 28 |
+
|
| 29 |
+
**Source Code:** https://github.com/mysterious75/aurora-ai-operating-system
|
| 30 |
+
|
| 31 |
+
The demo uses mock data, but the architecture is ready for live Odoo integration. I can have it connected to your actual ERP within a week.
|
| 32 |
+
|
| 33 |
+
**My Approach for Aurora:**
|
| 34 |
+
- Week 1-2: Connect live Odoo data + basic automations
|
| 35 |
+
- Week 3-4: Sales pipeline analysis + inventory optimization
|
| 36 |
+
- Week 5-6: Customer insights + automated follow-ups
|
| 37 |
+
- Ongoing: New AI capabilities based on business needs
|
| 38 |
+
|
| 39 |
+
Would you have 15 minutes this week for a quick walkthrough of the demo? I'd love to understand your specific priorities and show how this could work for your team.
|
| 40 |
+
|
| 41 |
+
Best regards,
|
| 42 |
+
[Your Name]
|
| 43 |
+
AI Automation Engineer
|
| 44 |
+
GitHub: https://github.com/mysterious75
|