feat: Implement JSON-based conversational flow engine

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.
This commit is contained in:
google-labs-jules[bot]
2025-12-21 07:45:55 +00:00
parent ac52998d47
commit 4750ddf43d
13 changed files with 277 additions and 7 deletions

1
.gitignore vendored
View File

@@ -158,7 +158,6 @@ cython_debug/
.vscode/
# Google Service Account Credentials
*.json
!credentials.example.json
google_key.json