Hello Community,
I'm currently working on integrating an AI Builder model into my Power Automate flow and am attempting to utilize a dynamic model ID as outlined in the Use of Dynamic Model ID (Advanced) section of the Microsoft documentation (https://learn.microsoft.com/en-us/ai-builder/predict-action-pwr-automate#use-a-dynamic-model-id-advanced).
I've been following the instructions for extracting the model ID from the model's detail page URL on Power Apps, which typically looks like this: make.powerapps.com/environment/[environment id]/aibuilder/models/[model id]. I've extracted my environment ID and model ID and set them as strings in my flow configuration.
However, I'm encountering an issue where the flow does not seem to recognize or properly utilize the model ID I've specified. I've double-checked to ensure that the model ID corresponds exactly to the one in the URL (e.g., 'abc123def456'), but the issue persists.
Any advice, insights, or suggestions would be greatly appreciated. If more details about my flow configuration are needed to provide assistance, I'm happy to provide them.
Thank you in advance for your help!
I tried different things in order to try to set a dynamic model id, I followed your steps, in model id initialize variable I set model id in the Name input, then String in Type, then in value I set the model ID value that I got from AI Hub, but is not working. Any hint of what am I doing wrong?
In this documentation step we are showing how to retrieve your model ID from the url.
Enter model id in the Name input, String in the Type input, and the actual model ID in the Value input.
The model ID can be found in the URL of the model's detail page in Power Apps: make.powerapps.com/environment/[environment id]/aibuilder/models/[model id]
Can you try by adding your model ID in Value and not the url?
Is not exactly "Predict", I'm trying to use the action "Extract information from documents" using dynamic model ID that belongs to AI Builder connector. But is now working if I'm trying to replace environemt id and model id as it shows in Documentation. May you know why is ocurring this error
thanks, so you want to use the predict action in your cloud flow for your custom AI Builder Document Processing model ?
Use predict action in Power Automate - AI Builder | Microsoft Learn
Hello @plarrue ,
Yes I have a Cloud flow that is currently using AI Builder for Extract Information from documents and I trained a Custom Model for specific invoice structure, that's why I need to dynamically indicate what is the AI Model that flow will use in order to extract right information depending on the Invoice Carrier.
PS: Here's the documentation that I'm trying to follow but I cannot assign a string in AI Model parameter. Any idea of what am I doing wrong?
Hi @LuisAznar ,
Could you please share the Microsoft documentation link of this ?
I've been following the instructions for extracting the model ID from the model's detail page URL on Power Apps, which typically looks like this: make.powerapps.com/environment/[environment id]/aibuilder/models/[model id]. I've extracted my environment ID and model ID and set them as strings in my flow configuration.
Did you build a document processing model and want to use it in a flow ?
thanks,
Regards
Philippe
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2