TruthSeeQ, a fact-checking agent
Send a link, a post or a voice note to a Telegram bot and get back a verdict, a confidence score and the sources behind it. Second place at Summer Startup 2025.
- Role
- Backend lead, team of two
- When
- Jul 2025
The problem
Misinformation spreads in group chats faster than anyone can check it, and checking a claim properly means finding the claim, searching for sources, judging whether those sources are reliable, and weighing what they say. Most people won't do that for a forwarded message.
What I built
A fact-checking backend and a Telegram bot, built over a weekend hackathon with one teammate. You send the bot a link, some text or a voice note. It extracts the claims, searches for sources, scores how reliable each source is, and replies with a verdict (true, false, inconclusive or satire), a confidence score, its reasoning and the links it used. I built the backend and the fact-check pipeline; my teammate built the media downloading for the bot.
How it works
- The fact check is a LangGraph workflow: extract the content, pull out the claims, verify them against sources, analyze, then score. It can skip steps or stop early when there's nothing to check.
- Two more workflows run beside it: one judges the content's tone, bias and quality, the other checks the source's domain and reputation.
- Sources come from the Brave Search API, then a scraper reads each result. The scraper tries several methods per site and remembers which one worked.
- The bot transcribes voice notes with Whisper and downloads videos from social links before sending them for checking.
- FastAPI with Postgres and Redis, all in Docker Compose; 28 API endpoints.
What broke and how I caught it
Halfway through the hackathon, the pipeline kept crashing with JSON parse errors. Each step asked the model for JSON, but the model often wrapped it in a markdown code block or added stray text, and every workaround I added to clean the string up broke on the next variation.
I replaced the string cleaning with Pydantic schemas and the model's structured output mode, so each step gets back a validated object or a clear error instead of text to parse. The same day, search started failing with errors from Brave: the language code was in the wrong format, and we were hitting the rate limit. I fixed the parameter and spaced requests at least two seconds apart.
Result
- Second place at Summer Startup 2025.
- A working backend with three LangGraph workflows and a Telegram bot that handles text, links and voice.
- The social feed of flagged posts in the README was planned but not built.
Built with
Built with Python, FastAPI, LangGraph, OpenAI, Brave Search, PostgreSQL, Redis, Docker, Telegram