Distribute your prompt using a solution
You can distribute a prompt as a solution component. After you create a prompt in AI Builder, make it available for other environments to use. Do this by packaging it into a solution, and then exporting it into a zip file. After the solution is imported in the target environment, the packaged AI model is available for use.
Use the Power Apps or Power Automate solution explorer to create solutions and add components—such as prompts—to them. You can also export and import solutions by using the solution explorer.
To learn more, go to Introduction to solutions.
Note
Prompts can be added using the menu Add exising > AI models inside a solution.
It's a good idea for you to develop prompts in a sandbox or development environment first. Then, you can deploy them to a production environment with managed solutions. If you need to copy your production environment into a sandbox environment, follow the instructions in Copy an environment.
Using this process, you can use the prompt immediately after you import it. No other action is required to use it in Power Apps or Power Automate, but it's a good idea to perform a quick test in AI Builder first.
As prompts can be distributed across environments using solutions, you can automate your prompt lifecycle in the same way you would for other platform components. To learn more, go to Application lifecycle management (ALM) with Microsoft Power Platform.
Generally, we don't recommend changing imported prompts because it generates unmanaged customizations. These customizations can prevent the prompt from being properly updated in the future. Changes include updating prompt instruction or configuration.
If you accidentally modify your prompt after you've imported, delete the imported solution and then import the solution again.
To avoid accidental modification of a prompt after import, it might be a good idea to disable customization in the managed properties of the prompt before importing it.
To disable customizations, do the following:
From the solution on the menu at the top, select Managed Properties.
Turn off Allow customizations.