Loading
ak393
This is a live streamed presentation. You will automatically follow the presenter and see the slide they're currently on.
Hows the weather in Washington ?
Washington
Open Weather API
45 degrees with Clear Sky
Webhooks
Intent
Fulfillment
POST : Send Location
POST : Location
Response: Weather
Dialogflow and Webhooks
Post request from Dialogflow
{
responseId: 'ab688ef8-ea80-47f0-8aea-de22a0c95728', queryResult: { queryText: 'How is the weather in Washington', parameters: { 'geo-city': 'Washington' }, allRequiredParamsPresent: true, fulfillmentText: 'Sorry I don\'t know the weather in Washington', fulfillmentMessages: [ [Object] ], intent: { name: 'projects/tripplanner-98730/agent/intents/8806d315-ea53-493c-90f7-abef534c2a0b', displayName: 'CheckWeather' }, intentDetectionConfidence: 1, diagnosticInfo: {}, languageCode: 'en' }, originalDetectIntentRequest: { payload: {} }, session: 'projects/tripplanner-98730/agent/sessions/d41a171b-e1dd-4e7b-9aee-192966622abe' }
Openweather API
http://api.openweathermap.org/data/2.5/weather?q=Washington&units=imperial&appid=API_KEY
{"fulfillmentText":" ","fulfillmentMessages":[{"text":{"text":["Right now its 47.07 degress with clear sky"]}}],"source":""}
Send response to Dialogflow