How pinninti-thanuj-babu/godavari-ruchulu-bot works
Godavari Ruchulu Bot is a WhatsApp AI ordering agent with a restaurant-admin portal. Its customer workflow covers menu discovery, cart/order staging and confirmation, payment, and delivery; the admin portal manages restaurant operations and receives order and delivery updates. Source excerpts support several specific service calls, but not the complete WhatsApp startup and conversation wiring, so uncertain links are omitted. The tree and package description identify capabilities whose detailed implementation was not sampled.
Main entry points: server.ts Admin portal API · db.ts Application database · session-manager.ts Conversation and cart · order.ts Order and payment services
Components 24
Runtime entry
- Application startup
godavari-ruchulu-bot/src/index.ts
WhatsApp ordering
- Bot runtime
godavari-ruchulu-bot/src/whatsapp/run.ts - Conversation and cart
godavari-ruchulu-bot/src/whatsapp/session-manager.ts - WhatsApp adapter
godavari-ruchulu-bot/src/whatsapp/adapter.ts - Message rendering
godavari-ruchulu-bot/src/whatsapp/renderers.ts - AI agent
godavari-ruchulu-bot/src/ai/agent.ts - Ordering tools
godavari-ruchulu-bot/src/ai/tools.ts
Restaurant operations
- Menu services
godavari-ruchulu-bot/src/services/menu.ts - Customer and order services
godavari-ruchulu-bot/src/services/customer.ts - Order and payment services
godavari-ruchulu-bot/src/services/order.ts - Restaurant data
godavari-ruchulu-bot/src/services/restaurant.ts - Admin portal API
godavari-ruchulu-bot/src/admin/server.ts - Admin dashboard
godavari-ruchulu-bot/src/admin/public/js/app.js - Admin authentication
godavari-ruchulu-bot/src/admin/auth.ts - Admin event notifications
godavari-ruchulu-bot/src/services/events.ts - Application database
godavari-ruchulu-bot/src/db.ts
Delivery logistics
- Delivery management
godavari-ruchulu-bot/src/services/delivery/delivery-manager.ts - Delivery orchestration
godavari-ruchulu-bot/src/services/delivery/orchestrator.ts
External integrations
- LLM providers
godavari-ruchulu-bot/src/ai/llm.ts - Shiprocket integration
godavari-ruchulu-bot/src/services/delivery/shiprocket.ts - Razorpay
godavari-ruchulu-bot/src/services/razorpay.ts - WhatsApp Cloud API
godavari-ruchulu-bot/src/whatsapp/cloud.ts
Other components
- Customer
- Restaurant staff
Connections 31
- Application startup → Admin portal API: starts portal
- Application startup → Bot runtime: starts bot
- Customer → Bot runtime: messages
- Conversation and cart → Customer and order services: loads customer
- Conversation and cart → Order and payment services: loads order
- Conversation and cart → Menu services: reads menu
- Conversation and cart → Message rendering: renders replies
- Conversation and cart → Customer and order services: logs messages
- Restaurant staff → Admin dashboard: uses dashboard
- Admin dashboard → Admin portal API: calls API
- Admin portal API → Menu services: reads menu
- Admin portal API → Order and payment services: updates payment
- Admin portal API → Customer and order services: loads customer
- Admin portal API → Admin authentication: authenticates
- Admin portal API → Admin event notifications: notifies updates
- Delivery management → Delivery orchestration: requests quotes
- Delivery management → Delivery orchestration: dispatches order
- Delivery management → Admin event notifications: notifies status
- Delivery orchestration → Shiprocket integration: quotes and dispatches
- Delivery orchestration → Application database: reads tracking
- Menu services → Application database: reads menu data
- Customer and order services → Application database: reads and writes
- Order and payment services → Application database: reads and writes
- Restaurant data → Application database: reads configuration
- Admin authentication → Application database: checks accounts
- Delivery management → Application database: stores quotes and dispatch
- AI agent → LLM providers: requests completions
- Ordering tools → Menu services: uses menu data
- Ordering tools → Order and payment services: uses order actions
- Order and payment services → Razorpay: creates payment links
- Bot runtime → WhatsApp Cloud API: connects API