![]() The bot response is appened with weaher data fetched from Send the message to API AI which invokes an intent Register to open weather map and fetch the API key for getting weather data. There is nice python wrapper for using these APIs. Open Weather Map provides API for accessing current weather data of any location on earth. We can use API AI python SDK for natural language processing. We add following response for the user expression: "Current weather report of $geo-city :" Where Singapore is tagged as an entity of type This parameter can take any value in the conversation and used to determine the response in our application. ![]() We add an intent with user expression "What's the weather in Singapore?" Navigate to Settings of the agent and get the Client Access Token.Īn intent is mapping between user expression and the desired response. Register and create an account at API AI. Reply: Current weather report of New Delhi : max temp: 42.0 min temp: 40.0 current temp: 40.95 wind speed :2.6 humidity 20%ĪPI AI is a conversational experiences platform. Question: What is the current weather of New Delhi? We are going to demonstrate a very simple feature :Įnquired about the current weather of a location, chatbot should return the weather information. Python wrapper of OpenWeatherMap web API for weather reports.Natural Language Processing platform: API AI.The different technologies that we are going to use are as follows : The codebase can be found here on Github.Ī lightweight web application needs to be created to compliment our bot. In this post we take you through creating your first bot using Python/Flask. The bot-revolution has taken over, and everyone is building a bot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |