NitchevN
BuildShip2y ago
3 replies
Nitchev

Nitchev - Can anyone give me a little guidance,...

Can anyone give me a little guidance, please? I'm using OpenAI JSON generation to convert a conversion. I got the first name and last name out. BUT when I run in the Query input parameter for Algolia to filter the search with that specific name (only entry like that), Algolia gives me a list of ALL the contacts I have in my Collection. When I run the test mode and input the name manually, it always comes out. But not when I use the JSON from OpenAI.
Prompt_Output.png
Solution
Hi @Nitchev, you can add a log to confirm if the value of first_name is extracted correctly. If the value is undefined. You can add a Parse JSON node after the Open AI JSON Generator node and pass the response, --> then use the parsed response to add the firstname (of the required field) to the Algolia Query. (test screenshot attached).
image.png
Was this page helpful?