Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Django Chatbot with Celery, Channels (WebSocket)

NotificationsYou must be signed in to change notification settings

slyapustin/django-chatbot

Repository files navigation

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 titledHeroku 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. Visithttp://localhost:8000/ in your web browser.

Heroku

Alternatively, you can host the chatbot onHeroku. Please note that anaccount verification is required.

Click the button below to deploy the chatbot on Heroku:

Deploy

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.


[8]ページ先頭

©2009-2025 Movatter.jp