You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(messenger): PoC Integrating AgriConnect with Facebook Messenger #198
Currently, AgriConnect engages farmers and community users primarily through WhatsApp (via Twilio/Meta WhatsApp Cloud API). To broaden accessibility and support new partner channels, we need a Proof of Concept (PoC) demonstrating multi-channel support by integrating with Facebook Messenger.
Identify Facebook users by mapping Page-Scoped User IDs (PSID) to Customer.phone_number as messenger:<PSID>.
Reuses existing OnboardingService, FollowUpService, and ExternalAIService without breaking changes or database migrations.
Data Privacy & Account Deletion Support:
In-Chat Self-Service Deletion: Ingests "delete" / "futa" commands and prompts for confirmation before permanently purging user data via CustomerService.delete_customer().
Meta Platform Data Deletion Callback: Implements POST /api/messenger/data-deletion parsing Meta signed requests and returning status verification URLs.
Acceptance Criteria
Meta webhook verification handshake (GET) passes with configured MESSENGER_VERIFY_TOKEN.
Incoming text message from Facebook Messenger triggers automated onboarding or AI advisory response.
Response is sent back to the user's Facebook Messenger chat via Graph API.
Message echo events and duplicate deliveries are safely ignored.
In-chat account deletion ("delete" / "futa" + "yes") successfully deletes customer and all associated records.
Meta data deletion callback (POST /api/messenger/data-deletion) validates signed requests and removes user data.
Unit & integration tests with pytest covering webhook handling, signature verification, and mocked Meta API outbound calls.
Activity
[#198] feat(messenger): add facebook messenger webhook integration an…
[#198] test(messenger): add unit and integration tests for facebook m…
[#198] docs(messenger): update facebook messenger integration specifi…
[#198] feat(messages): route EO dashboard direct replies to messenger…
[#198] feat(messenger): add escalation quick reply and weather intent…
[#198] docs(messenger): update integration spec with multi-channel di…
[#198] feat(config): make follow-up question feature configurable and…
[#198] feat(config): add configurable channel toggles defaulting to w…
[#198] fix(messenger): handle callback delivery errors and chunk long…
[#198] feat(messenger): make typing indicator configurable and non-bl…
[#198] chore(config): update default config template for MHM-RMI tenant
[#198] merge: resolve config template conflicts with tenant/mhm-rmi
Merge pull request #201 from akvo/feature/198-facebook-messenger-poc
Merge pull request #202 from akvo/feature/198-facebook-messenger