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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Adding hyperlink in ch...
Copilot Studio
Unanswered

Adding hyperlink in chatbot response .

(0) ShareShare
ReportReport
Posted on by 12

I am getting an response from chat bot . Those response contains  URL links. I want to replace those link with hyperlink before sending the message to user . How can i do that ? 

 

I am aware of  this 

[Link Text](Link URL

 

This will not work as URL link changes as well . 

 

 

 

I have the same question (2)
  • stuermer Profile Picture
    64 on at

    Hey @pathfinder1729

     

    Is the URL link part of a topic or do you get the link from a Power Automate action?

     

  • HenryJammes Profile Picture
    on at

    Hi @pathfinder1729,

     

    If you're saying the links are dynamic, then use a Power Fx formula to have Markdown URL formatting + dynamic values stored in variables.

     

    Example:

    "[" & Topic.URLName & "](" & Topic.URL & ")"

     

    HenryJammes_0-1693302510834.png

     

    Henry

     

  • pathfinder1729 Profile Picture
    12 on at

    So  I am getting the links from  "Create generative answers " block,  and I don't want   Url  in my response , instead i want hyperlinks to those url 

  • HenryJammes Profile Picture
    on at

    @pathfinder1729, can you provide an example?

  • pathfinder1729 Profile Picture
    12 on at

     

    I want to have  hyperlinks to those URL in response , as those Big url do not look good .

     

  • HenryJammes Profile Picture
    on at

    What should be the title of these URLs?

  • stuermer Profile Picture
    64 on at

    In the properties of the "Create generative answers" Action you can un-check the option that the Bot automatically post a message. What you can do instead is to create an action and pass the Answer Variable to Power Automate and try to do some trim / replace expression magic and transform the links into [Link Description](Link URL) Formats. After that you can pass that answer back into the Bot. Or you can try if you can achieve something similar with PowerFX right from PVA canvas.

  • pathfinder1729 Profile Picture
    12 on at

    One approach would be to that every URL  title could be same like "Support Docs"

     

    Another approach would be that  i cut few sections form Url(like the last word ) and use it as title 

  • HenryJammes Profile Picture
    on at

    As suggested by @stuermer, I would indeed explore using a Power Fx formula to manipulate the generated answer variable before sending it to the user, and if not possible in Power Fx, I would explore the same using a cloud flow.

  • stuermer Profile Picture
    64 on at

    Here you can find an example. It takes the generative answer and transforms it into URI components. With that we can identify a value to split the answer and the hyperlink. In the next steps we transform the answer back into a proper string and then we concat all blocks together, using the PVA markup syntax [Link Desc.](Link) . This should just show the concept, the solution is really static. E.g. it does not support multiple links and it uses ": " to split Text and URL. But the result is what you were asking for 🙂 

     

    stuermer_0-1693307714624.png

    stuermer_1-1693307726806.png

     

     

    If this solves your problem it would be great if you can mark this as the solution for your problem. Let me know if it works out for you.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard