What is your goal?
My goal is to get a file from Google Drive, extract the name, look over a list of folders, get the closest match and move the file over there.
What is the problem & what have you tried?
Ive been able to retrieve a single file from Google Drive. Then, get the list of folder names from there as well. Now im trying to use the Categorize Text node from the AI Toolkit to compare the filename to that list and find the closest match folder.
The AI node requires a ‘categories’ field that would be an Array.
So, after the Google Drive node that retrieves the list of folders, im using an Array Aggregator to obtain an array with the folder names. However, once i map it into the AI node, it fails.
When checking the details, the ‘input’ of the AI node (That means, the folder names array outputed from the Aggregator) is empty.
Im using {{map(30.array; “Name”)}} in order to get a clean Array (cause the Aggregator actually delivery an array of collections)
Ive tried to parse it via the Transform to JSON node to test the map function, however i see the same behavior: the input (the aggregator output) is empty, therefore the output from this operation is empty as well.
Ive tried different ways but im unable to reach to a solution.
- What exactly does that AI node need for the ‘categories’ field?
- Why when manipulating the Array Aggregator node, it becomes an empty input for any other node?
Error messages or input/output bundles
TypeError
Cannot convert undefined or null to object
Screenshots (scenario flow, module settings, errors)
Actual Flow:
Here, desired output shows:
AI node config:
Error msg and input shows empty Array








