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 / Add contexts to questi...
Copilot Studio
Suggested Answer

Add contexts to questions before giving it to the Agent

(3) ShareShare
ReportReport
Posted on by 38
Hello Community,
 
We have a use-case where we want to add some contexts to the questions posted to the Agent. 
I know it can be done with conversational boosting topic, but is there any option to add something by default?
 
Thanks and regards,
D
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,978 Moderator on at
     
    When you say, add context "before" giving it to the agent, I do not fully understand.
     
    If you mean.
    User starts to type ABC and soon as they hit enter  you add stuff, no, not in the standard Ux. You could probably create a custom component but no.
     
    However, I am not sure what you mean you know it can be done with conversational boosting topic? Can you give an example.
     
    I do not know what you are doing WITH the data typed in, so if you want to, for instance, add details to it, before handing it to a Tool, you can certainly do that sure. That's no problem.
     
    But would love to understand what you mean and an example please.
     
  • Michael E. Gernaey Profile Picture
    53,978 Moderator on at
     
    Did you still need help with this? 
  • DC-05021134-0 Profile Picture
    38 on at
    @Michael E. Gernaey thank you for the answer.
    What I meant is, given the user Query (q), we firstly understand using some flows about the nature of the query and add some context c to q. It could be something like rephrasing q or just appending c to it.
    It can be done in conversational boosting topic by changing the input to create generative answers. 
    Would be beneficial if we can do it for all queries before the knowledge is used.
  • Michael E. Gernaey Profile Picture
    53,978 Moderator on at
     
    So it is what I thought. So in the UI no, but in the back end, if someone triggers a topic by phrases, or whatever Trigger you have configured (events, messages etc), you can grab what they asked in your Topic, there is no need to force it into Conversational Boosting.
     
    You can configure a Topic to essentially capture all input from the Ux chat. Put what they set into a variable and append additional information or change it up before its applied to the Knowledge.
     
    Heck you could grab it change it and PASS it to the Conversation Boosting topic if you want as an input.
     
    When you say before the knowledge gets it, it really depends because imagine you are using AI and you are passing their Prompt to the AI agent, you can certainly change it before (post the ux), same for if its a Tool you are calling, feel free to modify it in whatever Topic you configured to capture that question (or all questions).
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • DC-05021134-0 Profile Picture
    38 on at
     
    thanks for the reply. Apologies that I was not able to explain my requirements clearly.
     
    If there's a bot using knowledge and also there are certain topics. When it finds something from the knowledgebase, it goes ahead and replies with that knowledge(kg). But is there a way to tweak the query itself for improving the search of the Kg?
     
    Regards,
    D
     
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,575 Super User 2026 Season 1 on at
    hello
     
    To catch you have 2 way
     
    - first don't use any topics and add intelligence inside of conversationnal boosting
    - second : use the trigger "a generative answer is made" inside a topic (replace the default one) and then you could change what ever you want before message will be show to the end user.
     
    how to add context from there
    - AI Builder prompt or power automate
     
    hope this help :)
  • DC-05021134-0 Profile Picture
    38 on at
    @Romain The Low-Code Bearded Bear thanks for your reply!
    I have looked into those solutions as well, but they don't keep the context of the conversation so well.
     
     
    Regards,
    D
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,575 Super User 2026 Season 1 on at
    @DC-05021134-0 did you try this one ? :
     
     
    It trigger before everything happen (topic etc etc) and let you do what ever you want :)
  • DC-05021134-0 Profile Picture
    38 on at
    @Romain The Low-Code Bearded Bear thanks again for the pointer.
    But the point was for questions which doesn't trigger a topic. For example, I would like to add more context while doing generative answering using knowledge from dataverse or sharepoint.

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 850

#2
Vish WR Profile Picture

Vish WR 324

#3
Haque Profile Picture

Haque 296

Last 30 days Overall leaderboard