- Home
- Guides
- AI Builder & AI
- How to fix the AI Builder credits error in Power Automate
How to fix the AI Builder credits error in Power Automate
Get your Power Automate AI flows running again with pay-as-you-go Copilot Credits. You link an Azure billing plan to a new environment and rebuild an email summary flow that costs a fraction of a cent per run.
Jump to a step (12)
This is for anyone with a Power Automate flow that uses an AI step, like email summaries, invoice extraction or automatic replies. Licenses bought from November 1, 2026 no longer include AI Builder credits. Once an environment has no AI Builder credits and no Copilot Credits left, the flow fails at the AI step and Power Automate emails the flow owner.
The fix costs money, but very little. One Copilot Credit costs one cent. For my sample email, one summary cost 3 cents on GPT-5 chat and a fifth of a cent on GPT-6 Luna. I set up a budget alert first, then link a pay-as-you-go billing plan to a new environment and rebuild the flow there.
What you need
- An Azure subscription with a payment method. Copilot Credits are billed pay as you go through Azure.
- A non-default Power Platform environment (Sandbox or Production) with a Dataverse data store. The default environment cannot be linked to a pay-as-you-go plan.
- To create the billing plan: Power Platform admin rights, and owner or contributor on the Azure subscription.
- Power Automate with a work account and the Office 365 Outlook connector.
- AI Builder: yes. The Run a prompt action with a custom prompt uses AI Builder, billed in Copilot Credits through the billing plan.
- No premium license: Run a prompt shows no premium label, and Microsoft says an AI Builder action does not make a flow premium.
- No SharePoint.
Step by step
0 of 12 done-
01
See why the old AI flow fails
In Power Automate, click My flows and open the flow that fails, here Email summary (default environment). Open the latest Failed run. The Run a prompt step shows Forbidden. The Microsoft Learn page End of AI Builder credits explains that seeded credits were removed for licenses bought from November 1, 2026.
-
02
Set a budget alert in Azure
In the Azure portal, open Cost Management > Budgets and create a budget, like my monthly-cap. Mine has an Amount of 10 USD, Resets monthly, and its Alert conditions email me at 50 percent and 100 percent of actual cost. A budget does not stop spending. It only sends an alert.
-
03
Link a billing plan to a new environment
I created this environment and plan before filming, so these creation steps are explained, not demonstrated.
- In the Power Platform admin center, open Manage > Environments and click New
- Enter a name, select a region, select Sandbox or Production, turn on Add a Dataverse data store and click Save
- Wait until the environment is ready, then select it (here Technologiate AI Lab) and open Licensing > Billing Plans
- Click New billing plan, select your Azure subscription and a Resource group, then select the environment it should bill
-
04
Check that the billing plan is linked
Select your plan, here technologiateaiplan, and click See details. Copilot Studio is the meter that bills Copilot Credits. Under Target environments you should see your new environment, so the two are linked.
-
05
Create an automated flow in the new environment
In Power Automate, click the Environments button and select Technologiate AI Lab. Click Create, then Automated cloud flow, and type
Summarize customer emailsin the Flow name field. In Choose your flow's trigger, search fornew email arrives, select When a new email arrives (V3) from Office 365 Outlook and click Create. -
06
Run the flow only for one sender
Open the trigger's Advanced parameters and select From. In the From field, type the sender's address and select the person. Only emails from this sender run the flow and use credits.
-
07
Convert the email body to plain text
Click Insert a new action after When a new email arrives, search for
html to textand select Html to text. Click the Content field, open the dynamic content, search forbodyand select Body. Plain text is shorter than HTML, so it costs fewer tokens. -
08
Add Run a prompt with a new prompt
Click Insert a new action after Html to text, search for
run a promptand select Run a prompt. It has no premium label. Open the Prompt list and select New custom prompt. -
09
Write the prompt and add the email input
Fill in the prompt builder in this order:
- In Prompt name, type
Customer email summary - Click the Instructions box and paste
We are Sparkle Clean, a commercial cleaning company. Summarize the customer email below in three short lines: what the customer wants, any dates or deadlines, and the next step for us. Use plain text with no formatting. End each line with <br> so it shows as its own line in an email. Write None if there is no request. Email: - At the end of the instructions, type
/(a space, then a slash) and select Text - In Name of your input, type
Email text - In Sample data, paste a sample customer email:
Hello Sparkle Clean team, My name is Laura Bennett and I manage the office for Harbor Logistics. We are moving our whole team into a new building on Riverside Drive next month, and I am looking for a cleaning company that can take care of the new space before and after the move. The building has three floors. The ground floor is a reception area with a small kitchen and two meeting rooms. The first floor is an open plan office with about forty desks. The second floor has six private offices, a training room and two washrooms. In total it is around 1,200 square meters. Here is what we need. First, a deep clean of all three floors before our furniture arrives, including the windows on the inside, the kitchen and the washrooms. Second, a regular cleaning service after we move in, ideally three evenings a week, Monday, Wednesday and Friday, after 6 PM when the office is empty. We would also like a price for a one time carpet clean on the first floor once the move is finished. Our move starts on 7 December, so the deep clean would need to be done in the week before that. The landlord gives us the keys on Monday, so any day from Tuesday onwards works for us. Could you please send us a quote by Friday? We are comparing two other companies and need to decide early next week. If you would like to see the building first, I am happy to arrange a visit. You can reach me on 555-0142 during office hours, or simply reply to this email. Thank you, and I look forward to hearing from you. Kind regards, Laura Bennett Office Manager, Harbor Logistics
Then click Close.
- In Prompt name, type
-
10
Compare models and save the prompt
Open the Model: list, select GPT-5 chat and click Test. It shows 3 Copilot credits for my sample. Select GPT-6 Luna and click Test again. It shows 0.2 Copilot credits, so I keep GPT-6 Luna and click Save.
-
11
Send the summary by email
Back in the flow, click the Email text field, open the dynamic content, search for
plainand select The plain text content. Click Insert a new action after Run a prompt, search forsend an emailand select Send an email (V2). In To, typejoyand select the recipient. Then fill in:- Subject: type
Summary: - Subject: open the dynamic content, search for
subjectand select Subject - Body: open the dynamic content, search for
textand select Text from Run a prompt
Click Save.
- Subject: type
-
12
Test the flow and check the cost
Click Test, select Manually and click Test, then send a customer email from the sender's mailbox. Open Run a prompt in the successful run to see the credits under Message consumption, and open the summary email in the recipient's Outlook. For cost, open the Copilot Credits page in the Power Platform admin center, then in the Azure portal open Cost analysis, click Browse all views and select Accumulated costs.
Tips and common problems
- The error in your tenant may look different. Instead of Forbidden you may see QuotaExceeded.
- The default environment cannot be linked to a pay-as-you-go plan. Create a new Sandbox or Production environment and wait for Dataverse to finish before you link it.
- An Azure budget does not stop spending. It only emails you when costs reach your alert levels.
- Filter the trigger by sender. Every email that runs the flow uses credits.
- Copilot Credits usage shows in the admin center with about a one-day delay, so a run from today is not listed yet.
- Azure shows costs in your billing account's currency, and longer emails use more credits. Your cost per summary can differ from my sample.
Questions
Does the Run a prompt action need a premium license?
No. Run a prompt shows no premium label, and Microsoft says an AI Builder action does not make a flow premium. You still pay for the Copilot Credits through Azure.
How much does this cost per month?
One Copilot Credit costs one cent. My sample email cost 0.2 cents on GPT-6 Luna and 3 cents on GPT-5 chat, so 500 similar emails a month cost about one dollar on GPT-6 Luna or about 15 dollars on GPT-5 chat.
I bought my license before November 1, 2026. Am I affected?
You keep your seeded AI Builder credits until the end of the contract term. If you still have AI Builder credits from a license or an add-on, check them in the admin center first.
Does testing in prompt builder use credits?
No. Testing in prompt builder does not use credits, but a flow run with the same email uses about the same amount it shows.
Why do I need a new environment?
Microsoft's docs say the default environment cannot be linked to a pay-as-you-go plan. That is why the flow is rebuilt in a new environment.
