How a-i-p-a/csrassist works
CSRAssist is a set of CSR-assistance tools, with a documented Slack-to-Discord proof of concept as its principal workflow: a Slack request to sell a TV can include photos, which are OCR-processed and summarized before the task is published for Discord. The graph also shows the router’s Redis-backed message path and the Discord bot’s polling and reply behavior. The README documents the setup and workflow; unsampled integration details are not inferred.
Main entry points: slack_bot.py Slack bot · aipa.py Channel router · discord_bot.py Discord bot · stringlist.py TV description
Components 12
Slack Intake
- Slack bot
slack_integration/slack_bot.py - Task state
slack_integration/slack_bot.py - Photo downloads
slack_integration/slack_bot.py
TV Analysis
- Image OCR
ocr_integration/ocr.py - TV description
stringlist_semantics/stringlist.py
Message Routing
- Channel router
router/aipa.py - Redis pub/sub
Discord Delivery
- Discord bot
discord_integration/discord_bot.py
Other components
- CSR / requester
- Slack
- OpenAI API
- Discord channel
Connections 15
- CSR / requester → Slack bot: sends request
README.md - Slack bot → Slack: receives events
slack_integration/slack_bot.py - Slack bot → Task state: updates state
slack_integration/slack_bot.py - Slack bot → Photo downloads: downloads files
slack_integration/slack_bot.py - Photo downloads → Image OCR: extracts text
slack_integration/slack_bot.py - Slack bot → TV description: requests description
slack_integration/slack_bot.py - TV description → OpenAI API: requests completion
stringlist_semantics/stringlist.py - Slack bot → Slack: sends replies
slack_integration/slack_bot.py - Slack bot → Channel router: publishes task
slack_integration/slack_bot.py - Channel router → Redis pub/sub: publishes messages
router/aipa.py - Channel router → Redis pub/sub: subscribes channels
router/aipa.py - Discord bot → Channel router: polls queue
discord_integration/discord_bot.py - Discord bot → Channel router: starts listener
discord_integration/discord_bot.py - Discord bot → Discord channel: sends messages
discord_integration/discord_bot.py - Discord channel → Discord bot: delivers messages
discord_integration/discord_bot.py