MoDaQuiM

JSON response to text (string)

Hey guys,
I want to display the full JSON response from my Shopify Storefront API call inside a Voiceflow variable so that my AI agent can access and read the product data.

The API call works fine in the Test Request, I can see the product data (title, description, image, price, etc.).
However, when I capture the response into a variable (e.g. {rawProducts}), the variable ends up empty ([]) instead of showing the full JSON content.

Solutions that I've already tried:
  1. Capturing data.products.edges directly into {rawProducts} or with response
  2. Using JSON.stringify(rawProducts) in a Set block
  3. Testing with different variable types (array, string, object)
So how can I correctly capture the entire JSON response from my Shopify Storefront API into a Voiceflow variable, so that it’s not empty and my AI agent can actually access the product information, please?
Was this page helpful?