All Projects → Viber → Build A Bot With Zero Coding

Viber / Build A Bot With Zero Coding

Licence: other
An example of using Google Sheets to create a Viber survey chat bot without a backend server

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Build A Bot With Zero Coding

Webhook2telegram
🤖 A simple bot to translate JSON HTTP requests into Telegram push messages
Stars: ✭ 357 (-22.39%)
Mutual labels:  chatbot
Limbo
A simple, clean, easy to modify Slack chatbot
Stars: ✭ 386 (-16.09%)
Mutual labels:  chatbot
Tf seq2seq chatbot
[unmaintained]
Stars: ✭ 420 (-8.7%)
Mutual labels:  chatbot
Synonyms
🌿 中文近义词:聊天机器人,智能问答工具包
Stars: ✭ 4,027 (+775.43%)
Mutual labels:  chatbot
Alan Sdk Web
Alan AI Web SDK adds a voice assistant or chatbot to your app. Supports React, Angular, Vue, Ember, JavaScript, Electron.
Stars: ✭ 368 (-20%)
Mutual labels:  chatbot
Dialogue
Stars: ✭ 398 (-13.48%)
Mutual labels:  chatbot
Rl Chatbot
🤖 Deep Reinforcement Learning Chatbot
Stars: ✭ 357 (-22.39%)
Mutual labels:  chatbot
Nlp.js
An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more
Stars: ✭ 4,670 (+915.22%)
Mutual labels:  chatbot
Meld
MELD: A Multimodal Multi-Party Dataset for Emotion Recognition in Conversation
Stars: ✭ 373 (-18.91%)
Mutual labels:  chatbot
Nlpia
Examples and libraries for "Natural Language Processing in Action" book
Stars: ✭ 416 (-9.57%)
Mutual labels:  chatbot
Bottender
⚡️ A framework for building conversational user interfaces.
Stars: ✭ 3,803 (+726.74%)
Mutual labels:  chatbot
Chat Bubble
Simple chatbot UI for the Web with JSON scripting 👋🤖🤙
Stars: ✭ 370 (-19.57%)
Mutual labels:  chatbot
Poshbot
Powershell-based bot framework
Stars: ✭ 410 (-10.87%)
Mutual labels:  chatbot
Flask Assistant
Framework for Building Virtual Assistants with Dialogflow and python
Stars: ✭ 358 (-22.17%)
Mutual labels:  chatbot
Rultor
DevOps Team Assistant
Stars: ✭ 428 (-6.96%)
Mutual labels:  chatbot
Wechatyunchart
微信多开多账号机器人 云客服系统 微商营销 系统web协议一键登录 非公众号微信机器人微信群管家 微信自动回复 微信定时发送消息 微信多账号登录 微信网页版本协议多开 一键登录 红包数量提醒 微信用户识别男女签名备注地理位置等,群发 自动发消息 定时发消息 群消息监控 机器人回复 ,定时回复,超时回复 聊天记录保存,聊天记录查看
Stars: ✭ 357 (-22.39%)
Mutual labels:  chatbot
Java Slack Sdk
Slack Developer Kit (including Bolt for Java) for any JVM language
Stars: ✭ 393 (-14.57%)
Mutual labels:  chatbot
Onebot
OneBot 标准:一个聊天机器人应用接口标准
Stars: ✭ 455 (-1.09%)
Mutual labels:  chatbot
Messenger
Open source, native iOS Messenger, with realtime chat conversations (full offline support).
Stars: ✭ 4,264 (+826.96%)
Mutual labels:  chatbot
Botlibre
An open platform for artificial intelligence, chat bots, virtual agents, social media automation, and live chat automation.
Stars: ✭ 412 (-10.43%)
Mutual labels:  chatbot

Build a Bot with Zero Coding

Most bot tutorials are for people who can code, so if you don’t have developers or staff with extra time on their hands your custom needs may not be met. Building a bot requires technical resources, such as servers to run the logic, storage to store data points and developers, well, to code. Until now. In this tutorial, we’ll show how you can build a survey bot right from a Google Sheet.

Why?

Instead of using a server to run your bot logic (which is actually easy, but it requires maintenance), use Google as your hosting environment on your behalf and use Google Sheets to keep track of the survey answers!

