I'm using AWS Lambda and Python to respond to API.AI's webhook requests.
I've created several Google Actions with this stack, and they work fine.
I want to initiate account linking, in the middle of a conversation on Google Home. The documentation provided by Google assumes I'm using the Node.js SDK, which I'm not.
What needs to be returned in the API.AI webhook response to initiate account linking?
If some using Node.js could print out the response object returned by their webhook, so that I know what parameters my Lambda function needs to return, that would answer this question.
-- UPDATE This page of the Google Actions API https://developers.google.com/actions/reference/conversation makes it very clear how to request oauth2 account information through the Google Actions API.
However, I'm using API.AI. How do I format my webhook response to API.AI so that the account permissions requested gets passed along to Google Actions?
I've tried putting the "expected_inputs" field in both the root of my webhook response, and in the "data": {"google": {...}} field. Neither worked.
Our experience with API.AI so far has been generally positive. This is the only functionality we've need so far that we couldn't get through our current stack."`