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 / How do I change the ou...
Copilot Studio
Suggested Answer

How do I change the output type in a prompt action?

(1) ShareShare
ReportReport
Posted on by 14
Hi all,
 
I noticed I am forced to do this workaround where I get a record object (which I don't need) and have to transform it into text using the Message action. Is there a way to straight up set up my output as a string from the get-go? Thank you!
 
I have the same question (0)
  • Suggested answer
    Valantis Profile Picture
    5,211 on at
     

    if you’re using an agent flow called from Copilot Studio, you can return a plain string directly so you don’t have to turn a record into text afterward.

     

    • In your agent flow, open the “Respond to the agent” action.
    • Select Add an output > Text, give it a name, and set its Value to the text you want to return.
    • Publish the flow. Back in your topic, insert that String_Output variable directly no conversion step needed.
     
    Use input/output variables and add a Text output in “Respond to the agent”: ​https://learn.microsoft.com/microsoft-copilot-studio/advanced-flow-input-output#add-an-output-parameter-to-the-flow
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

     

  • Suggested answer
    DP_Prabh Profile Picture
    361 on at

    No. In Copilot Studio, the Prompt action always returns a record, not a plain string.

    What to do instead:
    Extract the text field from the record and store it in a string variable.

    Example:

    Set variable (String)
    Value = Topic.<PromptName>.predictionOutput.<textField>
    

    Then use that variable directly.

    So, the record → text extraction step is currently required.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 666

#2
Vish WR Profile Picture

Vish WR 327

#3
Haque Profile Picture

Haque 253

Last 30 days Overall leaderboard