Умный бот с функцией опроса распознает естественную речь, используя GPT-модель. Делает опросы быстрыми и удобными
Бот интегрируется с Google-таблицами. По названию столбцов в Google-таблице бот делает опрос и запрашивает информацию у клиента. Ответы сохраняются в эту же таблицу.
Возможности использования:
для проведения различных опросов;
для сбора обратной связи;
при оформлении заказа для уточнения контактных данных;
для анализа целевой аудитории: уточнения географических, демографических, социальных, психологических признаков целевой аудитории.
Это не исчерпывающий список способов применения данного решения.
Description
Smart bot with polling function recognizes natural speech using the GPT model. Makes surveys fast and convenient
The bot integrates with Google Sheets. The names of the columns in the Google table are the parameters that the bot asks the user for. After the survey, the answers are stored in the same table.
Possibilities of use:
for conducting various surveys;
for feedback collection;
when placing an order to clarify contact details;
for the analysis of the target audience: clarification of geographical, demographic, social, psychological characteristics of the target audience.
This is not an exhaustive list of ways to apply this solution.
Technical description
In the column names of Google Sheets, we indicate the data that will be requested during the survey. For example: first name, last name, city of residence, citizenship, year of birth.
Google Sheets example:
A smart bot, using the GPT model, based on the data entered in the table, asks the client to enter the necessary information.
The bot downloads the names of all columns and sends them to the GPT OpenAI module (GPT openAI is the module where messages for AI are passed to)
The message contains the text: “Write a response to the customer if we need to conduct a survey and collect the following information” (list of data from Google Sheets column names)”
The bot analyzes the received response from the OpenAI module.
If the client did not answer all the questions, then the missing data is additionally requested.
Messengers
- The bot can be used in:
- Viber
- Telegram
- widget
Autostart
- You can choose the auto-launch conditions for the bot.
- Start scenario:
- When client appeals
- When operator creates new chat
- When request closed
- When global branch matched
- When tag is assigned to the client
- When tag is unassigned from the client
- When tag is attached to request
- Stop scenario:
- When tag is assigned to the client
- When tag is unassigned from the client
- When tag is attached to request
- When operator writes message
Parameters
Data Table - the table contains the names of the columns on which the survey will be conducted.
Response Timeout (minutes) - timeout during which the bot waits for a response from the client (set in minutes)
Survey Passed - the text of the message to the client about the completion of the survey (edited in the settings)
Survey Failed - the text of the message to the client that the survey was not passed (edited in the settings)
Text Sent to GPT - based on the specified text (promt), ChatGPT formulates responses to clients (transmits the essence of the message)
Leaves together with the survey - a phrase (promt) indicates what is expected from the AI. Based on this phrase, AI formulates a message to the client.
Sending user responses - indicates the data transmitted by AI to analyze the completeness of the provided response
The user did not answer all the questions - the phrase (promt) indicates what is expected from AI: write a response to the client if he did not answer all the questions, indicating what information is missing
The user does not respond - the phrase (promt) indicates what is expected from A: write a response to the customer if he does not respond
Send Reminder - the option to send reminders is selected by checking the box
Timeout before the next reminder and text - this function allows you to set the required number of reminders.
In the Key field, enter the time (in minutes) after which the reminder will be sent. The text of the reminder to be sent to the customer is entered in the Value field
Survey Failed - text of the final message to the client (edited in the settings)
OpenAI Module
- Messages are passed to AI in this module.
- API Token is the access token to the API. It can be acquired with access to an OpenAI account.
- Model is the name of one of the models available in OpenAI (other model names include text-curie-001, text-babbage-001, text-ada-001, etc.).
- Temperature is a number between 0 and 1.
- A value of 1.1 enables the model to answer randomly and provide self-formulated responses,
- A value of 0 allows the model to answer as strictly as possible.
- Max tokens is the maximum number of tokens in the model's response. It affects the request price and the number of characters in the answer.
Recording module in Google Sheets
- As part of this solution, responses received from clients are recorded in a Google Sheet.
- During the setup process, the following are specified:
- Table ID - code of the Google table in which the data will be saved
- Sheet ID - the code of the Google Sheet sheet where the data will be saved
- Data to be recorded - the information which will be written into the Google Sheet
How the user sees
The user receives a list of questions to be answered. If not all the requested information is provided, the bot asks clarifying questions.
Техническое описание:
В названии столбцов Google-таблицы указываются данные, которые будут запрашиваться в ходе проведения опроса. Например: имя, фамилия, город проживания, гражданство, год рождения.
Пример Google-таблицы:
Умный бот, используя GPT-модель, на основании введенных в таблицу данных попросит клиента ввести необходимую информацию.
Бот выгружает называния всех столбцов и отправляет их в модуль GPT OpenAI (модуль, в который передаются сообщения для AI)
Сообщение содержит текст: “Write a response to the customer if we need to conduct a survey and collect the following information”
Бот анализируется полученный ответ от модуля OpenAI.
Если клиент ответил не на все вопросы, то дополнительно запрашиваются недостающие данные.
Ответы сохраняются в Google-таблицу.
Мессенджеры
- Бот может работать через:
- Viber
- Telegram
- widget
Автозапуск
- Можно выбрать условия автозапуска бота. Возможные варианты:
- Запускать сценарий:
- При обращении клиента
- При создании нового чата оператором
- При закрытии обращения
- При совпадении глобальной ветки
- При добавлении тега клиенту
- При удалении тега клиента
- При добавлении тега к обращению
- Останавливать сценарий:
- При добавлении тега клиенту
- При удалении тега клиента
- При добавлении тега к обращению
- При отправке обращения оператором
Параметры (поле для ввода данных)
- Таблица с данными - Google-таблица содержит названия столбцов, по которым будет проводиться опрос.
- Время ожидания ответа (минут) - таймаут, в течение которого бот ждет ответа от клиента (устанавливается в минутах)
- Опрос пройден - прописывается текст сообщения клиенту о прохождении опроса
- Опрос не пройден - прописывается текст сообщения клиенту о том, что опрос не пройден
Параметры, обеспечивающие работу ChatGPT
Текст, отправляемый в GPT - на основании указанного текста (promt) ChatGPT формулирует ответы клиентам (передает суть сообщения)
Уходит вместе с опросом - фразой (promt) указывается, что ожидается от AI. На основании данной фразы AI формулирует сообщение клиенту.
Отправляем ответы пользователя - указываются данные, передаваемые AI для анализа полноты предоставленного ответа
Пользователь ответил не на все вопросы - фразой (promt) указано, что ожидается от AI: Write a response to the client if he did not answer all the questions, indicating what information is missing
Пользователь не отвечает - фразой (promt) указано, что ожидается от A: Write a response to the customer if he does not respond
Отправлять напоминание - опция отправлять напоминания выбирается установкой галочки
Таймаут перед следующим напоминанием и текст - данная функция позволяет настроить необходимое количество напоминаний.
В поле Ключ вводится время (в минутах) через которое будет отправлено напоминание. Текст напоминания, которое будет отправлено клиенту, вводится в поле Значение
Опрос не пройден - прописывается текст финального сообщения клиенту
Модуль OpenAI
- В данный модуль передаются сообщения для AI.
- API Token - это токен доступа к API. Его можно получить при наличии доступа к аккаунту OpenAI.
- Модель - название одной из моделей, доступной в OpenAI (другие названия моделей - text-curie-001, text-babbage-001, text-ada-001 и др.)
- Температура - число от 0 до 1. 1.
- Значение 1.1 - модель отвечает случайным образом, часть ответов формулирует самостоятельно.
- Значение 0 - модель отвечает максимально строго
- Максимальное количество токенов - максимальное количество токенов в ответе модели. Влияет на цену запроса и количество символов в ответе.
Модуль записи в Google-таблицу
- В рамках данного решения в Google-таблице фиксируется ответы, полученные от клиентов.
- При настройке решения указывается:
- ID таблицы - код Google-таблицы, в которую будут сохраняться данные
- ID листа - код Листа Google-таблицы, на который будут сохраняться данные
- Данные для записи - информация, которая будет записываться в Google-таблицу
Как видит пользователь
Пользователь получает список вопросов, на которые необходимо ответить. Если предоставлена не вся запрашиваемая информация, то бот задает уточняющие вопросы.
Обсудим вашу задачу
Расскажите, что хотите автоматизировать, — предложим готовое решение из каталога или соберём под вас. С 2016 года, 40+ проектов.