Coder Social home page Coder Social logo

dhiren-shah / chatbot-whatsapp-digalogflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neaxdev/chatbot-bender-whatsapp-df

0.0 0.0 0.0 31 KB

Chatbot "Bender" developed with Node JS. We make use of Dialogflow artificial intelligence and for interaction we use Whatsapp Cloud Api for users to use whatsapp to talk to him.

JavaScript 100.00%

chatbot-whatsapp-digalogflow's Introduction

Chatbot "Bender" with Whatsapp Cloud Api and Dialogflow Api

This is a Node JS version 18 and Express project where the official WhatsApp api is used to create a chatbot. For the artificial intelligence part use the Dialogflow api.

Steps to use it:

1.- Clone the project or download it from my repository.

2.- Once downloaded through your terminal type the npm i command to create the node_modules folder.

3.- Enter the Meta Developers platform to make use of the whatsapp api. All you need is the token and test phone identifier provided by the Meta team.

4.- In the whatsappServices.js file, put a = in the tokenWhatsapp variable and paste the token you obtained from the Meta Developers platform.

5.- Create your chatbot on the Dialogflow platform and download your credentials in json format from the google platform, and in the chatbotConfig file, replace the fields with the ones your .json file brings you.

6.- You will need your rest api of your Node JS application to be public, use ngrok so that you can then enter it in the webhook configuration on the Meta Developers platform along with a token of yours, this can be whatever you want and is placed in the variable accessToken in the whatsappController.js file and this same token is placed in the webhook configuration when entering the public url so that when you click on the button you can match with your project.

7.- Ready. You can now chat with your chatbot. NOTE: you must have created your intents in the Dialogflow platform to then do your tests.

chatbot-whatsapp-digalogflow's People

Contributors

neaxdev avatar

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.