GithubHelp home page GithubHelp logo

weather-bot's Introduction

Weather Chatbot

Demo of a Weather bot, built with React, Pusher and Dialogflow. Tutorial: https://pusher.com/tutorials/weather-chatbot-react-dialogflow

Getting Started

  1. Clone this repository and cd into it.
  2. Execute npm install to download dependencies.
  3. See tutorial for notes on how to get the required keys from Pusher, Dialogflow and openweathermap
  4. Open react-bot/src/App.js and variables.env and update them with your Pusher, Dialogflow and Openweathermap credentials
  5. Run node server.js to start the express server
  6. cd into the react-bot folder, run npm install followed by yarn start to start the development server. View http://localhost:3000 in your browser.

Pre-requisites

Built With

Licence

MIT

weather-bot's People

Contributors

ayoisaiah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

weather-bot's Issues

Chatbot window keeps on increasing as the chats increase

When user chats more than 10 or more lines the chat window increases to accomodate more messages hence making the page scrollable but the chat is not scrollable. Also the message response are coming even when user is not sending any message.
screenshot 2018-12-25 at 7 39 06 pm
screenshot 2018-12-25 at 7 39 06 pm

Auth error:Error: error:0906D06C:PEM routines:PEM_read_bio:no start line

I followed all the steps as it is in this tutorial. When I sending the message to the node back end by hitting enter I am getting the following error on the console of the back end.

Auth error:Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
ERROR: { Error: 14 UNAVAILABLE: Getting metadata from plugin failed with error: error:0906D06C:PEM routines:PEM_read_bio:no start line
at Object.exports.createStatusError (E:\project\back-end\node_modules\grpc\src\common.js:87:15)
at Object.onReceiveStatus (E:\project\back-end\node_modules\grpc\src\client_interceptors.js:1188:28)
at InterceptingListener._callNext (E:\project\back-end\node_modules\grpc\src\client_interceptors.js:564:42)
at InterceptingListener.onReceiveStatus (E:\project\back-end\node_modules\grpc\src\client_interceptors.js:614:8)
at callback (E:\project\back-end\node_modules\grpc\src\client_interceptors.js:841:24)
code: 14,
metadata: Metadata { _internal_repr: {} },
details: 'Getting metadata from plugin failed with error: error:0906D06C:PEM routines:PEM_read_bio:no start line' }

weather text is not working

I have followed all your steps as mentioned in the article and normal small talks (hi, hello, etc.) are working. But when i ask for weather it just give me small blank chat bubble. i will attach screenshot of the same with this
screen shot 2018-10-13 at 6 40 34 pm
Please help me to resolve this issue.

ERROR: Error: The incoming JSON object does not contain a client_email field

Followed all the steps but my bot is not replying to messages.

ERROR: Error: The incoming JSON object does not contain a client_email field
at JWT.fromJSON (C:\Users\athen\Datascience\React\using pusher\pusher\node_modules\google-auth-library\build\src\auth\jwtclient.js:193:19)
at GoogleAuth._cacheClientFromJSON (C:\Users\athen\Datascience\React\using pusher\pusher\node_modules\google-auth-library\build\src\auth\googleauth.js:313:16)
at GoogleAuth.getClient (C:\Users\athen\Datascience\React\using pusher\pusher\node_modules\google-auth-library\build\src\auth\googleauth.js:494:22)
at GrpcClient._getCredentials (C:\Users\athen\Datascience\React\using pusher\pusher\node_modules\google-gax\build\src\grpc.js:92:40)
at GrpcClient.createStub (C:\Users\athen\Datascience\React\using pusher\pusher\node_modules\google-gax\build\src\grpc.js:213:34)
at new SessionsClient (C:\Users\athen\Datascience\React\using pusher\pusher\node_modules\dialogflow\src\v2\sessions_client.js:159:34)
at Object. (C:\Users\athen\Datascience\React\using pusher\pusher\process-message.js:24:27)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1103:10)
at Module.load (internal/modules/cjs/loader.js:914:32)

the bot is not reply at all ???

I have followed all of you step in pusher.com but it's did not connect to dialogflow website in the application cookie.
If i using the integration web, things become normal.
Did I need to setting up webhook url in dialogflow.
Can you helping me ???
Thank you for sharing .

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.