Elli Grossman
Elli Grossman7mo ago

how to integrate document ai

HI, i am a newbie here. i am now building a project in flutterflow, and i need a function to send a pdf file (base64 string) to google's Document AI it will extract the data and I want to get back the exact data i need. to be more specific, i need to extract data from quotes like, Client details, Product details, Costs etc... i tried doing it by myself in buildship but i can't figure it out. there is a tutorial & template in Rowy so i thought i will do it there and figure it out, but it's not working anymore (the template). in the comments in the youtube video they say that there is a updated video, but the updated video is using buildship and a google vision template. but, 1: i tried it and it did not work for me. 2: Google vision isn't the the right solution for me, because i need it to be very accurate. Google's Document AI is very accurate and is made for this. i can train there on my own documents. Please if anyone can help me to solve this. i need this to work urgently. Thank you very much! @Buildship
Solution:
@elli - This is still a WIP, but you can give this workflow a try on your end.
Jump to solution
21 Replies
Luis
Luis7mo ago
Hey @elli, we are looking into this for you.
Elli Grossman
Elli Grossman7mo ago
Thank you so much!! @Luis are there any updates?
Luis
Luis7mo ago
Yep, I’ll share a demo that you can try out shortly
Solution
Luis
Luis7mo ago
@elli - This is still a WIP, but you can give this workflow a try on your end.
Luis
Luis7mo ago
Here's a short video to setup the requirements in your project: https://jam.dev/c/081b1d15-f9cd-4f17-838e-b13a7fd8668a Let me know if you have any questions.
Elli Grossman
Elli Grossman7mo ago
Wow, Thanks so much!! I will check it out. You guys are amazing! @Luis How do i use this text file?
Luis
Luis7mo ago
So You can copy the contents of the file and in BuildShip you can paste it to create the workflow https://docs.buildship.com/features/copy-paste
Copy & Paste – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Elli Grossman
Elli Grossman7mo ago
Hy @Luis Thanks you so much, I managed to do it, but i am getting the following error: { "error": "7 PERMISSION_DENIED: Cloud Document AI API has not been used in project buildship-y9y617 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/documentai.googleapis.com/overview?project=buildship-y9y617 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry." } But i did enable the permissions like you should in the video. How can i fix it?
Google Cloud Platform
Google Cloud Platform lets you build, deploy, and scale applications, websites, and services on the same infrastructure as Google.
Luis
Luis7mo ago
Oh, and did you grant buildship the permission to access the document ai api. I think i showed that part as well in the recording
Elli Grossman
Elli Grossman7mo ago
i enabled the api and added the service accoiunt. as shown in the video @Luis
Luis
Luis7mo ago
that's odd, I'll dm you.
cdooml
cdooml6mo ago
@Luis hi there, i have the same problem, i copied the template above and followed the video, please help.
jak
jak5mo ago
Hey @Luis ! Your Jam video has been helpful and have done the IAM step, but when copy pasting in the text file contents I only get an error. I have access to the stock node (below)... where confusingly there is no option to input project id or processor id. I have a feeling that without your help, the document AI node isnt usable by anyone. I'd love to get this going! thanks
Luis
Luis5mo ago
Hey @jak, sorry about that. We've done some internal changes regarding access to the google console which affects how Document AI works/is configured, so for the time being it won't work. @Gaurav Chadha can shed more light on this.
jak
jak5mo ago
thanks @Luis for the context! @Gaurav Chadha let me know if fixing the Document AI node is on the short term roadmap 👍