Skip to content
API.AI project to allow interacting with the Telsa API through Google Home
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.



Project to allow interacting with the Telsa API through Google Home.

This requires two components - an API.AI project (contained within one directory here), and a web server that makes appropriate queries against the Telsa API.

More project details, and a video of the project in action, can be found at

Getting started

Web Server

The web server ( is designed to be run as a supervisord service, and will listen for requests on /webhook that meet the format passed by API.AI, returning an appropriately formatted response.

An additional file named is also required in the same directory, containing two variables - TESLA_EMAIL and TESLA_PASSWORD, which must match your MyTesla account

For integration with Google Home, this web server must be accessible through HTTPS (HTTP requests are not allowed). is set up to provide a HTTP server, so I used a separate Apache instance using ProxyPass from mod_proxy:

ProxyPass /teslawebhook http://<WEB_SERVER>:7800/webhook
<Location /teslawebhook>
   ProxyPassReverse http://<WEB_SERVER>:7800/webhook

API.AI project

Insert the URL of the above web server into apiai/agent.json in the appropriate place, then ZIP the entire folder and upload through the 'Export and Import' function found in an API.AI project.

You should then be able to publish the test version for local usage through the method described on this page to create a permanent private action on Google Home.

You can’t perform that action at this time.