Voiceflow PartnersVPVoiceflow Partners
Powered by
safe-amethystS
Voiceflow Partners•2y ago•
2 replies
safe-amethyst

Interactions in the Dashboard is different from the response of REST API endpoint

I want to integrate Voiceflow into my Flutter app through the use of REST API, but I am having issues with the different responses coming from the API response.

I want to achieve the exact chat flow (in terms of options given as responses to questions) in my app, as it is in the Dashboard.

The full URL I am using is https://general-runtime.voiceflow.com/state/user/$userId/interact

In the response, I am checking for the element where
element['type'] == "text"
element['type'] == "text"
, in which I will show to the user as the response of the bot.

And using,
element['type'] == "choice"
element['type'] == "choice"
to get the choices given in the response
final Map<String, dynamic> actualChoices = (res?.$2 as List).firstWhere((element) => element['type'] == "choice");
final Map<String, dynamic> actualChoices = (res?.$2 as List).firstWhere((element) => element['type'] == "choice");


Now, the issue is that the choices I am getting from
actualChoices['payload']['buttons']
actualChoices['payload']['buttons']
is more like a default choice, and not the choice set for each question.

The point is that I need help understanding the API responses well, so that I can use the understanding to build my app, and hopefully build a package for Flutter apps.

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

Bug Found - Analytics Endpoint (interactions)
ereborEerebor / ❓┃ask-a-question
6mo ago
Issue getting the response API from Make
sacred-emeraldSsacred-emerald / ❓┃ask-a-question
2y ago
Issue with returned response from API
incredible-moccasinIincredible-moccasin / ❓┃ask-a-question
2y ago
Getting all of an API response
spontaneous-moccasinSspontaneous-moccasin / ❓┃ask-a-question
2y ago