Django Chatbot
The Django Chatbot is a chatbot application that utilizes background tasks processing and communication via WebSockets.
For more detailed information, please refer to my article titled Heroku Chatbot with Celery, WebSockets, and Redis.
Deployment
Docker
To deploy the application using Docker, follow these steps:
1. Clone the repository: git clone https://github.com/slyapustin/django-chatbot
2. Build and run the project: docker-compose up
3. Visit http://localhost:8000/
in your web browser.
Heroku
Alternatively, you can host the chatbot on Heroku. Please note that an account verification is required.
Click the button below to deploy the chatbot on Heroku:
Technology Stack
The chatbot utilizes the following technologies:
- Django: The main web framework.
- Django Channels: The WebSocket framework.
- Celery: An asynchronous task queue.
- Redis: A message broker and cache backend.
- Daphne: An HTTP and WebSocket protocol server.
- Heroku: The hosting platform.
Supported commands
The chatbot supports the following commands:
sum <x> <y>
: Calculates the sum of two integers.status <url>
: Checks the status of a website.
Need some help?
Join the Slack channel #django-chatbot for assistance.