These notes are about how to build an AI agent from scratch.
Workflow
<aside> 💡
API → context/history → tool calling → RAG → agent basics → LangChain → LangGraph
</aside>
We will use Python and Django to develop this project. For details on installation and setup, see here.
Overall, we need:
url.pyviews.pyNote: for all the complete code mentioned in these notes, check the GitHub repo.
User sends a message
↓
Backend receives the message
↓
Backend calls an AI API
↓
AI API returns a response
↓
Backend optionally saves the conversation
↓
Backend sends the response back to the user