Using latest n8n on local setup via npm (pm2)
I have an AI Agent (with a custom system prompt) connected to a Airtable create record tool.
The underlying airtable table has string and multi select columns.
In the airtable tool the settings is to map each column manually.
I have added all fields of the table and let the AI fill them.
Tool description is set automatically as well.
For the string columns it seems to go through, however for the multi select columns, it returns an error.
Sample input of the tool:
{
âtext1â: âxxxxxxâ,
âmultiselect1â: âyyyyyâ,
}
Error:
{ âmessageâ: âInvalid input for âmultiselect1â [item 0]â, âtimestampâ: 1744700318723, ânameâ: âExpressionErrorâ, âdescriptionâ: ââmultiselect1â expects a array but we got âyyyyyââ, âcontextâ: { ânodeCauseâ: âcreate-airtable-recordâ } }
For multi selects it should return an array instead of a string.
Iâve tried to say this explicitly in the system prompt by adding:
For the âmultiselect1â field, make sure to return an array containing teh values you want to input. For example: âmultiselect1â: [âxxxxxâ]
Now it fails at the AI Agent node with Problem in node âAI Agent1â [ERROR: Received tool input did not match expected schema]
How can I make this work?