Al_BA
BuildShip•2y ago•
10 replies
Al_B

Using Firestore Collection Query Output in OpenAI Assistant Prompt

Hi - I'm trying to use the output from a Firestore Collection Query in the prompt of a subsequent OpenAI assistant node. Unfortunately, if I input the query's 'Document Data' object directly in the assistant prompt, the value returns undefined at runtime 😢 . (The query itself is succesful, I've validated that).

I assume the Query output needs to be transformed somehow in order to be used in the assistant prompt, but I'm not sure how? I've tried the Parse and Stringify JSON nodes and neither worked. Does anyone have insight into what I have to do to the object in order to utilize?

Thanks in advance!
Was this page helpful?