Giter Site home page Giter Site logo

js-whatsapp-bot's Introduction

js-whatsapp-bot

This is a Whatsapp Chatbot that responds with the top 5 responses on google for any keyword.

Tweet

Usage

  1. Download and install Node.

  2. Clone or fork this repository (project).

    $ git clone https://github.com/Ileriayo/js-whatsapp-bot.git
    
    $ cd js-whatsapp-bot
    
  3. Install the project dependencies found in package.json

    npm install
    
  4. Test the chatbot.

    a. Get a Google API key from here. You will need to create a new project from there (Note: you must have a google account to do this).

    See screenshot below:

    b. Create a custom search engine from here. Under sites to reach, enter www.google.com. Give the search engine a name of your choice. Take note of the Search

    See the screenshot below:

    c. create a .env file. Paste the keys gotten from (a) and (b) above. See the .env.example file as an example of it's content.

    d. Run the app npm run start:dev (Take note of the Ngrok url displayed on the terminal)

    e. Create an account on Twilio and navigate to the Whatsapp Sandbox. Follow the instructions from Twilio to get a test whatsapp account. At the end of the setup, paste the url from (d) above into the input field with the label WHEN A MESSAGE COMES IN. At the end of the URL, add '/bot' and hit save.

    See the screenshot below:

    Bonus: You can create a customized link for your Whatsapp chatbot. Use this template: http://wa.me/<phone-number-from-twilio>?text=<code-to-join-sandbox>.

    Send the link to your friends to try out the chatbot.

Technologies Used

  • NodeJS
  • Google Custom Search API
  • Twilio
  • ngrok

Author

Ileriayo Adebiyi

Like It?

  • Kindly star this repository๐Ÿ™๐Ÿฅบ. It will go a long way. Thanks!๐Ÿค
  • Click to tweet

Contact

Send me an email to build a bespoke chatbot for unique business needs. Visit my website

License GitHub

See license

js-whatsapp-bot's People

Contributors

ileriayo avatar

Watchers

 avatar  avatar  avatar

Forkers

srthsps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.