♻ [FREE] RecycleAI Extension

Ciao,
For a recent project of mine, I created this extension that I want to share. It allows the OpenAI API Platform's artificial intelligence to search for recycling codes within a sentence. After analyzing the sentence, the AI returns essential information about the codes it found.
This can be a starting point to create a generic extension for any other subject.

SetApiKey
Add your OpenAI Api Key (register to https://platform.openai.com/ to get the api key)

GetRecyclingInfo

sentence: the sentence that AI analyzes

GotRecyclingInfo

responseCode = 200 ok
response = the complete AI response
errorMessage = empty if there is no error
recycingCodes = a list of the recycling codes found
materials = a list of materials linked to recycling codes.

sentence
GetMaterialInfo
sentence: the recycling code for which I need information.
language: it, en, es, fr ,de, pt

GotMaterialInfo

material: the material to which this recycling code refers.
commonUse: where this code can be found
recyclable: is recyclable? true false
note: some note

Files:
Source code:
RecycleAI.txt (46.9 KB)

Extension:
RecycleAI.aix (31.3 KB)

I hope You find useful
Best Regards

Marco Perrone

1 Like

what's recycling code? in what phrase?
And where to get the ApiKey?

what's recycling code?

in what phrase?
As I mentioned at the beginning, this extension is for a specific project, and I shared it here because I believe the source code could be useful to someone, with the appropriate modifications, for their own purposes.
In my case, I use my own extension called OCR.Space to convert an image (such as product packaging) into a sentence (phrase). From this phrase, the RecycleAI extension extracts any recycling codes.

And where to get the ApiKey?
As I mentioned the extension uses OpenAI API Platform, so You need to register https://platform.openai.com/ to get an Api Key

1 Like

Thanks for your questions, actually, now it's clearer what I meant to say, i changed phrase with sentence, my mistake (english is not my language).