Problem using intents after changing workflows
# 🤝help
Hi Botpress community! 👋🏻 My name is Chester, and I'm thrilled to be here with all of you. I've been learning how to create chatbots with Botpress for a couple of weeks now and have encountered some issues while working with intents and creating secondary workflows. I would greatly appreciate any help you could provide. Btw, the code provided is an example. Feel free to modify it in any way you see fit. My main goal is to learn the correct and efficient approach. Now, let's delve into the specific challenge I'm facing: I have an intent in my main workflow that is triggered when the user expresses a desire to purchase a pet. For instance, if the user types, "I want to buy a pet," the intent is triggered by the word "buy." Following this trigger, the bot guides the user to the "purchase flow" workflow. Inside this workflow, the bot displays a catalog based on the user's preferred type of pet. This part is functioning well. However, if the user types "I want a dog," the chatbot doesn't always display the dog catalog directly, and sometimes it doesn't work at all. While debugging the code, I observed that the intents are not being triggered as expected. I attempted to use an expression with the .contain() function, and it worked, but I'm not convinced that this is the appropriate method. Could someone kindly explain the correct approach to developing this functionality? Your assistance would be greatly appreciated! Thank you in advance 😁 Chester