How to check if the data in api request was actual...
# support
n
I am sending "questions" field in the api request but I am not sure if it is being passed in the prompt to ai before making the call
v
I couldn't find a clear way to check if the
questions
field from your API request is actually included in the prompt before the call is made. Some users have mentioned that referencing variables like this in the prompt doesn't always work as expected, and there isn't a documented method to verify it right now ([source](https://discord.com/channels/1211482211119796234/1336012449739968653)). I'm escalating this to a human expert who can help you further!
n
Okay I was able to find this out but. In my request I am passing "questions" : [ {}, {}, {} ] But in the system prompt instead of getting converted to the data it is being converted into [object Object][object Object][object Object] How can I over come this ?
v
Hey Nipun! Would you mind giving me a call id where this occurred so I can investigate what happened?
n
Sure.
71e5c26a-8727-40f0-a134-b05e567157f9
@User Can someone look into this ? Or guide me ?
I understood the issue. LiquidJs inserts a array of complex objects in [object] [Object] format. I just looped through in LiquidJs format and extracted the data according to my needs. https://cdn.discordapp.com/attachments/1372189353652256879/1372485695238701096/image.png?ex=6826f269&is=6825a0e9&hm=10cbd54fdea8a7869a081eaf51915c0fa944e93195953232f87f6b12d9bfc399&
v
Glad you were able to figure it out. Let us know if you have any more questions
2 Views