1

I am making an app as my uni project, to help users create actions with 0 programming experience.

The problem I've encountered is the following:

  • How do I create a google action programatically
  • How do I make that action available for user to test?

I've looked at resource manager (thinking it could create a new project for that user, and add action to it), but didn't have a lot of success.

I'm using node.js SDK to do this. Any ideas how?

Prisoner
  • 49,922
  • 7
  • 53
  • 105
Justas Sam
  • 166
  • 1
  • 11

1 Answers1

1

The short answer is that currently you can't completely create an Actions on Google project programatically.

There are some tasks that you can do, however. For example you can:

However, there is no way to make the project an Actions on Google project using the API. Users will need to connect to the Actions Console at least once themselves to indicate what Cloud Project should be used for an Actions on Google project.

Prisoner
  • 49,922
  • 7
  • 53
  • 105
  • Thanks for the prompt answer! Just to clarify, after user grants permissions with OAuth login, I could create a Cloud Platform project, and the only step the user would have to do is to connect it to actions? (If you have a link for that connection page, it would help out a lot as well). If you are familiar with voiceflow, they do a similar thing I think, so that's what I am trying to recreate. Thanks! – Justas Sam Apr 05 '21 at 18:59
  • The exact authorization you need depends on how you do it. Using their OAuth credentials, authorized to a valid scope, is certainly one way. I've updated the answer with a link to the Action Console. – Prisoner Apr 05 '21 at 20:05