How jarif87/shopify-ai-agent works
This is a single-script Shopify operations agent. A store owner starts its repeating agent loop, which processes open orders, monitors unread Gmail messages, and checks upcoming Calendar events. Order processing sends confirmations, schedules follow-ups, and fulfills orders; email monitoring skips automated senders and uses Groq to draft replies before sending them and marking messages read. The graph reflects the README’s documented order fulfillment capability; the excerpt does not show that implementation or all loop details, so those links are cited to the README.
Main entry points: main.py Order Processing
Components 12
Agent Runtime
- Agent Loop
main.py
Order Operations
- Order Processing
main.py - Shopify Store
Email Support
- Email Monitoring
main.py - AI Reply Generation
main.py - Email Sending
main.py - Gmail
- Grok AI
Calendar Operations
- Follow-up Scheduling
main.py - Event Checking
main.py - Google Calendar
Other components
- Store Owner
Connections 16
- Store Owner → Agent Loop: starts
README.md - Agent Loop → Order Processing: runs
main.py - Agent Loop → Email Monitoring: runs
main.py - Agent Loop → Event Checking: runs
main.py - Order Processing → Shopify Store: retrieves orders
main.py - Order Processing → Email Sending: sends confirmation
main.py - Order Processing → Follow-up Scheduling: schedules follow-up
main.py - Order Processing → Shopify Store: fulfills orders
README.md - Email Monitoring → Gmail: reads messages
main.py - Email Monitoring → AI Reply Generation: requests reply
main.py - Email Monitoring → Email Sending: sends reply
main.py - Email Monitoring → Gmail: marks read
main.py - AI Reply Generation → Grok AI: generates reply
main.py - Email Sending → Gmail: sends message
main.py - Follow-up Scheduling → Google Calendar: inserts event
main.py - Event Checking → Google Calendar: lists events
main.py