refactor: Implement dynamic conversation flow builder from JSON

This commit refactors the bot's architecture to dynamically load and build conversation flows from JSON files instead of hardcoding them in Python.

- Added  to read flow definitions from the  directory and dynamically build s.
- Refactored  to use the new flow builder and load all conversation handlers at startup.
- Moved hardcoded links to environment variables for better configuration.
- Updated  to support conditional branching for 'Other' options, using a  field to define state transitions.
- Updated  with the new link variables.
This commit is contained in:
Marco Gallegos
2025-12-20 09:55:14 -06:00
parent ce7769fe62
commit b68cb14837
4 changed files with 321 additions and 90 deletions

View File

@@ -13,6 +13,15 @@ WEBHOOK_PERMISOS=url
WEBHOOK_PRINTS=url
WEBHOOK_SCHEDULE=url
# ===============================
# LINKS
# ===============================
LINK_CURSOS=https://cursos.vanityexperience.mx/dashboard-2/
LINK_SITIO=https://vanityexperience.mx/
LINK_AGENDA_IOS=https://apps.apple.com/us/app/fresha-for-business/id1455346253
LINK_AGENDA_ANDROID=https://play.google.com/store/apps/details?id=com.fresha.Business
# ===============================
# DATABASE SETUP
# ===============================