Comparison of Approaches to the Problem of Automatic Generation of Official Reply Letters using LLM

Main Article Content

Ivan Evgenievich Nikolaev
Andrey Vitalievich Melnikov
Kirill Evgenievich Alekseev
Alexander Sergeevich Belonogov
Mikhail Aleksandrovich Rusanov

Abstract

One of the key automation challenges for government agencies is the preparation of official response letters. This article presents an empirical comparison of two approaches to the automatic generation of official response letters: one based on templates defining the letter structure and one based on relevant letter examples selected using RAG. The original GovLetter dataset, which includes real-life business correspondence from government agencies in the Khanty-Mansi Autonomous Okrug – Yugra, was used as a basis. Generation was performed using a locally deployed open-source language model. The quality of the results was assessed according to 12 criteria using the Schema-Guided Reasoning (SGR) framework and the LLM-as-a-Judge methodology. The experimental results demonstrate that the example-based approach outperforms the template-based approach in most metrics, particularly in the accuracy of arguments, formal tone, and correct formatting. The obtained results confirm the potential of solutions based on document history for the effective automation of official response letter preparation.

Article Details

How to Cite
Nikolaev, I. E., A. V. Melnikov, K. E. Alekseev, A. S. Belonogov, and M. A. Rusanov. “Comparison of Approaches to the Problem of Automatic Generation of Official Reply Letters Using LLM”. Russian Digital Libraries Journal, vol. 29, no. 4, July 2026, pp. 1174-88, doi:10.26907/1562-5419-2026-29-4-1174-1188.

References

1. Chui M., Manyika J., Bughin J. et al. The social economy: Unlocking value and productivity through social technologies // McKinsey Global Institute. 2012.
2. Qian Y., Zhang W.-N., Liu T. Harnessing the Power of Large Language Models for Empathetic Response Generation. arxiv:2310.05140. 2023. https://doi.org/10.48550/arXiv.2310.05140
3. Minkova L., López Espejel J., Djaidja T.E.T. et al. From Words to Workflows: Automating Business Processes. arXiv:2412.03446. 2024. https://doi.org/10.48550/arXiv.2412.03446
4. Xu W., Desai J., Wu F. et al. HR-Agent: A Task-Oriented Dialogue (TOD) LLM Agent Tailored for HR Applications. arXiv:2410.11239. 2024. https://doi.org/10.48550/arXiv.2410.11239
5. Li W., Soni S., Saha K. Emails by LLMs: A comparison of language in ai-generated and human-written emails // Proceedings of the ACM. 2025. https://doi.org/10.1145/3717867.371787
6. Shrivastava R., Sheikh A., Khan A. Cold Email Generator Using LLM. Preprint. https://doi.org/10.65521/ijacte.v14i1.382
7. Ray S., Pan R., Gu Z. et al. RAGServe: Fast Quality-Aware RAG Systems with Configuration Adaptation. arXiv:2412.10543. 2024. https://doi.org/10.48550/arXiv.2412.10543
8. Novelo R., Silva R.R., Bernardino J. A Literature Review of Personalized Large Language Models for Email Generation. https://doi.org/10.3390/fi17120536
9. Lehto T., Hinkka M. Discovering Business Area Effects to Process Mining Analysis Using Clustering and Influence Analysis// Conference proceedings. 2020. https://doi.org/10.1007/978-3-030-53337-3_18
10. Cerqueti R., Clemente G. P., Grassi R. Stratified communities in complex business networks. arXiv:1902.03854. 2019. https://doi.org/10.48550/arXiv.1902.03854
11. Thiergart J., Huber S., Übellacker T. Understanding emails and drafting responses–An approach using GPT-3. arXiv:2102.03062. 2021. https://doi.org/10.48550/arXiv.2102.03062
12. Jimenez-Gomez C.E., Cano-Carrillo J., Falcone Lanas F. Artificial Intelligence in Government // IEEE Computer. 2020. Vol. 53, No. 9. https://doi.org/10.1109/MC.2020.3010043
13. Barona J., Torres V. E., Defas Ayala R.V. La inteligencia artificial en los procesos de administración pública // Latam. 2023. Vol. 4, No. 6. https://doi.org/10.56712/latam.v4i6.1541
14. Aoki G. Large Language Models in Politics and Democracy: A Comprehensive Survey. arXiv:2412.04498. 2024. https://doi.org/10.48550/arXiv.2412.04498


Most read articles by the same author(s)