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

Response/JSON path for data retrieval and displaying stored data to the user

Hi there, running into some issues with Voiceflow and the proper capture response notations it expects to be able to properly retrieve, store, and display information that is stored within a variable.


Capture Response/JSON Path for Retrieval:
What is the correct Response/JSON path or notation that I should include in my capture response fields to retrieve information from an API endpoint for a key called "summary"? How can I properly store it in a Voiceflow variable named "chatbot_summary" for later access? The key returns as a string.

Displaying Stored Data:
After storing string data into a variable, how can I retrieve and display the string stored in the "chatbot_summary" variable to a user in a message on Voiceflow?

Example Payload
To help illustrate my query, here's a generic example of our payload structure. I need to capture the string within "summary" from this data:

[
{
"recipient_id": "1234567890abcdef",
"custom": {
"user_id": "1234567890abcdef",
"question": {
"message": "Which product is recommendeded for afternoon activities?"
},
"summary": "Hello! Here’s a great option for afternoon activities: Product A. Ideal for your needs!",
"products_detail": [
{
"name": "Product A",
"seo_description": "Product A is known for its balanced effects.",
"background": null,
"type": "null",
}
]
}
}
]
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
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

JSON response to text (string)
MoDaQuiMMoDaQui / ❓┃ask-a-question
8mo ago
Handling API response in JavaScript: extract and convert JSON data to a Variable
sacred-emeraldSsacred-emerald / ❓┃ask-a-question
2y ago
Buttons and capturing data from the user
military-pinkMmilitary-pink / ❓┃ask-a-question
3y ago
Help with Accessing Nested JSON Data in API Response
abstract-purpleAabstract-purple / ❓┃ask-a-question
2y ago