A simple “note-taking agent” web app that uses an LLM (via LangGraph) to understand natural-language instructions and save/read notes.
Deployed on Vercel with a Supabase Postgres database for persistent storage.
- Vercel URL: https://agentd-phi.vercel.app/
- Web UI (FastAPI + Jinja2 template)
- Agent powered by LangGraph ReAct + OpenAI (ChatOpenAI)
- Save notes to a Supabase table (
notes) with fields:filename(text)content(text)created_at(timestamp)
- FastAPI
- LangGraph + LangChain
- OpenAI API (gpt-4o-mini)
- Supabase (Postgres)
- Vercel (serverless deployment)
- User enters a request (e.g., “save a note: human biology”).
- Backend calls the agent.
- Agent decides which tool to use (write/read).
- Note is stored in Supabase for persistence.
pip install -r requirements.txt
### Environment Variables (required)
Set these in your environment (Vercel: Project → Settings → Environment Variables).
- OPENAI_API_KEY
- SUPABASE_URL
- SUPABASE_ANON_KEY
# (or) use a Postgres connection string if your backend uses that:
- SUPABASE_POSTGRES_URL