Make google actions development project preview persist longer

前端 未结 3 1079
梦谈多话
梦谈多话 2020-12-04 13:24

I want to make google voice actions app for my Google Home. But, based on quick research, as of Dec 11, google does not allow private projects for Google Home.

Refer

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 14:12

    I have found a way to create the Action on API.ai and then preview it indefinitely.

    From API.ai:

    1. Open browser dev console (Network tab)
    2. Go to Integrations
    3. Turn on "Actions on Google" integration
    4. Click "Authorize"
    5. Click "Preview"
    6. Inspect the XHR response from https://console.api.ai/api/agent/googleassistant/preview in the Network dev console

      {  
        "status":{  
        "code":401,
        "errorType":"unauthorized",
        "errorDetails":"You are not authorized for this operation. ",
        "webhookTimedOut":false
         }
      }
      
    7. Copy/paste the content of the response into a file called action.json

    Then, download and install the gactions CLI from here - gactions CLI and then run this command:

    gactions preview --action_package action.json --preview_mins 9999999 \
      --invocation_name [your_own_invocation_name_here] 
    

    The preview_mins value of 9999999 makes the preview effectively indefinite.

    Here is a video demonstrating it:

提交回复
热议问题