Arrays and Dates with $fromAI()

I am wondering if it is possible to use arrays and dates as types. It seems I can only use strings, numbers and json with the fromAI function in the tool. I am using the supabase tool and some of my columns have arrays or date fields which are not able to be used in the tool.

Also, maybe I am doing something wrong but when I use the magic AI definition for a field, I can’t use multiple fields because they all use Field_Value and do not update to use the Field Name defined. Seems a bit useless without that. I run into Field_Value conflicts otherwise!

Information on your n8n setup

  • **n8n version: 1.78.1
  • **Database (default: SQLite): SQLite
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): not sure tbh couldn’t find it in the environment variables in coolify
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): docker/coolify
  • **Operating system: linux

I also have the same issue with the magic AI. But using $fromAI is much better in my opinion and solves the problem while they fix this bug.

About the arrays, you could ask for a string value, instead.
I’ve also tried using arrays without luck, but what solved for me was saying something like:

$fromAI('id_array','All the items IDs inside brackets. For example: [id1, id2, id3]','string')

Or you could also request it without the brackets and write the brackets yourself. Whatever fits best for your needs.

:muscle: If my reply answers your question, please remember to mark it as a solution.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.