JipprJ
BuildShip17mo ago
6 replies
Jippr

get firebase collection data

Hi as of a test I am trying to collect my customer data through a node however the OpenAI assistant that should use this node throws this error:

400 Invalid schema for function 'getCustomers': In context=('properties', 'orderBy'), array schema missing items.

I am not sure what I am doing wrong here.
Solution
Hi @Jippr, Currently the OpenAI Assitatant throws an error if it has a ndoe (tool) which has an array input field. As a solution you can make the query outside the Assistant node and then add an empty node inside the Assistant then store the variable output of the Firestore Collection Query node to make your workflow work.

Or alternatlveiy you can use the Anthropic Claude Assistant which will work even with array inputs.
Was this page helpful?