rival-black
rival-black2y ago

Shopify product database to voiceflow

Hi, everyone. I would like to create product advisor chat bot. I have a huge problem with this task. I add shopify api and successfully recieve product information (look at screen). And I try to save this json answer to a variable in order to send this variable to ai. I tried Capture Response with names(response, response.products) But it didn't help. Look at answer at screen. Please, help me. If somebody knows other options how to make a product advisor chat bot, I`m glad to speak with you
No description
No description
4 Replies
Steve B. | IntelleSync.ai
firstly remove both double quotes "". try response.products.id if that works then add whatever 'name' you need.
rival-black
rival-blackOP2y ago
Thank you very much. About the brackets, it's just that I've already tested this variant in desperation, without them it doesn't work either. The id idea didn't help( Appreciate your time I need ai to analyze all the information from this api and give me an answer Appreciate your time
rising-crimson
rising-crimson2y ago
You have to stringify the object! Voiceflow doesnt display objects well In a Javascript step do shopifyResponse = JSON.stringify(shopifyResponse) That will turn the response from an object into a string so it can be displayed
rival-black
rival-blackOP2y ago
Thanks, I will test it tomorrow and write you down! Unfortunately, didn't help Thank you anyway

Did you find this page helpful?