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

select 2 options from button . button (pizza and Burger) then save then to order summary at the end

Am making Food order bot , but i cant pass the stage of selecting 2 foods at once . (Using buttons and storing it in a variable at the same time and using it in the order summary to show wat i have ordered.)
then the same for the soups.
selectedFoods = []
selectedSoups = []

Start:
Say: "Welcome to our food ordering service. What would you like to order?"
Options: "Food", "Soups", "Review Order"

Food:
Say: "Please select your food items."
Options: "Pizza", "Burger", "Salad", "Done"
If "Pizza" is selected:
Append "Pizza" to selectedFoods
If "Burger" is selected:
Append "Burger" to selectedFoods
If "Salad" is selected:
Append "Salad" to selectedFoods
If "Done" is selected:
Go to Start

Soups:
Say: "Please select your soup items."
Options: "Tomato Soup", "Chicken Soup", "Vegetable Soup", "Done"
If "Tomato Soup" is selected:
Append "Tomato Soup" to selectedSoups
If "Chicken Soup" is selected:
Append "Chicken Soup" to selectedSoups
If "Vegetable Soup" is selected:
Append "Vegetable Soup" to selectedSoups
If "Done" is selected:
Go to Start

Review Order:
Say: "Here is your order summary."
Say: "Selected foods: {selectedFoods}"
Say: "Selected soups: {selectedSoups}"
Go to Start

same thing like this how can i implement it.
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

Need user to select from a list of 50 options.
breezyBbreezy / ❓┃ask-a-question
2y ago
how to save photos from user to variable?
spotty-amberSspotty-amber / ❓┃ask-a-question
3y ago
Trigger Website Button Click from Voiceflow Chatbot Button
AanchalAAanchal / ❓┃ask-a-question
5mo ago
button and ia answers
hurt-tomatoHhurt-tomato / ❓┃ask-a-question
2y ago