How zuzith3art1st/smme-agent works
SMME-AGENT is a Streamlit prototype for streamlining Seed2Harvest farmer orders. A farmer authorizes access, browses products and builds a basket, then can chat with an AI assistant and request a checkout receipt. The app also presents a global activity feed from order data. The sampled code supports receipt confirmation and basket clearing, but does not show writing confirmed orders; the feed reads existing order records. Components are grouped by workflow and persistence; several responsibilities share app.py.
Main entry points: app.py Streamlit app · The_Database.py Database initializer · the_farm_agent.db Farm agent database · The_Main_Database.sql Database schema
Components 14
Ordering workflow
- Streamlit app
app.py - Farmer authorization
app.py - Product catalogue
app.py - Order basket
app.py - Receipt checkout
app.py - Global activity feed
app.py
AI assistance
- Chat handling
app.py - Seed2Harvest assistant
app.py
Data persistence
- SQLite access
app.py - Farm agent database
the_farm_agent.db - Database initializer
The_Database.py - Database schema
The_Main_Database.sql
Other components
- Farmer
- Groq API
Connections 17
- Farmer → Streamlit app: uses
- Streamlit app → Farmer authorization: displays
- Farmer authorization → SQLite access: creates farmer
- Streamlit app → Product catalogue: displays
- Product catalogue → SQLite access: reads products
- Streamlit app → Order basket: updates
- Streamlit app → Chat handling: handles messages
- Chat handling → Seed2Harvest assistant: requests reply
- Seed2Harvest assistant → SQLite access: reads catalogue
- Seed2Harvest assistant → Groq API: sends chat
- Streamlit app → Receipt checkout: displays receipt
- Receipt checkout → SQLite access: reads prices
- Streamlit app → Global activity feed: displays feed
- Global activity feed → SQLite access: reads order data
- SQLite access → Farm agent database: queries
- Database initializer → Database schema: loads SQL
- Database initializer → Farm agent database: initializes