Bot
Overview
The Bot domain handles all AI-powered conversational interactions, message processing, webhook handling, and backend services for the Impulsell platform. This domain manages communication across multiple channels (WhatsApp, Instagram, Facebook Messenger), processes billing events, handles follow-ups, and manages email communications.
Architecture for the Bot domain
Message Flow
The Bot domain uses AWS SQS for asynchronous message processing. Messages flow through dedicated queues for different purposes:
- WhatsApp Messages: Process incoming and outgoing WhatsApp messages
- Webhooks: Handle webhook events from external platforms (WhatsApp, Instagram, Facebook)
- Follow-ups: Manage automated follow-up messages for conversations
- Usage Stats: Track and process usage statistics
- Billing Events: Process billing and subscription events
- Email: Handle email sending operations
Messages for this domain
Receives messages (6)
Quickly find the message you need by searching for the name, type, or summary.System Architecture
Loading graph...
Services
Message Service
Handles processing of WhatsApp messages through the AI agent, managing conversations and generating responses.
Webhook Processor
Processes incoming webhooks from WhatsApp, Instagram, and Facebook Messenger platforms.
Follow-Up Processor
Manages automated follow-up messages for conversations that require additional engagement.
Usage Stats Processor
Tracks and processes usage statistics for analytics and billing purposes.
Billing Event Processor
Processes billing events related to subscriptions, payments, and usage-based billing.
Email Sender
Handles sending transactional and notification emails.