
I provide instructions to my Copilot Studio agent that produce a final output (a KQL string). Separately, I have a Topic that successfully runs a fixed KQL query. The problem is when I try to pass the dynamically generated KQL (from the instructions) into the Topic so the action can execute it—the variable created by the instructions isn’t available in the Topic. Topic‑scoped variables only exist within the Topic unless I explicitly pass or promote them; I need a supported way to surface the generated string for use in the Topic’s action.
A supported pattern to capture the instruction‑generated text as a variable and pass it into the Topic (or directly into an action/flow) so the KQL can be executed. Copilot Studio supports variable passing across topics via Topic inputs/outputs and also supports calling flows with input/output parameters; I expected at least one of these to let me bridge instruction‑generated content into the Topic scope
The dynamic variable produced by instructions is not available within the Topic authoring canvas. Unless I manually recreate the text within the Topic itself, I can’t bind it to the action’s parameter. Topic variables remain local unless explicitly passed or made global.