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

Community site session details

Session Id :
Copilot Studio - General
Suggested answer

Call Declarative Agent via API

(1) ShareShare
ReportReport
Posted on by 4
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)
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    487 on at
    Call Declarative Agent via API
    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 :)
  • chiaraalina Profile Picture
    47 on at
    Call Declarative Agent via API

    Hi Phuoc,

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

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2