From 509d6dba8896549fbdc9fd56450b60c083287fbf Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 21 Dec 2025 04:57:06 +0000 Subject: [PATCH] feat: Implement JSON-based flow engine and add all flow files This commit introduces a new JSON-driven conversational flow engine. Key changes: - Added `talia_bot/modules/flow_engine.py` to handle loading and processing of conversational flows from JSON files. - Created the `talia_bot/data/flows/` directory to store the JSON definitions for each user role's flows (admin, crew, client). - Integrated the FlowEngine into `main.py` to handle button presses and command triggers. - Corrected a critical bug in `handle_response` where user input from buttons was not being saved correctly. - Made role assignment more robust by adding an explicit `role` key to each flow JSON file.