mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 21:35:19 +00:00
This commit introduces a modular, JSON-driven conversational flow engine. Key changes: - Adds `talia_bot/modules/flow_engine.py` to manage loading and processing conversational flows from external files. - Separates all conversational logic into individual JSON files within `talia_bot/data/flows/`, organized by user role (admin, crew, client). - Updates `talia_bot/main.py` to use the new flow engine, replacing the previous hardcoded logic with a dynamic dispatcher. - Corrects the `.gitignore` file to properly track the new JSON flow files while ensuring sensitive credentials like `google_key.json` remain ignored. - Updates the `README.md` to reflect the new architecture, providing clear documentation for the modular flow system. This new architecture makes the bot more maintainable and scalable by decoupling the conversation logic from the core application code.
2.7 KiB
2.7 KiB