whatsapp-chatbot | Quickly set up a webhook for your Dialogflow agent | Bot library

 by   prashant7july JavaScript Version: Current License: MIT

kandi X-RAY | whatsapp-chatbot Summary

kandi X-RAY | whatsapp-chatbot Summary

whatsapp-chatbot is a JavaScript library typically used in Automation, Bot applications. whatsapp-chatbot has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Quickly set up a webhook for your Dialogflow agent and WhatsApp.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              whatsapp-chatbot has a low active ecosystem.
              It has 9 star(s) with 4 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 2 have been closed. On average issues are closed in 51 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of whatsapp-chatbot is current.

            kandi-Quality Quality

              whatsapp-chatbot has no bugs reported.

            kandi-Security Security

              whatsapp-chatbot has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              whatsapp-chatbot is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              whatsapp-chatbot releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of whatsapp-chatbot
            Get all kandi verified functions for this library.

            whatsapp-chatbot Key Features

            No Key Features are available at this moment for whatsapp-chatbot.

            whatsapp-chatbot Examples and Code Snippets

            No Code Snippets are available at this moment for whatsapp-chatbot.

            Community Discussions

            QUESTION

            PERMISSION_DENIED: IAM permission 'dialogflow.sessions.detectIntent' Node js
            Asked 2021-Jun-14 at 06:04

            I have created a webhook for WhatsApp Chatbot using Nodejs following this online article: https://dev.to/newtonmunene_yg/creating-a-whatsapp-chatbot-using-node-js-dialogflow-and-twilio-31km

            The webhook is linked to Twilio Sandbox for WhatsApp.

            I have also provided the DialogFlow Admin API permission to service account on Google Cloud Platform.

            When i send a new message from WhatsApp, its received on Twilio and the webhook is triggered but i am getting this error "Error: 7 PERMISSION_DENIED: IAM permission 'dialogflow.sessions.detectIntent' on 'projects/xxxx-xxx-xxxx/agent' denied." on the console on my local machine (i am using Ngrok to tunnel the localhost build to the web and using that URL as the webhook URL in Twilio).

            We have a client demo for this feature so any quick help is appreciated. I am placing my dialog flow code and controller code below

            dialogflow.ts

            ...

            ANSWER

            Answered 2021-Jun-07 at 16:46

            I think the problem is with the service account. Make sure you use the same email which is registered with Dialogflow and GCP and then create a service account.

            You can safely do this by going to the settings menu on Dialogflow and then click on the project id, it will take you to the correct place.

            Also, there may be a possibility that you forget to enable the Dialogflow API from the API section on GCP.

            Source https://stackoverflow.com/questions/67872010

            QUESTION

            Twilio error-90100 : Invalid Autopilot Actions JSON
            Asked 2021-May-07 at 08:54

            I referred to the Twilio blog published by Mwangi Kabiru:

            https://www.twilio.com/blog/serverless-whatsapp-chatbot-python-google-cloud-functions-twilio

            I made the necessary changes to the code to extract Google Sheets data from Google Drive and send it to Twilio chatbot(autopilot) via webhook. According to Google Cloud Function logs, the webhook successfully transmitted the information to the Twilio chatbot(autopilot) based on its request. But, Twilio is throwing 'error - 90100':

            Invalid Autopilot Actions JSON: Invalid Autopilot Action Possible Causes Actions JSON does not comply with the Actions Schema (https://carnelian-neanderthal-8008.twil.io/assets/ActionsSchema.json)

            Possible Solutions Test your JSON response against the Actions Schema (https://carnelian-neanderthal-8008.twil.io/assets/ActionsSchema.json)

            How to download the JSON file of the webhook created on Google Cloud Function and test it against the Twilio Actions Schema? Can someone please help me to resolve this issue?

            Google Cloud Function code:

            ...

            ANSWER

            Answered 2021-May-07 at 08:54

            When you're calling a URL from Twilio Autopilot via redirect you need to return a JSON for Twilio Autopilot not TwiML.

            You need to change the part where you're constructing your return message:

            Source https://stackoverflow.com/questions/67425837

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install whatsapp-chatbot

            Clone the repo git clone https://github.com/prashant7july/whatsapp-chatbot.git
            Navigate into directory: cd whatsapp-chatbot
            Launch the project npm install
            Launch the project npm start
            Expose the webhook to test your agent with ngrok ngrok http 3031 and test in http://localhost:4040/inspect/http
            Link your agent to your webhook in the Dialogflow Console https://<ngrok_url>/dialogflow-webhook
            Link your WhatApp webhook in the WhatsApp Admin Panel https://<ngrok_url>/whatsapp-webhook

            Support

            API documentation https://openweathermap.org/apiDetails of your plan https://openweathermap.org/pricePlease, note that 16-days daily forecast and History API are not available for Free subscribers
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/prashant7july/whatsapp-chatbot.git

          • CLI

            gh repo clone prashant7july/whatsapp-chatbot

          • sshUrl

            git@github.com:prashant7july/whatsapp-chatbot.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link