Search code examples
actions-on-googlegoogle-smart-home

Action on Google Smart Home using AWS lambda in Python


I wrote a smart home skill for Alexa using AWS lambda and Python. That's working all good.

Now I have moved on to Action on Google and I want to build the Skill on AWS lambda I used AWS API Gateway created a post call and gave the URL in the Fulfillment Tab of Action on Google. Now I wanted to check if the connection has been established between AWS lambda and Action on Google. I am pretty confused about how to check this?

Second Thing I am wondering does Action on Google Support Python because there are no examples in python nor anyone in the community has used python.

On there Github Repo they have given the code in NodeJS I wanted to understand the working by performing the Simulation First But it's not helping much. Like I wanted to understand the flow from the basics like When I developed for Alexa I started with Authorization and then moved on to the Controller.


Solution

  • Are you locked in on using Python in your stack? If you're flexible and can switch to NodeJS, you can use Actions on Google's NodeJS client library to connect with AWS Lambda.

    Docs here: https://developers.google.com/actions/reference/nodejsv2/overview#example_aws_lambda_api_gateway