Voiceflow PartnersVPVoiceflow Partners
Powered by
skinny-azureS
Voiceflow Partners•2y ago•
4 replies
skinny-azure

Help with API Response Handling in Voiceflow

Hello everyone,

I'm working on a project in Voiceflow where I use an API to check the order status from Airtable. My current flow tries to access the order status using the path response.records[0].fields.Status, but I'm facing issues when incorrect or nonexistent order numbers are entered. In these cases, I would like the chatbot to notify the user that the order number was not found instead of showing an error or inappropriate response.

Does anyone have experience with handling this type of situation in Voiceflow? How can I effectively check if the records array is empty before trying to access the fields, and what practices would you recommend for handling errors and providing useful feedback to the user?

Any guidance or code examples would be greatly appreciated. Thanks in advance!


PD: When running the chat, if I enter a correct order number followed by an incorrect order number, it repeats the same response as for the correct order number
capture_20240611223747096.png
capture_20240611225308121.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

Need Help with capturing data from API Response in Voiceflow
brilliant-limeBbrilliant-lime / ❓┃ask-a-question
2y ago
Voiceflow API Call help
verbal-limeVverbal-lime / ❓┃ask-a-question
9mo ago
Help with Accessing Nested JSON Data in API Response
abstract-purpleAabstract-purple / ❓┃ask-a-question
2y ago
Voiceflow API parameters
living-lavenderLliving-lavender / ❓┃ask-a-question
3y ago