Voiceflow PartnersVPVoiceflow Partners
Powered by
MoDaQuiM
Voiceflow Partners•8mo ago•
5 replies
MoDaQui

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?
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

Is there a way to store API response as JSON/object instead of text/string?
Cr4shBarcodeCCr4shBarcode / ❓┃ask-a-question
7mo ago
response.json is not a function
recent-tealRrecent-teal / ❓┃ask-a-question
11mo ago
Marked down text file or JSON
DrBannyDDrBanny / ❓┃ask-a-question
2y ago
Help with Accessing Nested JSON Data in API Response
abstract-purpleAabstract-purple / ❓┃ask-a-question
2y ago