How can I get the previous resolved query to webhook in API.AI? -
i have webhook setup api.ai. webhook integrated youtube api search given keywords , return corresponding video. i'm facing trouble below
example conversations bot:
me: base 10 equations bot: grade studying ? me: grade 3
then want search keyword “base 10 equations grade 3” using webhook youtube api , send relevant video api.ai.
i’m getting parameter grade 3 webook. want both “base 10 equations” , “grade 3” webhook proceed. can please me how proceed ?? thanks.
i had same problem. in case crypto conversions case user: btc usd bot: 1 btc = 4000 usd user: on bittrex bot: 1 btc = 4100 usd on bittrex
the way handled query making 2 separate intents: convert , exchanges convert intent sets output context
the convert intent sends detected entities webhook exchanges intent has input context
notice parameters under action, #convert.source , #convert.destination refer variables stored while triggering webhook prior calling exchanges. that's how can it.
in case believe 1 intent handles base 10 , handles grade 3 , grade 3 intent refers #contextname.variable name hope helps
Comments
Post a Comment