Reputation: 23
I created a custom Google action using @assistant/conversation sdk and a smarthome action using actions-on-google sdk. My question is, how can I combine both and link then with same backend server.
Upvotes: 0
Views: 149
Reputation: 11978
While you can have a single backend server which has both smart home and conversational actions, you cannot have a single Action with both integrations. Rather, you would need to create two independent projects: one smart home and one conversational.
You will probably want to define two endpoints, one for each, but both can be hosted in the same backend. If you are using Node.js, you can have all the same underlying logic and use a routing system like Express to export /actions/conversation
and /actions/smarthome
.
Upvotes: 1