From 5d90c749cdc2534eb9bcb892bb59e7701462cc63 Mon Sep 17 00:00:00 2001 From: HackMD Date: Tue, 30 Jun 2020 19:02:40 +0000 Subject: [PATCH] Adding image --- docs/Backendapp.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/Backendapp.md b/docs/Backendapp.md index b872071..ceb4b67 100644 --- a/docs/Backendapp.md +++ b/docs/Backendapp.md @@ -59,6 +59,7 @@ Incoming Request When DialogFlow detects an intent it will send a complex JSON object to your webhook. And there’s only one webhook for all the intents. So we’re going to filter and route on what is called the action. + ```python # Flask micro framework from flask import Flask, request @@ -153,6 +154,10 @@ if __name__ == "__main__": You can either set this to the value you want or simply let DialogFlow generate the action’s name for you. +![](https://i.imgur.com/6tEm7OK.jpg) + +![](https://i.imgur.com/kWyuWFp.jpg) + We’re now able to receive the request DialogFlow sends to our webhook, thus we can route on the action field. This will allow us to receive different parameters and contexts depending on which intent matched.