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 / Remove quotes from gen...
Copilot Studio
Unanswered

Remove quotes from generative responses

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I have created a chatbot for my department that answers questions about other employees, projects, teams, processes, etc. The information that the chatbot uses to generate responses about employees is stored in several Word documents and pages in a SharePoint. When generating answers, numbers appear in the text (1, 2, 3, etc.) that act as quotes. If the user clicks they can access the source of information. I need to remove those numbers from the answers, for security reasons. I would like the user to not be able to access the original source of information, since they could also edit the documents and alter the information. I appreciate if anyone knows a solution.

 

Thanks in advance.

 

Fernando

 

Categories:
I have the same question (0)
  • Umianta Profile Picture
    290 on at

    Hi @FGuerrero1 

     

    It seems there isn't a straightforward method to exclude reference links in Generative Answers responses. I tried to control it through Custom Instructions or prompts ,but didn't help

    However, you can develop a custom solution to address this:

    1. Save the Generative Answers response in a variable.
    2. Utilize Power Fx function to parse the response and eliminate the links.
    3. Display the simplified response message in the chatbot.

    Umianta_0-1713692008414.png

     

    If my response has addressed your query, kindly mark your post as Solved.

    If you found my response helpful or it provided you with a direction to proceed, please give it a Thumbs Up. Your Kudos are appreciated. You can accept multiple posts as solutions.

    If you're still encountering any issues or challenges, please don't hesitate to inform me so I can assist you further. I'm here to help.

    Cheers ,

    Umesh Khandelwal

  • FGuerrero1 Profile Picture
    on at

    Hi @Umianta,

     

    Thank you very much for your answer, it seems to be a good solution. I have stored the generative answer in a variable called "employees_answer". Then I have introduced this function: Replace(emplyees_answer, "<a href=", ""). "emplyees_answer represents the response generated by the chatbot and with the replace function it looks for the link and replaces it with an empty string, thus removing the links. However, it gives me an error. I have almost no knowledge of programming, functions, formulas, etc. so I am probably doing something wrong. I don't know what Power Fx function I could use to parse the response and remove the links.

     

    Thank you very much again for the help.

     

  • Umianta Profile Picture
    290 on at

    Hi @FGuerrero1 

     

    I am glad that you were able to make some progress . Can you share me the  error you are getting ? 

    Cheers ,

    Umesh Khandelwal

  • FGuerrero1 Profile Picture
    on at

    Hi again @Umianta 

     

    Yes,  of course.

     

    Thanks 

  • lonewolf1 Profile Picture
    29 on at

    you can user 'Answer.Text', for more detailed explanation, have a look at my response to this post

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 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard