{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/5565858fc50c48da9567f13ecb94d3de\" frameborder=\"0\" width=\"1108\" height=\"831\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":831,"width":1108,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":831,"thumbnail_width":1108,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/5565858fc50c48da9567f13ecb94d3de-86f646df2ed1bad0.gif","duration":322.761,"title":"Webhook JSON Classification with Redis Queue 🚀","description":"I built a webhook that accepts any JSON payload event, queues it to Redis, and processes it with a worker. The worker uses LangChain with structured output and LLM logic to classify each event as shipment, invoice, or unclassified, then stores results in PostgreSQL tables. I also added retry handling with requeue and wait for 10 seconds on errors. I demoed running the repo with docker compose, testing via Swagger and a script that generates random payloads, and checking job status, task ID, and stored shipment data. There was no action requested from viewers."}