mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 13:25:19 +00:00
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.
This commit is contained in: