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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Need help with Ai Builder/text recognition (and using this number as a file-name)

(0) ShareShare
ReportReport
Posted on by

Hi there,


Last week I started to use Power Automate for the first time at my new job and i'm loving it!
But, i'm still learning the basics and sometimes it's impossible for me to find things (English is not my native language, so it makes it even harder 🙂 )

 

And now I'm stuck.

I'm trying to create a flow with Ai Builder to get the 'packing slip'-number (img2, yellow) from an image/pdf (pakbonnr.jpg), but I can't figure out what to do next..
I already saw that the Ai Builder has found this number what I want (img2, green), but it's not showing the result where I want.
I'd like to rename files in Sharepoint and use this number as it's name. The screenshots (img1/img2) are both from the 'prediction' method of the Ai Builder after completion, so I could check what happened.
The model I use is the 'Receipt Scanning Model' and the file I used is 'File content' (connected to/from a Sharepoint file).

Is there any way to accomplish this? If it's not possible it's also fine, but I lack knowledge at this point..

Thank you for your time and if you can help, let me know (detailed pls) 😊

I have the same question (0)
  • v-chengfen-msft Profile Picture
    on at
    Re: Need help with Ai Builder/text recognition (and using this number as a file-name)

    Hi @Anonymous ,

    Here is a test for your reference:

     

    Use the third image you provided here

    vchengfenmsft_0-1670384766820.png

    Here is flow:

    vchengfenmsft_1-1670384982013.png

     

    Here is result:

    vchengfenmsft_2-1670385042846.png

    Here is a link about Al Builder for your reference:

    Use the text recognition prebuilt model in Power Automate - AI Builder | Microsoft Learn

     

    Best Regards

    Cheng Feng

  • Community Power Platform Member Profile Picture
    on at
    Re: Need help with Ai Builder/text recognition (and using this number as a file-name)

    Hi v-chengfen-msft

    Thank you for your time, I really appreciate it! 🙂


    I replicated what you build and it worked great! The only problem is, in my document there's more text than I need/want (I only showed you a part of the invoice)..
    The only thing I know is that the location of the text should be here:

     

     

     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "text": "pakbonnr: 6332896857",
     "boundingBox": {
     "@odata.type": "#Microsoft.Dynamics.CRM.expando",
     "left": 0.6645161290322581,
     "top": 0.33352337514253133,
     "width": 0.18467741935483872,
     "height": 0.013683010262257711,
     "polygon": {

     

     

     

    I've uploaded another attachment, so you (and others) can understand what I'm trying to create and maybe it's impossible? idk..?

     

    The red circle is the default location for this 'order number', so now I'm looking for an option where I can use OCR/Ai Builder for this location only (otherwise it'll give me more data as mentioned earlier).

    Is this possible?

     

    And if it's not, is there an option to fill in a field with some text like 'pakbonnr: *********' so the flow only scans this part of data/information?
    I.e.: if OCR finds 'pakbonnr:' [space] '10 numbers', then use this sentence only or something..


    And when completed, is it possible that the flow creates a new Sharepoint-file with this text as it's name?

     

    Again, thank you for your time and have a nice day 💯

    I hope everything is understandable 😊

     

     

     

     

  • Verified answer
    v-chengfen-msft Profile Picture
    on at
    Re: Need help with Ai Builder/text recognition (and using this number as a file-name)

    Hi @Anonymous ,

    I think if you want to recognize only the parts you want, you need to customize a model

    If you want custom model try this

    vchengfenmsft_0-1670487601244.png

    vchengfenmsft_1-1670487670813.pngvchengfenmsft_2-1670487687520.pngvchengfenmsft_3-1670487755149.png

    vchengfenmsft_4-1670487784103.png

    Please add at least five invoice pictures for model reference

    vchengfenmsft_5-1670487819361.png

    vchengfenmsft_6-1670488247066.pngvchengfenmsft_7-1670488267106.png

    Wait for the model to be trained and we can use it

     

    If you want to use this number as the file name is fine, when Ai Builder recognizes this part of the content, you can directly use it as the file name

     

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

    Best Regards

    Cheng Feng

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard