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 / Call Declarative Agent...
Copilot Studio
Suggested Answer

Call Declarative Agent via API

(2) ShareShare
ReportReport
Posted on by 6
Hi everyone,
Im looking for an API to call the Declarative Agent I created to get the replies to my questions in a more programatic way. I am looking through the documentation and could use the /beta/copilot/retrieval api in Graph API to get the response from copilot. However, it seems to not be from my created agent as there is no field in the request to specify it. I wonder if it has not been developed or I have not found it.
 
Appreciate your responses. Thank you so much!
 
Phuoc.
Categories:
I have the same question (0)
  • chiaraalina Profile Picture
    1,944 Super User 2026 Season 1 on at

    Hi Phuoc,

    I had a similar problem and solved it using Power Automate.

     

  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,633 Super User 2026 Season 1 on at
    hello, i hope i don't misunerstand the question so i will try many answer :
     
    - You could use programmatically the bot in custom web app but could not change the content. it's the web app chanel
     
    if not the question,s orry, so i have other suggestion
     
    - you could "have" the answer just before it's written on screen and modify everything with 2 new variable : one for content, and one for sources. Create a topic, then go on the trigger, clic the double arrow, and choose the "generative answer generated" (sorry translation is totally different and non sense in all language) : inside you will have 2 new system variable for answer and source. You could rewrite everything as you wish
     
    hope this help :)

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 802

#2
Vish WR Profile Picture

Vish WR 331

#3
Haque Profile Picture

Haque 292

Last 30 days Overall leaderboard