Crypto Bot is a simple Django-based chatbot that provides advice and basic information about cryptocurrency. The bot retrieves its responses from a predefined dictionary in the views.py file. This project is ideal for learning how to integrate logic-based responses in a Django web app.
- 🚀 Features
- 📁 Project Structure
- 🛠️ Installation and Setup
- 💡 How It Works
- 📷 Screenshots
- 📈 Future Improvements
- 👥 Contributors
- 📄 License
- 🙋♂️ Author
- 🔐 Simple and beginner-friendly Django chatbot.
- 📖 Static crypto-related advice pulled from a Python dictionary.
- 🧠 Easily customizable dictionary to update or expand bot knowledge.
- 🌐 Web-based UI for interactive responses.
crypto_bot/
│
├── crypto_bot/ # Project settings
│ ├── settings.py
│ └── urls.py
│
├── bot/ # Main chatbot app
│ ├── views.py # Contains the dictionary and chatbot logic
│ ├── urls.py # URL routes for the bot
│ └── templates/ # HTML templates
│ └── bot.html # Basic UI for user interaction
│
├── manage.py # Django management script
└── README.md # Project documentation
- Clone the repository
git clone https://github.com/yourusername/crypto-bot.git
cd crypto-bot- Create a virtual environment and activate it
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies
pip install django- Run migrations and start the server
python manage.py migrate
python manage.py runserver- Visit the bot
Open your browser and go to http://127.0.0.1:8000/ to interact with Crypto Bot.💡 How It Works
When a user types a message into the input field, it's sent to the Django backend.
The views.py file contains a Python dictionary that maps common crypto-related questions or keywords to predefined answers.
The bot checks for a matching keyword or phrase and returns the appropriate response.
If no match is found, a default message is shown.
-
Integrate an AI model or external crypto news API.
-
Add authentication so users can save past conversations.
-
Improve UI with CSS frameworks like Tailwind or Bootstrap.
-
Add more keywords and responses for broader coverage.
- Thank you to all the amazing people who have contributed to this project:
Name GitHub Profile Contributions
Charles Muthui @charlesricha Project creator, core logic, design
Karen Mumbi @charlesricha Bot Cypto data analyzer
- You can be listed here too! Feel free to fork the repo, make changes, and open a pull request.
- This project is open-source and available under the MIT License.
Crypto Bot by [Charles Muthui] Feel free to reach out with questions or contributions.
LET's Connect: LinkedIn -