/AgentBot

Primary LanguagePythonOtherNOASSERTION

Contributors Forks Stargazers Issues MIT License


Logo

Agent Telegram Bot

(Part of the contact center automation service)



Report Bug · Request Feature

Table of Contents / Содержание
  1. About The Project / О проекте
  2. Getting Started / Начало
  3. License
  4. Contact / Контакты

About The Project / О проекте

Link to project in GitHub: https://github.com/RomiconEZ/AgentBot

= ENG =

This Telegram Bot is part of the contact center automation system for the travel industry.

It provides functions for working with clients to travel agents.

The main goals of the bot:

  • Sending information about waiting clients to agents so that they can contact them;
  • editing information about agents
  • receiving feedback in excel format
  • basic functions (add/delete/update/get all in excel format) for tours (in the future, users will be able to search for tours through text queries according to their wishes)

= RU =

Данный Telegram Бот является частью системы автоматизации контакт-центра для тур-бизнеса.

Он предоставляет функции для работы с клиентами агентам тур-бизнеса.

Основные цели бота:

  • отправление информации об ожидающих клиентах агентам, чтобы они могли с ними связаться;
  • редактирование информации об агентах
  • получение отзывов в формате excel
  • базовые функции(добавление/удаление/обновление/получение всех в excel формате) для туров (в дальнейшем пользователям будет доступен поиск туров через текстовые запросы по их желаниям)

(back to top)

Built With / Технологический стек

  • Python
  • lc_ch
  • Docker

(back to top)

Getting Started / Начало

Prerequisites

Installation / Установка

  1. Clone the repository.

  2. Copy the .env.example file in the directory and change the name to .env. Customize the env file for your project.

  3. Compile locales with a separate command

    pybabel compile -d bot/locales
  4. Launch the Backend Server (https://github.com/RomiconEZ/GenerativeBackend) (At the beginning of the bot's work, a request is made to GenerativeBackend to receive telegram ids of superagents to create admin versions of the chat)

  5. In the terminal, navigate to the root directory of the cloned repository. Build the Docker containers with the following command:

    docker compose up -d --build

    Make migrations

    docker compose exec bot alembic upgrade head

Additionally

Chatbot Commands

  • /get_customer - get a customer in the queue / получить клиента в очереди

    (Client data contains telegram username, summarization of the user's dialogues with the bot for the last 5 messages, and date of addition to the queue)

  • /new_chat - create a new chat / создать новый чат (clear chat history)

  • /get_reviews - get customer reviews in excel / получить отзывы клиентов в ехсеl

  • /get_agents - get agents in excel / получить агентов в excel

  • /delete_agent - delete an agent / удалить агента

  • /add_agent - add an agent / добавить агента

  • message - generating a response to a message from LLM / генерация ответа на сообщение от LLM

License

This project is licensed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license. See the LICENSE file for details.

Creative Commons License

Contact / Контакты

Roman Neronov:

(back to top)