Voiceflow PartnersVPVoiceflow Partners
Powered by
Cr4shBarcodeC
Voiceflow Partners•8mo ago•
2 replies
Cr4shBarcode

Is there a way to store API response as JSON/object instead of text/string?

I'm brand-new to coding, so forgive me if this is a dumb question or an obvious fix, I just can't see it. I'm doing an API call on an appointment scheduler to get a list of currently booked appointments for a user. I know for a fact that there are a total of two appointments on the schedule. The response body lists them as "0" and "1" respectively.

I'm getting an error that ChatGPT says might be because API mapping stored the response as a stringified object via .toString(), instead of as proper JSON. How can I ensure that the captured response from the API call is being stored as JSON and not text?

Note: If I change " response " to " resonse.* " in the capture section, the API will return only one, not both, appointments. If I change it back to " response " it throws the error.
image.png
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

JSON response to text (string)
MoDaQuiMMoDaQui / ❓┃ask-a-question
8mo ago
response.json is not a function
recent-tealRrecent-teal / ❓┃ask-a-question
11mo ago
Is there a way to recover deleted projects?
MikeGMMikeG / ❓┃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