Kormotech
Microsoft Teams File Translator Bot
A Teams chatbot that translates PDF and DOCX files in place while preserving the original layout and formatting.
The problem
Translating a PDF or Word file usually means leaving Teams, pasting text into another tool, and rebuilding the layout afterwards. Kormotech's bot does it in Teams: send a file, get it back translated with its formatting intact, including text inside images.
What we built
- Teams bot on the Microsoft Bot Framework and Azure Bot Service
- Translation via the ChatGPT API with OCR for text in images
- Layout analysis to keep document structure intact through translation
How this kind of system works
A general explanation of the technique behind the tools above. What was specific to this project is in the sections before it.
Get the text out, including from images
PDFs and Word files store text in different ways, and some text only exists inside pictures. Text in images has to be read with OCR before it can be translated.
Record the layout before translating
Layout analysis notes where each block of text sits, how big it is, and what order it reads in, so the translation can go back in the same places. Translated text often runs longer or shorter than the original, so blocks may need resizing.
Translate with context
Sending whole sections to the language model, rather than one line at a time, keeps terms and meaning consistent across a document.
Rebuild the file and send it back
The bot reassembles the file in its original format and posts it in the same Teams conversation, so nobody has to leave Teams or paste text into another tool.
Related service: AI Automation Consulting & Implementation.
More work like this: AI Chatbot Development in Toronto.
Delivered by Pavlo Holubchykov, Raw Code's Lead ML/AI Developer.
Outcome metrics for this project haven't been independently verified yet — figures will be added here once confirmed rather than estimated.
More work
- Speech & Face Recognition R&D — TietoEvry
- Multilingual Video Transcription System — War of Words
- Time Series Forecasting & Automation — Jera
Want something like this built?
Book free consultation