How erasable-mak/minipulse works
MiniPulse receives Slack mentions, verifies webhook signatures, acknowledges events, and processes accepted queries asynchronously. The adapter forwards each query to the AI service, which maintains per-thread memory and runs a Groq tool-calling loop; registered CRM tools query HubSpot, and the answer is posted back to the originating Slack thread. The graph preserves the documented contact and deal-query capabilities. Some wiring is based on README statements and the SOURCE INDEX; unsampled implementations are represented at their exact source paths.
Main entry points: orchestrator.py LLM Orchestrator · events.py Mention Handler · app/main.py Webhook API · app/main.py Query API
Components 14
Slack Adapter
- Webhook API
services/slack-adapter/app/main.py - Signature Verification
services/slack-adapter/app/middleware/signature.py - Mention Handler
services/slack-adapter/app/handlers/events.py
AI Orchestration
- Query API
services/ai-service/app/main.py - LLM Orchestrator
services/ai-service/app/orchestrator.py - Thread Memory
services/ai-service/app/memory.py
CRM Tools
- Tool Registry
services/ai-service/app/tools/registry.py - Deal Queries
services/ai-service/app/tools/deals.py - Contact Lookup
services/ai-service/app/tools/contacts.py - HubSpot Client
services/ai-service/app/clients/hubspot.py
External Services
- Slack Events/API
- Groq LLM
- HubSpot CRM
Other components
- Slack User
Connections 17
- Slack User → Slack Events/API: asks via
README.md - Slack Events/API → Webhook API: sends webhook
README.md - Webhook API → Signature Verification: verifies request
services/slack-adapter/app/main.py - Webhook API → Mention Handler: dispatches mention
services/slack-adapter/app/main.py - Mention Handler → Query API: posts query
services/slack-adapter/app/handlers/events.py - Query API → LLM Orchestrator: processes query
services/ai-service/app/main.py - LLM Orchestrator → Thread Memory: reads and appends
services/ai-service/app/orchestrator.py - LLM Orchestrator → Groq LLM: requests completions
README.md - LLM Orchestrator → Tool Registry: dispatches tools
services/ai-service/app/orchestrator.py - Tool Registry → Deal Queries: registers
services/ai-service/app/tools/registry.py - Tool Registry → Contact Lookup: registers
services/ai-service/app/tools/registry.py - Deal Queries → HubSpot Client: searches deals
services/ai-service/app/tools/deals.py - Contact Lookup → HubSpot Client: queries contacts
README.md - HubSpot Client → HubSpot CRM: calls CRM API
services/ai-service/app/clients/hubspot.py - Query API → Mention Handler: returns answer
README.md - Mention Handler → Slack Events/API: posts reply
services/slack-adapter/app/handlers/events.py - Slack Events/API → Slack User: delivers reply
README.md