Task-oriented dialogue (TOD) systems are built to help users accomplish specific objectives. However, even though ongoing reviews and improvements have been made to its components, an official industrial standard has yet to be established. Additionally, TOD systems face limitations in detecting out-ofscope events, deciding when to access a database, and offering scalability for further processing. To address these issues, we introduce a comprehensive TOD framework and present solutions to overcome these limitations. We also investigate dialogue state tracking, the initial phase of the system, and assess how well it can identify out-of-scope events triggered by user actions not predefined in the conversation.