AI-assisted tweet drafting with research, generation, and reflection loops built with LangGraph, Groq, Tavily Search, and Streamlit.
- Searches for recent context on a topic with Tavily.
- Generates a draft tweet with a Groq-hosted Llama model.
- Runs a reflection loop to critique and improve the draft.
- Shows the final tweet, research snippets, and generation process in a Streamlit UI.
-
Install dependencies:
pip install -r requirements.txt
-
Create a local environment file:
Copy-Item .env.example .env -
Add your API keys to
.env:GROQ_API_KEY=your_groq_api_key_here TAVILY_API_KEY=your_tavily_api_key_here
-
Run the app:
streamlit run fastbot.py
Do not commit .env files or API keys. Use .env.example for placeholders only.