How to Invoke Power Platform AI Builder Models with PowerShell or API
Question details
The user wants to know how to interact with Power Platform AI Builder models (invoke, train, or retrain) using PowerShell scripts or direct API calls rather than the standard user interface.

- Product
- Power Platform
- Device & OS
- not provided
- Scenario
- Automating AI Builder tasks programmatically using scripts or third-party applications.
- Observed behavior
- Seeking proper endpoints, authentication methods, and specialized guidance for bypassing the UI and using direct APIs or PowerShell for AI Builder models.
Ensure you have active Microsoft Power Platform administrative credentials, environment access, and a basic understanding of REST APIs and OAuth authentication before attempting programmatic access.
Consult the Microsoft Power Automate Community
Since invoking AI Builder models via raw APIs or PowerShell requires specialized connectors and authentication, the official community is the best place for current documentation and specialized developer support.
Microsoft's AI Builder capabilities are frequently updated, and direct API access methods (like Dataverse endpoints) can change. The community forums are monitored by specialists who can confirm supported AI Builder connectors and custom API routes.
Go to the official Microsoft Power Automate Community website in your web browser.
Use the search bar to look for 'AI Builder API' or 'PowerShell AI Builder' to see if other developers have already resolved similar integration issues.
If no existing solution fits, create a new post detailing your specific requirement, including your target AI model type, environment details, and current authentication approach.

Utilize Microsoft Dataverse Web API
AI Builder models are often stored and executed within Microsoft Dataverse, making the Dataverse Web API a viable route for programmatic invocation.
Boost Your Productivity with WPS Office
While highly specialized automation like Power Platform APIs requires specific Microsoft ecosystems, managing your daily documents, spreadsheets, and presentations doesn't have to be complex or expensive. WPS Office is a highly compatible, lightweight, and free alternative to Microsoft Office.
- 1. Download the Installer: Visit the official WPS Office website and download the free version for your operating system.
- 2. Install the Software: Run the downloaded installer and follow the simple on-screen prompts to complete the setup process.
- 3. Open Your Microsoft Files: Launch WPS Office and instantly open your existing .docx, .xlsx, or .pptx files without any formatting loss.

Frequently Asked Questions
Can I trigger an AI Builder model directly from a third-party application?
Yes, by utilizing the Microsoft Dataverse Web API, you can authenticate via OAuth and send HTTP POST requests to the specific prediction endpoints associated with your AI Builder model.
Is there a dedicated PowerShell module for AI Builder?
Microsoft does not currently provide a dedicated PowerShell module solely for AI Builder. You typically use standard REST invocation commands like Invoke-RestMethod to interact with the Dataverse APIs where the models run.
How do I retrain an AI Builder model programmatically?
Programmatic retraining is complex and endpoints are often restricted or undocumented for direct API access. It is best to check the Power Automate Community for the latest supported methods or utilize native Power Automate flows triggered by an API call.




