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 / Is there a way to Publ...
Copilot Studio
Unanswered

Is there a way to Publish a Copilot programmatically?

(1) ShareShare
ReportReport
Posted on by 50
Hi,
We upload and remove Knowledge files in Copilots through a Power automate flow. Works good. But new files in Knowledge seems to require a re-publish before they get available in Published channels(?).

If this is not correct, I welcome a correction and reference. Otherwise I'm interested to know if anyone can tell if it is possible to Publish a Copilot through api call or similar?

Before and directly after force Publishing in Studio. Also ensured timings are out of play...



Thanks,
Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at
    Hi,
     
    I'm not sure if there is a way but one thing I am going to experiment with is using Power Automate for Desktop and publish new knowledge files with a quick flow.
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
  • Verified answer
    juangonzalezAuc Profile Picture
    84 on at
    Yes, there is, using the power platform build tools, you can do it via command line or with a devops pipeline:
     
     
  • SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    CLI - pac copilot -
    Command Description
    pac copilot create Creates a new copilot using an existing template file as the reference.
    pac copilot extract-template Extracts a template file from an existing copilot in an environment.
    pac copilot extract-translation Extracts file containing localized content for one or more bots.
    pac copilot list List of copilots in the current or target Dataverse environment.
    pac copilot merge-translation Merge files containing localized content for one or more bots.
    pac copilot model list AI Builder models in the current environment.
    pac copilot model predict Sends text or prompt to AI Model
    pac copilot model prepare-fetch Takes the FetchXML file from the AI Large Language Model (LLM) and prepares it for execution against the current environment.
    pac copilot publish Publish a Custom Copilot
    pac copilot status Poll the deployment status of a specified copilot in the current or target Dataverse environment.
  • AM-04021109-0 Profile Picture
    2 on at
    Hi,
     
    Is any get any solution for this? I also want to republish my copilot chatbot after adding new files to knowledge base. Kindly elaborate the steps.

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

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard