Botpress allows you to launch powerful chats prototypes 10 times faster. Let me show you an example. Let's build an app that displays affordable plans for holiday weekend getaways.
We can do this in six steps. The first step is to describe the information you will need. To do that.
I'm going to create four variables because userCity, holidays, countryCode, and holiday plan. Next we're going to capture information from the user, specifically his hometown. And we're going to save it to user city.
Next up, we're going to use AI to convert the city to a country code. And we're going to save it to countryCode. Next we're going to generate the code we need to fetch the list of holidays for that country.
So right here, I'm going to type. "Get the list of public holidays for 2024 given a country code". And I'm going to press enter.
And there we have it. Note that this uses the workflow. country code variable that we said previously.
And it saves it to the holidays variable. Next up, we're going to create another. Next up, we're going to create another AI task.
This time, I'm going to paste in the prompts. Main residence, holidays, workflow, holidays. And we're going to save it to holiday plan.
And now finally, we're going to display that. Workflow dot holiday plan. And now we can chat with our bot.
Hello. Let's try Montreal. And there you go.
This was prompt Janie, plus a calling an API plus running code on the fly. And asking for input right here. When you're ready to share your bot, just hit, publish.
Hope you enjoyed it.