Announcements
I am building a Copilot Studio assistant to help users fill out questionnaires.
For this purpose, I store the answers to previous questions (per session) in a variable and pass this variable as history/context to each new Generative Answer prompt. My goal is for the model to reason over the previous answers and determine whether the current question can be answered based on information already provided earlier in the same session.
In other words, the agent should “think” about whether an answer can be derived from the previously given content instead of asking the user again.
However, this approach does not work as expected.
When I pass the conversation history via a variable into the Generative Answer node, the model consistently responds that the required information is not present in the data source.
This happens even though the information can clearly be derived from the stored history.
The same prompt works correctly only when I manually paste the entire history directly into the prompt text.
When the history is injected dynamically via a variable, the model behaves as if the content does not exist at all.
As a result, I never get a usable output when relying on variables.
Using a Knowledge Base is not an option:
The agent still needs to reason over context, not just retrieve static facts.
Each session has new, session-specific history, which cannot be pre-indexed.
The solution must work with per-session dynamic context, not global knowledge.
It appears that variables passed into Generative Answer prompts are not being treated as actual reasoning context. Instead, the model behaves as if only the literal prompt text (typed directly into the node) is considered.
This makes it impossible to build a reasoning-based questionnaire assistant that can infer answers from previously collected responses within the same session.
To be honest, I’m not a big fan of fully generative answers. You don’t get granular control over the level of detail, and that makes it hard to guarantee the type of response you expect.
If you need more precise and consistent outputs, my recommendation is to use AI prompts:
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 277
11manish 206
sannavajjala87 156 Super User 2026 Season 1