Analyze any text with Google's Dialogflow API.
This function calls Dialogflow's detectIntent API. The response is formatted as documented here.
Before using this function, you will need a Dialogflow account and to setup Dialogflow credentials as documented here: https://cloud.google.com/dialogflow/docs/quick/setup and following the "Service account" method. The required environment variables will be provided in the JSON file downloaded at the end of this process.
Usage
App("dialogflow", text="text", language="en-US")