web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Unable to Capture User...
Copilot Studio
Suggested Answer

Unable to Capture User Responses in Agent to Populate Word Document Template

(0) ShareShare
ReportReport
Posted on by
We have a valid use case and are currently developing an agent that generates a Word document based on user interaction.
 
Requirement:
  • A Word document template is defined with multiple developer-configured fields.
  • The agent dynamically asks questions to the user based on these fields.
  • Based on the user’s responses, the agent should:
    • Capture and store each response against the corresponding field.
    • Use the collected responses to populate the Word document template at the end of the interaction.
Current Status:
  • The agent is successfully identifying the fields from the template and asking the corresponding questions to the user.
  • However, we are unable to reliably extract, store, or map the user responses for each field.
  • As a result, we cannot use the captured responses to populate the Word document template.
Issue / Blocker:
  • Nneed guidance or a supported approach to:
    • Persist user responses during the agent conversation, and
    • Bind those stored values to the corresponding fields in the Word document template for final document generation.
Please advise on the recommended pattern, configuration, or limitations related to capturing user input in an agent conversation and using it to populate a Word document template.
I have the same question (0)
  • Suggested answer
    Beyond The Platforms Profile Picture
    246 on at
    What you are trying to achieve is a valid and common scenario, but the issue you are facing comes from how Copilot Studio handles user input and state during a conversation.
     
    In Copilot Studio, user responses are not automatically persisted and structured in a way that you can reliably reuse later (for example, to populate a Word template). You need to explicitly design how responses are captured, stored, and mapped.
     
    Why it is not working today:
    - The agent can ask questions dynamically, but generative responses are not automatically stored as structured data
    - There is no automatic binding between “questions asked by the agent” and fields in a document template
    - If you rely only on conversational flow, responses may be lost, overwritten, or not mapped consistently
     
    Recommended pattern (supported approach)
     
    You should move from “implicit conversation” to “explicit data capture”.
     
    1) Capture each response into variables
    Instead of relying on general conversation, define explicit questions and store each answer in a variable.
    For example:
    - Ask question → store answer in variable (e.g. CustomerName, ProjectDescription, etc.)
     
    Important:
    Each field in your Word template must have a dedicated variable.
     
    2) Use structured topics or guided flow
    Avoid fully dynamic questioning for this scenario. Instead:
    - Use a guided topic or sequence of questions
    - Map each question to a specific variable
    This ensures deterministic behavior and avoids losing data.
     
    3) Persist data if needed
    If the interaction spans multiple turns or needs reliability:
    - Store responses in Dataverse or another data source
    - Or use global variables carefully to persist across the session
     
    4) Generate the document via Power Automate
    Copilot Studio is not designed for document rendering logic. The recommended approach is:
    - Pass all collected variables to a Power Automate flow
    - Use “Populate a Word template”
    - Generate the document (and optionally convert to PDF)
    - Return the file or link back to the agent
     
    5) Pass data as a structured object
    When calling the flow:
    - Send all variables as a structured payload (JSON-like)
    - Ensure field names match exactly the placeholders in the Word template
     
    Key limitation to be aware of:
    Copilot Studio does not automatically extract and bind conversational responses to template fields. This must be explicitly modeled using variables and flows.
     
    Summary:
    - Do not rely on free-form conversation to capture data
    - Use explicit variables for each field
    - Delegate document generation to Power Automate
     
    Once you switch to this pattern, the scenario becomes stable and fully controllable.
     
    Hope this helps!
    Paolo


    Did this solve your issue? → Accept as Solution
    👍 Partially helpful? → Click "Yes" on "Was this reply helpful?" or drop a Like!


    Want more tips on Power Platform & AI? Follow me here:

    🔗 LinkedIn: https://www.linkedin.com/in/paoloasnaghi/
    ▶️ YouTube: https://www.youtube.com/@BeyondThePlatforms
    📸 Instagram: https://www.instagram.com/beyond_the_platforms/
    🌐 Website: https://www.beyondtheplatforms.com/


     
  • Suggested answer
    RaghavMishra Profile Picture
    261 on at

    Hi,

    The supported pattern uses two pieces — capture each answer into a variable in your topic, then hand them off to a Power Automate flow that fills the Word template.

    1. Capture each answer into a variable

    In each Question node, set “Save user response as” → a variable (e.g. CustomerName, ProjectDescription). Use Entities to coerce the answer into the right type.

    📖 Use entities and slot filling in Copilot Studio (Microsoft Learn)

    2. Populate the Word template from a flow

    Add a “Call an action” node → create a flow with the Word Online (Business) → Populate a Microsoft Word template action. Map each topic variable to the matching content control in the template.

    📖 Word Online (Business) — Populate a Microsoft Word template (Microsoft Learn)

    Only Plain Text, Combo Box, Drop-Down List, Picture, Rich Text, and Repeating Section content controls are supported in the template — per the connector docs.

    Found this helpful? Please mark ✅ “Does this answer your question?” so others searching for the same issue can find it quickly. A 👍 on “Was this reply helpful?” or a ♥ Like is also much appreciated!

    Raghav Mishra — LinkedIn | PowerAI Labs

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard