How gowshikaselvi07-byte/crochet-business-chatbot works
This is a small Flask chatbot for a crochet business. A customer can open the chat page or submit a message to the chat endpoint; the endpoint applies business-specific instructions, includes recent conversation history, and requests a reply from Groq. The README describes the same customer-facing capabilities, though it calls the interface Streamlit; the sampled runtime is Flask. The HTML template and serverless adapter are present, but template behavior beyond rendering and deployment wiring beyond the adapter import are not established here.
Main entry points: app.py Chat endpoint · index.py Serverless adapter · index.html Chat page
Components 9
Web interface
- Chat page
templates/index.html - Page route
app.py - Serverless adapter
api/index.py
Assistant runtime
- Chat endpoint
app.py - Business policy
app.py - History handling
app.py
API integration
- Groq client
app.py - Groq API
Other components
- Customer
Connections 8
- Customer → Page route: opens page
app.py - Page route → Chat page: renders
app.py - Customer → Chat endpoint: posts message
app.py - Chat endpoint → Business policy: sets instructions
app.py - Chat endpoint → History handling: filters history
app.py - Chat endpoint → Groq client: creates and calls
app.py - Groq client → Groq API: requests completion
app.py - Serverless adapter → Page route: imports app
api/index.py