web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Multiple document type...
Power Automate
Answered

Multiple document types - how to detect which model to use

(0) ShareShare
ReportReport
Posted on by 256

Hi,

I would like to create a document processing process, but on the same service email address I receive multiple document types. Because of the language (Romanian) and some specific fields I cannot use the prebuilt models, and I have to create custom models for each document type.

Let's say there are three model types:

  1. Invoices
  2. Receipts
  3. Activity Reports

From what I've found until now - one approach is to use the "predict" action with each of the model. The problem with this approach is that will consume a lot of AI Builder credits, especially when the model types will increase.

 

I cannot detect document type based on sender, because the same sender could attach different document types, so the detection should be at the document level.

 

So, is there a way to determine the "document type" and after that to use the right model for it? Which AI Builder model would better achieving this task: Entity Extraction, Category classification or else (assuming that I probably need to use "Text recognition" along the way)?

 

Kind Regards,

Lucian

Categories:
I have the same question (0)
  • Verified answer
    Antoine2F Profile Picture
    on at

    Hi,

    Recommendation is to use Text Recognition upfront. 

    It should be enough and it consumes only 3 credits/Image. 

    Using text recognition output, search for specific text pattern (eg: 'Invoice' or 'Project') to determine the type of document so you can then call the appropriate model.

     

     

  • Lucian Profile Picture
    256 on at

    Hello @Antoine2F ,

     

    Thank you for your suggestion, it seems reasonable, and I will have to give it a try. My concern with this approach is that may exist situation when I will have an invoice for a specific project, and how could I choose when both words will be detected.

     

    Additionally, because you mentioned "it consumes only 3 credits/Image", I would to know where these credits are mentioned in Microsoft documentation. 😁

     

    The only information I found until now is the AI Builder Calculator which mention for "Text recognition" model in the "Customer usage example" - "company needs 1 million service credits for 50,000 photos" which will result in 20 service credits per image.

     

    Is there any other (and clearer) information about how these credits are consumed by each model?

     

    Kind Regards,

    Lucian

  • Antoine2F Profile Picture
    on at

    Hello Lucian

    Detailed consumption rate can be found in Microsoft Power Apps and Power Automate Licensing guide (pdf).

    Link to this guide is given here Licensing overview for Microsoft Power Platform - Power Platform | Microsoft Learn

    Here is the direct link : https://go.microsoft.com/fwlink/?linkid=2085130

    Rate card is page 23 in February 2023 version. Note this guide can be updated every month or so.

     

    Hope this helps! 

     

     

  • Lucian Profile Picture
    256 on at

    Hello @Antoine2F ,

     

    Thank you for all the detailed information.

     

    Kind Regards,

    Lucian

  • jk_one Profile Picture
    Moderator on at

    Hi Lucian,

    We've also now added an AI Builder activity monitoring page (in preview) in the Power Automate portal, where you can track credit usage of different models : Activity monitoring (preview) | Microsoft Learn 

    Hope that helps !
    JK

  • Lucian Profile Picture
    256 on at

    Hi @jk_one ,

     

    Niiiice! Is very usefull! Now I could clearly see that @Antoine2F was right (only 3 credits)! 😁

    It's easier now to check the credits consumption. It would be nice to have the flow run id or something to "link" that information to the flow that executed that actions.

     

    Thank you very much for pointing me this.

     

    Kind Regards,

    Lucian

  • jk_one Profile Picture
    Moderator on at

    Hi Lucian,
    Thank you for the feedback!
    Adding the link to the flow/app is indeed on our roadmap. 
    Best regards,
    JK

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard