The chatbot can search and display current weather and weather forecast for given city using OpenWeather API.
Question format: weather <city_name>
for example:
weather London
Information for given city is fetched from Current weather data API.
When the city is found:
- Chatbot replies with this data for the city:
- weather condition
- temperature
- pressure
- humidity
- wind speed
- cloudiness
- Then it asks the user whether he wants to know the forecast too (with quick replies:
Yes
andNo
).- When the user answers
Yes
, it continues to the forecast (see below). - Otherwise the conversation is finished.
- When the user answers
Otherwise it informs that the city was not found.
Question format: forecast <city_name>
for example:
forecast London
Information for given city is fetched from 5 day weather forecast API.
When the city is found:
- Chatbot asks the user for selecting desired date for forecast (with quick replies for the next 5 days).
- If the answer for selected date is not valid, it shows warning and offers another selection of date.
- Chatbot asks the user for selecting desired time for forecast (with quick replies for the 3-hour steps inside selected date).
- If the answer for selected time is not valid, it shows warning and offers another selection of time.
- Chatbot replies with this data for the city (forecast for selected date and time):
- weather condition
- temperature
- pressure
- humidity
- wind speed
- cloudiness
- Then it asks the user whether he wants to know the forecast for different date/time (with quick replies:
Yes
andNo
).- When the user answers
Yes
, it offers another selection of date. - Otherwise the conversation is finished.
- When the user answers
Otherwise it informs that the city was not found.
When the user writes hello
, hi
or help
, the chatbot replies with greeting and description of possible question formats.