This document provides a quick reference for all platform integrations in Web3AI.
┌─────────────────────────────────────────────────────────────────┐
│ Web3AI Backend │
│ (FastAPI + Python) │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ ManyChat │ │ BotBuilders │ │ OpenClaw │ │
│ │ Integration │ │ Integration │ │ Integration │ │
│ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ │
│ │ │ │ │
│ └─────────────────┼──────────────────┘ │
│ │ │
│ ┌──────┴───────┐ │
│ │ MoltBook │ │
│ │ Integration │ │
│ └──────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Core Web3AI Features │ │
│ │ • AI/LLM Integration (OpenAI) │ │
│ │ • Blockchain Integration (Web3.py) │ │
│ │ • Smart Contract Support │ │
│ └──────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ External Platforms & Services │
├─────────────────────────────────────┤
│ • Facebook Messenger (ManyChat) │
│ • WhatsApp (ManyChat) │
│ • Instagram (ManyChat) │
│ • Web/Mobile Bots (BotBuilders) │
│ • Custom Channels │
└─────────────────────────────────────┘
| Feature | ManyChat | BotBuilders | OpenClaw | MoltBook |
|---|---|---|---|---|
| Webhooks | ✅ | ✅ | ✅ | ✅ |
| Send Messages | ✅ | ✅ | ✅ | ✅ |
| User Management | ✅ | ✅ | ✅ | ✅ |
| Tag/Label Support | ✅ | ❌ | ❌ | ❌ |
| Session Management | ❌ | ✅ | ✅ | ❌ |
| Conversation Mgmt | ❌ | ❌ | ✅ | ✅ |
| Quick Replies | ✅ | ❌ | ❌ | ❌ |
| Cards/Carousel | ❌ | ✅ | ❌ | ❌ |
| Media Messages | ❌ | ❌ | ❌ | ✅ |
| Interactive Buttons | ❌ | ❌ | ❌ | ✅ |
| Multi-participant | ❌ | ❌ | ❌ | ✅ |
| Signature Verification | ✅ | ✅ | ✅ | ✅ |
GET /integrations/manychat/- Integration infoPOST /integrations/manychat/webhook- Receive messagesPOST /integrations/manychat/send-message- Send messageGET /integrations/manychat/subscriber/{id}- Get subscriberPOST /integrations/manychat/tag/add- Add tagPOST /integrations/manychat/tag/remove- Remove tag
GET /integrations/botbuilders/- Integration infoPOST /integrations/botbuilders/webhook- Receive messagesPOST /integrations/botbuilders/send-message- Send messageGET /integrations/botbuilders/user/{id}- Get userPOST /integrations/botbuilders/user/properties- Update propertiesPOST /integrations/botbuilders/session/create- Create sessionPOST /integrations/botbuilders/session/end- End session
GET /integrations/openclaw/- Integration infoPOST /integrations/openclaw/webhook- Receive messagesPOST /integrations/openclaw/send-message- Send messagePOST /integrations/openclaw/session/create- Create sessionGET /integrations/openclaw/session/{id}- Get sessionPOST /integrations/openclaw/session/update- Update sessionPOST /integrations/openclaw/session/close- Close sessionGET /integrations/openclaw/session/{id}/history- Get history
GET /integrations/moltbook/- Integration infoPOST /integrations/moltbook/webhook- Receive messagesPOST /integrations/moltbook/send-message- Send messagePOST /integrations/moltbook/conversation/create- Create conversationGET /integrations/moltbook/conversation/{id}- Get conversationGET /integrations/moltbook/conversation/{id}/messages- Get messagesPOST /integrations/moltbook/conversation/participant/add- Add participantPOST /integrations/moltbook/conversation/participant/remove- Remove participantGET /integrations/moltbook/user/{id}- Get userPOST /integrations/moltbook/user/status- Update status
Total: 36 new API endpoints across 4 platforms
- Automated responses on Facebook Messenger
- WhatsApp business communication
- Instagram DM automation
- Customer support chatbots
- Lead generation and qualification
- Multi-channel bot deployment (web, mobile, messaging)
- User property tracking and personalization
- Session-based conversation flows
- Intent and entity recognition support
- Card and carousel message types
- Long-running conversation sessions
- Context-aware dialogue management
- Conversation history tracking
- Action-based responses
- Rich content delivery
- Multi-participant conversations
- Media sharing (images, videos, files)
- User presence and status
- Participant management
- Reaction support
All integrations include:
-
HMAC-SHA256 Signature Verification
- Validates webhook authenticity
- Prevents unauthorized access
- Configurable via environment variables
-
Request Validation
- Pydantic models for all requests
- Type checking and validation
- Automatic error responses
-
CORS Configuration
- Configured for localhost development
- Customizable for production
-
Environment-based Configuration
- Secrets stored in .env files
- Never committed to source control
- Easy rotation and management
- Unit Tests: 14 integration tests
- All Tests: 23 total (including existing tests)
- Code Coverage: Full coverage of integration routes
- Test Categories:
- Webhook handling
- Message sending
- User/subscriber management
- Session management
- Conversation management
# Run all tests
cd backend && pytest -v
# Run only integration tests
cd backend && pytest tests/test_integrations.py -v
# Run specific platform tests
cd backend && pytest tests/test_integrations.py::test_manychat_webhook -v
# Start development server
cd backend && uvicorn app.main:app --reload
# View API documentation
# Navigate to http://localhost:8000/docsMinimal configuration in backend/.env:
# Required only if using the specific platform
MANYCHAT_API_KEY=
MANYCHAT_WEBHOOK_SECRET=
BOTBUILDERS_API_TOKEN=
BOTBUILDERS_WEBHOOK_SECRET=
OPENCLAW_API_KEY=
OPENCLAW_WEBHOOK_SECRET=
MOLTBOOK_API_TOKEN=
MOLTBOOK_WEBHOOK_SECRET=Potential additions to consider:
-
AI Processing Pipeline
- Automatic AI response generation using OpenAI
- Context-aware conversation handling
- Sentiment analysis
-
Blockchain Integration
- Token-gated access to bot features
- NFT verification for premium features
- On-chain conversation logging
-
Additional Platforms
- Telegram integration
- Discord integration
- Slack integration
- Microsoft Teams integration
-
Advanced Features
- Rate limiting
- Message queuing
- Webhook retry logic
- Analytics and reporting
- Detailed Documentation: See INTEGRATIONS.md
- API Reference: http://localhost:8000/docs (when server is running)
- Source Code:
- Integration modules:
backend/app/integrations/ - API routes:
backend/app/routes/ - Tests:
backend/tests/test_integrations.py
- Integration modules: