aevtikheev / dvmn-support-bot

Educational project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support bot with a simple intent classification via Dialogflow. Works with VK and Telegram. Also supports error reporting to a Telegram chat.

example

Set up:

Set environment variables:

  • TELEGRAM_BOT_TOKEN - Telegram bot token. Can be obtained from Bot Father.
  • VK_BOT_TOKEN - Vkontakte.ru bot token. Generated at the VK group administration panel.
  • GOOGLE_APPLICATION_CREDENTIALS - Path to a GOOGLE_APPLICATION_CREDENTIALS file.
  • TELEGRAM_REPORT_BOT_TOKEN - Telegram bot token for the error reporting bot.
  • TELEGRAM_REPORT_CHAT_ID - ID of a telegram chat for error reporting. How to get.
  • VK_LANGUAGE_CODE - Dialogflow Intent language code which will be used to handle VK messages.

Usage:

  • Run Telegram bot.

    python run.py telegram_bot

  • Run VK bot.

    python run.py vk_bot

  • Train the bot with provided phrases. For the format information, check the example.

    python run.py train -f intents.json

Demo

About

Educational project

License:MIT License


Languages

Language:Python 100.0%