Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.
/ dialogflow-bot Public archive

Support conversational Bot for Telegram and VK Groups

Notifications You must be signed in to change notification settings

valumar/dialogflow-bot

Repository files navigation

Support conversational Bot for Telegram and VK Groups

Support conversational Bot for Telegram and VK Groups powered by Google's machine learning

Support conversational Bot for Telegram and VK Groups

How to install

This project consists of few parts:

  • Bots:
    • Support Bot for Telegram
    • Support Bot for VK Groups
    • Logging bot for Telegram
  • Module to query DialogFlow API V1
  • Script for loading phrases to DialogFlow AI

General installation requirements

Python3 should be already installed. It is strictly recommended that you use virtual environment for project isolation. Then use pip (or pip3, if there is a conflict with Python2) to install dependencies:

pip install -r requirements.txt

or via pipenv:

pipenv install

It's also possible to deploy this Bot on Heroku: just create new app on Heroku and connect it with your GitHub repo after forking.

Support Bot for Telegram installation requirements

You need to register Telegram Bot via @BotFather and receive TELEGRAM_TOKEN and TELEGRAM_CHAT_ID (use @userinfobot for that) After that copy the file .env-example to .env and paste your info to fields:

TELEGRAM_TOKEN=

Support Bot for VK Groups installation requirements

For proper use you have to get VK account. You need to create a VK Group and create the API key for group in group settings (https://vk.com/your_group?act=tokens) Paste your info to.env:

VK_GROUP_TOKEN=your_vk_group_token

Logging Bot for Telegram installation requirements

Please see Support Bot for Telegram installation requirements. Paste your info to.env:

TELEGRAM_LOG_TOKEN=
TELEGRAM_LOG_CHAT_ID=

Installation requirements for Google's machine learning

You have to register DialogFlow account After that find "Developer access token" in project settings an paste it to .env:

DIALOGFLOW_DEV_TOKEN=

Please note this app works only with DialogFlow V1 API (Will be shut down on October 23rd, 2019)

Project Goals

The code is written for educational purposes on online-course for web-developers dvmn.org.

About

Support conversational Bot for Telegram and VK Groups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages