AI Inbox Automation

Facebook page connect korun, tarpor inbox ar comments-e smart auto reply chalan.

This control center brings OAuth, page sync, webhook capture, AI generation, and reply monitoring into one clean workflow so you can launch Facebook automation faster.

01Connect Facebook Login for Business
02Set your Meta, OpenAI, and webhook env variables
03Verify webhook and subscribe page events
04Choose one page as the active automation page
Launch Status
Facebook App ConfigReady
OpenAI ConfigFallback Mode
Webhook EndpointLive
Production URL
agent.speednetkhulna.com
HTTPS Active

The app is ready to connect pages, receive events, and show reply activity from one dashboard.

0

Synced Facebook users in local database.

0

All pages fetched from Facebook Graph API.

0

Stored inbound and outbound Messenger messages.

0

Tracked Facebook post comments for AI response flow.

A cleaner control page for showing setup, pages, and automation flow in one screen.

1

OAuth connect

Client logs in with Facebook and the app syncs manageable pages instantly.

2

Select live page

Choose one active page to receive webhook traffic and AI routing logic.

3

Reply with AI

Inbox messages and comments are captured, summarized, and answered automatically.

Production ready, but still simple to manage.

Single-page overview for page connection, recent activity, and reply logs.

Works well as an internal ops dashboard or a client-facing setup portal.

Easy to extend with Postgres, Redis, and queue workers when traffic grows.

No Facebook page connected yet

Once Facebook OAuth is completed, manageable pages will appear here. Choose one page to make it the active automation target.

Track reply status from one place

Reply logs are empty right now. Incoming webhook events will populate them automatically.

Launch steps

1. Create a Meta app and enable Facebook Login for Business.

2. Add `FACEBOOK_APP_ID`, `FACEBOOK_APP_SECRET`, `FACEBOOK_REDIRECT_URI`, `FACEBOOK_VERIFY_TOKEN`, and `OPENAI_API_KEY`.

Privacy Policy URL: https://agent.speednetkhulna.com/privacy-policy/

Terms of Service URL: https://agent.speednetkhulna.com/terms-of-service/

3. Use `/api/webhooks/facebook` as the webhook callback and subscribe `messages`, `messaging_postbacks`, `feed`, and `comments`.

4. For App Review, prepare justification for the required page permissions.

5. For scale, move from SQLite to Postgres plus a queue worker and Redis.

Backend routes

GET /api/facebook/login-url
Returns the Facebook OAuth URL.

GET /api/facebook/callback
Exchanges OAuth code and syncs Facebook user and pages.

POST /api/facebook/connect-page
Marks one synced page as active for webhook and AI routing.

GET/POST /api/webhooks/facebook
Handles Meta webhook verification and incoming message/comment events.