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

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
    16,244 Super User 2026 Season 1 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
    101 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,992 Super User 2025 Season 1 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

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 665

#2
Vish WR Profile Picture

Vish WR 313

#3
Haque Profile Picture

Haque 227

Last 30 days Overall leaderboard