How do I integrate an Alexa or Google Assistant app?

This topic was automatically generated from Slack. You can find the original thread here.

Mandar Badve : Hi Team, Is there any way to integrate Alexa or Google Assistant?

Dylan Sather (Pipedream) : Hi , yes. I recently built a Google Assistant app / workflow using Pipedream. I ask it whether my dog can eat a certain food, and it tells me yes / no (see workflow here).

I used the Google Actions console to author the app. Google allows you to call a webhook at different points of your app’s flow (for example, when the app is invoked, or when an intent is matched). Here, I entered my workflow’s HTTP endpoint, and returned a response to the app - in my case I returned text that my Google Home would speak (see the return_response step of the workflow at the bottom).

I also had to keep my workflow “warm” so it would respond to the user quickly. Like other serverless platforms, Pipedream workflows will shut down their execution environment after ~15 minutes of inactivity. When the next request arrives, it can take a couple of seconds to spin up a new environment. That warming technique keeps the execution environment running, which allows the workflow to respond to new requests immediately.

I am not deeply familiar with Alexa apps, but let me know if you have any specific questions on that - happy to help.

Mandar Badve : Great, Will try this technique. :+1:

Mandar Badve : I created custom Alexa skill and by using HTTP Webhook I managed to send notification to Amazon Echo device. Thanks for your help

Dylan Sather (Pipedream) : That’s great to hear, glad it worked