Voiceflow PartnersVPVoiceflow Partners
Powered by
abstract-purpleA
Voiceflow Partners•2y ago•
6 replies
abstract-purple

Help with Accessing Nested JSON Data in API Response

Hello Voiceflow Community,

I'm working on integrating an external API with my Voiceflow project and need help with parsing a nested JSON response to extract specific data and store it in Voiceflow variables.

Here is the structure of the JSON response I'm dealing with:

[
{
"recipient_id": "507f1f77bcf86cd7990421",
"custom": {
"user_id": "507f1f77bcf86cd799489321",
"question": {
"message": "What food do you have that is gluten free?"
},
"summary": "Detailed summary here...",
"products_detail": [
{
"name": "Product Name",
"seo_description": "Description here...",
"background": null,
"type": "Product Type",
"feelings": {
"Relaxed": 0,
"Sleepy": 0
},
"helps_with": {
"Weight": 0,
"Digestion": 0
}
}
]
}
}
]


What I need:

1. How to correctly use the JSON path notation in Voiceflow to access the name within products_detail.
2. How to store this value into a Voiceflow variable for further use in the conversation.
What I've tried:

I've attempted using paths like response[0].custom.products_detail[0].name, but it doesn't seem to work.
My API call setup is correct, and it works in Postman with the same endpoint and parameters.
Any insights or examples of how you handle similar JSON parsing in Voiceflow would be incredibly helpful!

Thank you!
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

Accessing API data
KaleksyKKaleksy / ❓┃ask-a-question
5mo ago
Need Help with capturing data from API Response in Voiceflow
brilliant-limeBbrilliant-lime / ❓┃ask-a-question
2y ago
Help with API Response Handling in Voiceflow
skinny-azureSskinny-azure / ❓┃ask-a-question
2y ago
Handling API response in JavaScript: extract and convert JSON data to a Variable
sacred-emeraldSsacred-emerald / ❓┃ask-a-question
2y ago