Animation flow

Code running on a spreadsheet?

Google Apps Script is a JavaScript-based scripting language that lets you add functionality to your Google Apps. It is a cloud‑based language that integrates with all other Google services, including Gmail, Google Drive, Calendar, Google Forms, Sheets and more. Apps Script is incredibly versatile. It allows you to:

  • Add custom menus, dialogs, and sidebars to Google Docs, Sheets and Forms
  • Write custom functions for Google Sheets. Like fetch extra data from external services or even plot some sophisticated charts
  • Publish web apps — either standalone or embedded in Google Sites
  • Interact with other Google services, including AdSense, Analytics, Calendar, Drive, Gmail and Maps

Prerequisites

How?

1. Make a copy of the spreadsheet

https://docs.google.com/spreadsheets/d/187abmrkYlgoDZrYPChgQZiG2btfi98YPWrYYMF42UpQ/edit?usp=sharing

In Google Sheets, Click File > Make a copy...

make-copy

This should give you something like this:

copy-of-sheet

Note: Feel free to change the name of the Copy to anything you want, it will not affect the outcome.

2. Under the parameters sheet, edit the following fields:

  • Access Token - Use the Access Token which you got during the Account creation.
  • Bot Name - Be creative!
  • Bot Avatar URL - URL of the survey avatar. Avatar size should be no more than 100 kb. Recommended 720x720
  • Welcome to survey message - This is the welcome message which the user will receive from the survey bot
  • Welcome start button - Call on the user to begin interacting with the bot
  • End survey message - This is the message the bot will send at the end of the survey. It is generally a “Thank you” message
  • Do not understand message - This message will be sent if the user enters invalid input (a picture, sticker, etc.)
  • Should keyboard use random colors - Should the bot use random colors for different survey answer options or not. Acceptable values are true or false
  • Default keyboard option color - In case you choose not to use random color, you can set the default color here. Please use Color Hex format only. For example #999999

parameters-sheet

This is the difference between a keyboard with specific colors versus one generated with random colors:

parameters-sheet

3. Under the questions sheet, edit your questions:

Question types

Our survey bot supports three (3) different types of questions: range, keyboard and text:

  • range - Asks the user to enter a valid value from a custom range. It makes sense to provide a range when the user needs to score something.

    range-type-questions-sheet

  • keyboard - Show case different selection options via the Viber's keyboard.

    keyboard-type-questions-sheet

  • text - Free text input.

    text-type-questions-sheet

Editing questions

Each row in the spreadsheet equals to a survey question and ordered by sequence. Hence the first row (after the header) will contain the first question, while the 7th row will contain the seventh question.

Adding a range question

  • Under the type column write range

  • Under the question column write your question. Best practice is to mention the actual valid range.

  • Under the extras column write the acceptable values, separated by semicolons. For example 0;1;2;3.

    range-type-questions-sheet

Adding a keyboard question

  • Under the type column write keyboard

  • Under the question column write your question.

  • Under the extras column write the options, separated by semicolons. For example Yes;No.

    keyboard-type-questions-sheet

Adding a text question

  • Under the type column write text

  • Under the question column write your question.

    text-type-questions-sheet

4. Open the Script Editor

Open the Script editor... by clicking "Tools" > "Script editor..."

script-editor

5. Publish the script as a Web App

publish-script

Select the latest project version to deploy.

Note: You must select the Anyone, even anonymous option for the "Who has access to the app" dropdown or form responses will not be added to the spreadsheet!

deploy-new-version

6. Authorize the script to access your Google Sheet data on Google

auth-required

Copy the web app URL to your clipboard / note pad. Then Click "OK".

deploy-as-web-app

7. Set the WebHook on Viber

Viber chat API console is a helper site set up for this integration, specifically to help you set up a WebHook. This way Viber will know to communicate with your Sheet.

Select the Set a WebHook operation, paste your web app URL from the previous step and click the Apply button to make the change.

set-web-hook-console

Done. That's it. You just created your very own survey chat bot! Your survey answers will populate on the answers sheet.

deploy-as-web-app

Want more?

Feel free to customize the code, add more question types, improve the flow or even accept pictures as valid input!

How to report bugs

If you find any issues with this sample, please open an issue on GitHub.

Background reading

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].