Skip to content

emilelampe/dialogflow-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dialogflow CX Weather Forecast chatbot

This is the webhook for a chatbot that can give you the weather forecast of today or one of the coming 6 days. It provides you with the minimum and maximum forecasted temperature. The chatbot is created with Dialogflow CX. The app makes API calls through Flask. ngrok is used for deployment. Both can be ran with tmux on an EC2 instance.

APIs

For the weather forecasting, it makes use of the Open-Meteo forecast API. This one is chosen because it is free and provides a forecast of 7 days (including the current day). The API requires a longitude and latitude, so it also makes use of OpenWeatherMap's API for converting city names into coordinates.

Dialogflow

The flow asks for the location and date for which the weather should be forecasted. If one of the two is not given, it will ask for that one again. Afterwards, the user has the option to ask for another weather forecast.

The flow in Dialogflow

An example chat

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages