Usage
This section explains the runtime flow and how to interact with webhook endpoints.
Webhook Endpoints
GET /webhooks/messaging/{driver}: verification (driver-specific)POST /webhooks/messaging/{driver}: message ingestion
Processing Flow
MessagingWebhookController@ingestreceives the payload- The configured driver converts it to
IncomingMessageitems - Each message is processed by
ProcessIncomingMessage AiIntentAnalyzerextracts one or moreStructuredIntentobjectsTaskOrchestratorcreates, updates, or closes tasks
Queue
- Run a worker:
php artisan queue:work - Each message is processed in a job (
ProcessIncomingMessageJob) - The job uses a short lock (when a message ID exists) to avoid duplicates
Sending Responses (Optional)
Use the WhatsApp service if you need to send responses:
Tonsoo\\TaskTracker\\Services\\WhatsappService::sendMessage($message, $to)