Classify text with Api chat gpt & Bubble.io

Hello erveryone, im looking for a way to use the Api chat gpt to classify text into labels (like does Levity, but its very expensive and there is some bugs).
I found some forum about this goal but the Api they talk about is not at the same form that i use to see. There is no Curl url :

I don’t know to use it on bubble.io, because there is no “import” function on bubble.io
Has someone the solution ? Or where am i wrong

Salut @maximilien.godeau.of ,

Can you please describe what kind of classification you require, along with example?
Depending on your requirements, a simple model without API may be sufficient.

Have a look at these videos for integrating Bubble with OpenAI

Thanks for the question

To tell all the thing :

  • I try to labelize a list of invoices : for that i use an OCR (by the way im looking for the best ocr on the market if you know this one).
    So, i use this Ocr to collect pieces of information about the invoice and with Chat gpt api, i want to classify these facture with a label (“purchase of raw materials”,
    “purchase of fuel”,
    “car park”,
    “restaurant”, etc)
  • I also like to add several labels to one invoice (importation, dollars or euro factured, etc.)
  • and it would be incredible if i can add a contextualisation to the call Api for the company who receives these invoice. For exemple : “une entreprise du bâtiment donc tous les achats de bois sont dans la catégorie achat de matiere premiere”

To finish
you understood, it would be an accounting tool

So it really nice to help me thanks :muscle:t3:
And happy New year

Yes thanks, i have the impression that its more complexe to use some api tools like Text Classify, the Api is not the same… it is like i have to do a real code for that

So, for those points, I would use a specialised OCR system for invoices and/or receipt (tickets de caisse, reçus). You mentioned both contexts, that’s why I will mention both systems.
I mentioned receipts because they often come with categorisation as well, so you might even kill two birds with one stone. You would need to test the performance of those with sample data, directly on the demos so you have an idea of what it is capable of.

So, for receipts, I have successfully used Google Document AI Expense Receipt, The one I had the best result is Microsoft Azure - Receipt OCR.

For both: AWS Textract - Invoice & Receipt.

For invoices only, Microsoft Azure - Invoice OCR and Google Document AI - Invoice OCR.

The last part will be better served with a generative assistant, such as chatGPT.

Yes thanks i came to the same conclusion, but im not a developer so, its a bit s labyrinth to use Document AI and as i mentioned before should i code in javascript in bubble to make a special call Api like text classify ?
Thanks for your solution :muscle:t3:

Not at all. They all come with detailed steps by steps instructions. AWS and GCP comes with automated deployment script, no code needed.

They also come with reasonable setup support when it comes to my plugins.

What are you plug in if you have one about text classify ?

The ones I mentioned before.
I don’t think you need text classify as the systems I mentioned above return an expense category when performing expenses/receipts OCR.
Please try the demo to see if suitable.

If not, @mccjon solution works to integrate Open AI.

I understand what you mean but im trying to classify which type of expense it is, your plug in allows to do it ?

Oh i tried to use your plug in last days. The Document google AI, but i got an error. I will send you the error i got if you want, i suppose the plug in is great