CoolFace
Apppublic

series13/personal-agent

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

Sanjay's Personal AI Agent - CrewAI Backend

A FastAPI + CrewAI powered personal AI agent with specialist crews.

Agents

  • —Researcher — Web research using DuckDuckGo (free, no API key)
  • —Email Manager — Read & send Gmail on your behalf

Environment Variables (Set in HF Spaces Secrets)

VariableDescription
GROQ_API_KEYYour Groq API key (free from console.groq.com)
GMAIL_TOKENGmail OAuth token JSON string
AGENT_SECRETYour custom secret key to protect the endpoint

API Endpoints

  • —GET / — Health check
  • —GET /health — Ping (used for keep-alive)
  • —POST /execute — Run an agent crew

Example Request

json
POST /execute
Headers: x-agent-secret: your_secret_here

{
  "command": "Find top 5 AI hackathons happening this month",
  "crew_type": "researcher",
  "extra": {}
}

Email Example

json
{
  "command": "Send a follow up email",
  "crew_type": "email_manager",
  "extra": {
    "action": "send",
    "to": "someone@gmail.com",
    "subject": "Follow Up",
    "body": "Hi, just following up on our conversation..."
  }
}