YouTube tutorial -->https://www.youtube.com/watch?v=Uvg0ruRkKgY
In This project you will beable to control ESP8266 with Google Home without opening a firewall port or setuping a revers proxy.
Download this project and unzip.
Copy following folders to "C:\Program Files (x86)\Arduino\libraries", or install the libraries via the Arduino Library manager.
arduinoWebSockets (WebSockets by Markus Sattler)
ArduinoJson (ArduinoJson by Benolt Blanchon)
Update and flash your ESP8266 with "ESP8266/WebSocketClient/ESP8266_WebSocketClient/ESP8266_WebSocketClient.ino"
Create an API.ai agent and import "matrix-ai.zip" and setup Google integration and webhook
Test and enjoy.
Make sure Google Home device is logged in to same account as your API.ai account.
If unable to trigger relay power cycle the ESP8266.
If you are still unable to trigger the relay then restart Heroku app by selecting option "Restat all dynos" and then power cycle the ESP8266.
If you see crash errors in Arduino IDE serial monitor the use a better power supply.
Use a saprate power source for relay or use 5volts power source and use 3.3 voltage regulator to power ESP8266 from same power supply.
Make sure you enter the correct URL for webhook in API.ai
Make sure Google action option is enabled.
If it still does not work then go to church and pray to God -:)