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 / Copilot Studio - not s...
Copilot Studio
Suggested Answer

Copilot Studio - not saving generative answer into a variable

(4) ShareShare
ReportReport
Posted on by 8
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: {}
I have the same question (2)
  • Michael E. Gernaey Profile Picture
    53,976 Moderator on at
     
    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.
     
  • Suggested answer
    Arild Aarnes Profile Picture
    570 Super User 2026 Season 1 on at
    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
  • CU06091049-0 Profile Picture
    7 on at
    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
    570 Super User 2026 Season 1 on at
    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
  • RP-12100203-0 Profile Picture
    2 on at
    The variable is probably populated correctly ... but it has properties of .text.content and .text.markdowncontent in which you will find the response text.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 552

#2
Vish WR Profile Picture

Vish WR 191

#3
Haque Profile Picture

Haque 182

Last 30 days Overall leaderboard