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

Community site session details

Session Id :
Copilot Studio - Topic Creation & Management
Unanswered

Copilot Studio - not saving generative answer into a variable

(3) ShareShare
ReportReport
Posted on by
New to copilot studio. Trying to capture a generated answer in a variable so I can use it other palces, but it's always null. In below case Draft description is always outputed But Var1 is not outputing anything. Tried in two different topics with same results.
 
kind: AdaptiveDialog
beginDialog:
  kind: OnRecognizedIntent
  id: main
  intent:
    triggerQueries:
      - test
      - run a test
      - start test
      - begin testing
      - initiate test sequence
      - perform a test
      - testing mode
      - can you test this?
      - let's do a test
      - execute test
 
  actions:
    - kind: Question
      id: Question_ToonwE
      variable: Topic.DraftDescription2
      prompt: Please provide a draft description for your work item.
      entity: StringPrebuiltEntity
 
    - kind: SearchAndSummarizeContent
      id: adOg8F
      autoSend: false
      variable: Topic.Var1
      userInput: Rewrite {Topic.DraftDescription2} in a more professional manner
      responseCaptureType: TextOnly
 
    - kind: SendActivity
      id: sendActivity_Aacvub
      activity: "{Topic.Var1}{Topic.DraftDescription2}"
 
inputType: {}
outputType: {}
Categories:
I have the same question (0)
  • Suggested answer
    Arild Aarnes Profile Picture
    131 on at
    Copilot Studio - not saving generative answer into a variable
    Hi,
     
    What about using a Prompt instead of the Generative Answer node? That will give consistent results for a scenario like this.
    Ad a node by using Add a Tool > New Prompt
     
     
    create a output variable and use that.
     
     
    Regards
    Arild
  • CU06091049-0 Profile Picture
    5 on at
    Copilot Studio - not saving generative answer into a variable
    I'm facing the same issue. Does anyone have a solution? If classic is turned on it works fine, but I don't want to use classic as it returns wrong answers. It looks like it is unable to properly bind the answer to the variable when classic is turned off. Already tried all workarounds provided by chatgpt and copilot, still no luck. 
  • Suggested answer
    Arild Aarnes Profile Picture
    131 on at
    Copilot Studio - not saving generative answer into a variable
    Hi,
     
    The result you get will vary depending on what knowledge sources your agent has and what instructions you have given the agent.
    Try to give it specific instructions to rewrite the text in the Create generative answers node.
    I just tested your topic code, and with these instructions it works fine, even i classic mode.

     
     
    Regards,
    Arild
  • Michael E. Gernaey Profile Picture
    47,123 Super User 2025 Season 2 on at
    Copilot Studio - not saving generative answer into a variable
     
    I am actually wondering if its due to that fact that you have Classic on and I do not know for sure what Knowledge its using. 
     
    Can you, just for kicks, turn on Web Search just to see if you get something.
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Featured topics