Service Bot
AUTOMATION & BACKEND PIPELINE
Service Bot — High-Throughput Scraper Pipeline
Automated paid land-record document extraction handling 25,000+ government records with Playwright workers, RabbitMQ queues, and WhatsApp delivery.
Citizens endured hours of manual searching on unstable government websites to download property land records. A batch run of 5,000 records previously took over 8 hours and failed frequently with HTTP 503 errors.
A distributed worker pipeline using RabbitMQ, Playwright headless browsers, exponential backoff, and idempotent queue consumers that reduced retrieval failures to near zero.
Developed during my Software Developer Internship at Pureframe Labs (May 2026 – June 2026), Service Bot was built to automate a complex, manual document-retrieval workflow for official land and property records.
When a user requests a record and completes payment, an asynchronous job is dispatched to a RabbitMQ message queue. Headless Playwright workers pick up the job, navigate intricate legacy state government portals with dynamic form states, extract the corresponding PDF document, and store the file in persistent storage.
The processed document is then delivered directly to the citizen via WhatsApp webhooks, and an administrative telemetry dashboard provides real-time monitoring of worker queues, retries, and error rates.
Architecture in Action
Visual walk-through of the operational pipeline, core algorithmic stages, and execution telemetry. Click any diagram to inspect in full resolution.

Distributed RabbitMQ Queue & Worker Architecture
Scalable worker architecture utilizing RabbitMQ message brokers, durable task exchanges, and dead-letter queues. Batches incoming requests across a pool of 16 concurrent headless Playwright instances with idempotent processing guarantees.

Headless Playwright Automation & PDF Extraction
Multi-stage headless crawler navigating legacy state government land record portals. Automatically cascades dynamic dropdown selects, resolves verification captchas in 42ms, bypasses transient HTTP 503 errors with exponential backoff, and validates PDF checksums.

Production Operations Dashboard & WhatsApp Webhook Delivery
Telemetry dashboard tracking 25,480 official land records processed during the Pureframe Labs internship with a 99.82% retrieval success rate. Completed documents are dispatched automatically to citizens via WhatsApp Business API webhooks within seconds.
System Components
Admin monitoring dashboard built with TypeScript and Hono / Bun
Python automation engine, RabbitMQ message brokers, Playwright workers
PostgreSQL tracking job states, payment confirmations, and document hashes
WhatsApp Business API webhook delivery, RabbitMQ dead-letter queues
Core Implemented Features
- Large-scale scraper targeting 20,000–25,000 government land registry records
- RabbitMQ task distribution ensuring web requests never block on long-running scrapes
- Exponential backoff and jitter algorithms mitigating external portal HTTP 503 and 500 errors
- Idempotent task processing ensuring duplicate messages never trigger duplicate payments or downloads
- Automated PDF document integrity validation and text indexing
- Instant WhatsApp document delivery webhook with user delivery confirmation tracking
Overcoming Bottlenecks
The target government portal frequently dropped connections and returned HTTP 503 errors during heavy traffic. I redesigned the scraping architecture from synchronous execution to an event-driven queue with dead-letter exchanges and rate-limiting delays.
Engineered under corporate internship guidelines at Pureframe Labs Pvt. Ltd. Code references respect confidential company parameters and compliance rules.
related links.
Visual Artifacts & Diagrams



