Adding an LLM to a product: from Telegram messages to a map
An LLM demo takes an afternoon. A product where the model does real work every day takes design: where the text comes from, what the model returns, who checks it and what happens when it fails. Here is how we did it for a news product.
By Ross Honcharuk, founder and CTO6 min read
The task
A product team needed incoming news reports to appear as points on a map. Reports came in as Telegram messages: text, links, photos, videos and albums, often without a clear address. Reading each one, finding the place and filing it by topic did not scale by hand.
How the flow works
- A contributor from a closed group sends a report to a Telegram bot.
- OpenAI reads the message, writes a title and a description and finds the place.
- Geocoding turns the place into coordinates. If no place is found, the sender is told.
- The report becomes a ticket in the admin, with importance, category, source and files.
- An editor checks it and decides what is published on the public map.
Three lessons
- Give the model a narrow job. It extracts a title, a description and a place. Everything else, from categories to publishing, is ordinary software with rules.
- Plan for failure. A message without a place is a normal case, not an error, and the user hears about it at once.
- Keep people in the loop. Nothing reaches the public map without an editor, so a model mistake costs a click, not a reputation.
What we took from it
That first version, from the bot to the map, is what we built. The three lessons above now go into every LLM integration we do.
LLMs are not the only AI we ship. In DrawHome.com, a 3D house planner, AI furnishing and renders give users a presentable room in minutes.
Questions and answers
Which model did you use?
OpenAI models for parsing the messages. The flow around the model would stay the same with another provider.
Can an LLM publish content on its own?
It can, but we don’t recommend it where mistakes are public. Here every point is approved by an editor first.
How long does an LLM integration take?
A narrow, well-defined task can be in production quickly. A whole product around it, with a bot, an admin and a map, takes months.