Chapter 4: Handling Business Logic
In this chapter, we will show you how to handle business logic. We will first introduce fallbacks that handle situations where the system cannot process users' needs. Then we will introduce the rule policy that uses predefined logic to select a fixed response. Finally, we will talk about the form where the essential information will automatically gather and execute related action. With all those functions, Rasa gives developers great flexibility in handling different business logic. By using these features, you should be able to handle complex business logic more elegantly and efficiently.
We will cover the following topics:
- The fallback mechanism in Rasa
- Making intents trigger actions
- Using forms to complete tasks
- Practice – building a weather forecast chatbot
Let's start with the fallback.