AI Foundry Populate a Microsoft Word Template

adm_Daniel.O 20 Reputation points
2025-08-26T08:41:39.68+00:00

I am trying to build an agent in Azure AI Foundry.

I want the agent to populate a pre defined Microsoft Word Template. I am unsure of how to do this.

I want to give the agent a large string of text and have the agent populate the word template appropriately.

How do I go about this?

Azure AI Document Intelligence
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Adharsh Santhanam 6,820 Reputation points Volunteer Moderator
    2025-08-26T09:28:18.1133333+00:00

    Hello adm_Daniel.O, here's the broad workflow that you would have to take to achieve your specific ask.

    • Create the Word file with placeholders such as {{OrganizationName}}, {{Summary}} etc. and upload it to OneDrive, SharePoint etc.
    • Have your large string of text stored in something like Azure blob storage and use Azure AI Search to extract the relevant pieces of information from it.
    • Create one of the text-supported model endpoints and invoke that from a Logic App instance to generate summaries, insights etc. relevant for your content.
    • Use the Foundry SDK to create an agent that accepts the input text, calls the AI Search and LLM endpoints and outputs structured data for populating the Word document.
    • Use Logic Apps with the Office 365 Word connector to write the contents.

    Here's a GitHub repo that can help you do this in large capacity - https://github.com/microsoft/document-generation-solution-accelerator

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


  2. Adharsh Santhanam 6,820 Reputation points Volunteer Moderator
    2025-08-27T07:28:44.8733333+00:00

    Hello adm_Daniel.O, in that case, you would have to look at utilizing something like the placeholder suggestion that I made in the first point. This will allow you to interject information from the transcripts into appropriate sections with the content.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.