Chatbot using fastapi and langgraph
- Install dependencies
pip install -r requirements.txt- Set up environment variables
cp example.env .envpaste your api keys in the .env file
- Run the application
uvicorn main:app --reload- Access the application
http://localhost:8000- Chat with the chatbot
curl -X POST "http://127.0.0.1:8000/chat" \
-H "Content-Type: application/json" \
-d '{
"messages": ["Hello, how are you?"],
"thread_id": "example_thread"
}'