Akki-jaiswal / Akki-jaiswal/fitness-chatbot

[Refactor] Decouple Chatbot Rules to JSON Configuration

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
5
Forks
16
PR merge metrics
No merged PRs in 30d

Description

**Description:** The chatbot_rules dictionary is currently hardcoded inside bot.py. This makes the code difficult to maintain and mixes data with logic. If we want to add new intents or responses, we have to modify the main application logic.

**Goal:** Move the configuration data out of the Python file and into a dedicated data file.

Tasks:

- Create a new file named intents.json.
- Move the chatbot_rules dictionary structure into the JSON file.
- Update bot.py to import the json library.
- Modify bot.py to load rules from intents.json at startup.

Please assign it to me!

~@aaditya8979

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.