All projects

~/projects/bengalgram-ai

BengalGram

An autonomous AI news agency publishing Bangladesh headlines hands-free.

Year
2025
Role
Creator & Maintainer
Status
Open Source
Type
AI Automation

stack — Python · Exa AI · GPT-4o · Vertex AI Imagen · Facebook & Instagram APIs · APScheduler

BengalGram is an AI-powered automated social media news agency for the Bangladeshi digital landscape. It runs a complete news operation — discovery, editorial cleanup, visual design, publishing, monitoring — with no human in the loop.

The daemon wakes every two hours, searches 71+ Bangladeshi news domains, decides what is actually worth posting, designs a cinematic news poster for it, and publishes to Facebook and Instagram within sensible quiet hours.

01

The problem

Bangladesh-focused social news pages are usually manual grind: someone scrolls dozens of outlets, rewrites headlines, makes graphics in Canva and posts by hand — or worse, they plagiarize screenshots. The challenge was to make an editorially respectable pipeline that filters junk and duplicates, produces original visuals, and runs unattended for months.

02

The build

Stage 1 — Discovery: Exa AI semantic search across 71+ trusted Bangladeshi domains (The Daily Star, Prothom Alo, BBC Bangla and more), English and Bengali.

Stage 2 — Deduplication: an OpenAI-compatible LLM cross-checks against already-processed stories so the same event never posts twice.

Stage 3 — Content processing: GPT-4o filters non-articles, strips noise, removes near-duplicates and synthesizes clean post copy.

Stage 4 — Visual generation: Google Vertex AI Imagen renders cinematic, viral-ready news posters with editorial typography.

Stage 5 — Publishing: APScheduler-driven daemon auto-posts to Facebook Pages and Instagram (via image hosting), respecting quiet hours, and marks state in SQLite.

Monitoring: Telegram bot alerts on pipeline errors and status changes, so the operator hears about failures before followers do.

03

What it does

Five-stage AI pipeline

Discovery → dedupe → editorial cleanup → image generation → publishing, each stage independently testable.

71+ news sources

English and Bengali outlets — from The Daily Star to Prothom Alo to BBC Bangla — searched semantically, not by keyword.

AI-generated posters

Vertex AI Imagen designs original cinematic news cards; no stolen screenshots, ever.

Autonomous operations

Runs as a daemon on a 2-hour cycle with quiet hours, SQLite state tracking and Telegram error alerts.

04

Outcome

71+
News sources
Every 2h
Run cycle
5
AI stages
Facebook + IG
Platforms