I followed all the setup instructions on the GitHub page, but I keep getting a permission error. I tried it with a service account with 'Actions Admin' and 'Owner' but I keep getting a permission error.
Below is my code :
import {ActionsOnGoogleTestManager} from '@assistant/conversation-testing';
Error: sendInteraction API call failed: Error: 7 PERMISSION_DENIED: The caller does not have permission
at ActionsApiHelper.sendInteraction (/Users/.../Documents/node-google-assistant-test/node_modules/@assistant/conversation-testing/dist/actions-api-helper.js:47:19)
at async ActionsOnGoogleTestManager.sendInteraction (/Users/.../Documents/node-google-assistant-test/node_modules/@assistant/conversation-testing/dist/action-on-google-test-manager.js:79:31)
I followed all the setup instructions on the GitHub page, but I keep getting a permission error. I tried it with a service account with 'Actions Admin' and 'Owner' but I keep getting a permission error.
Below is my code :
import {ActionsOnGoogleTestManager} from '@assistant/conversation-testing';
const PROJECT_ID = 'my-project-id';
const TRIGGER_PHRASE = 'my trigger phrase';
const testManager = new ActionsOnGoogleTestManager({ projectId: PROJECT_ID });
let response = testManager.sendQuery(TRIGGER_PHRASE);
response.then((a) => { console.log(a); }, (error) => { console.log(error); });
Below is the error I am getting on the console:
Error: sendInteraction API call failed: Error: 7 PERMISSION_DENIED: The caller does not have permission at ActionsApiHelper.sendInteraction (/Users/.../Documents/node-google-assistant-test/node_modules/@assistant/conversation-testing/dist/actions-api-helper.js:47:19) at async ActionsOnGoogleTestManager.sendInteraction (/Users/.../Documents/node-google-assistant-test/node_modules/@assistant/conversation-testing/dist/action-on-google-test-manager.js:79:31)
Any help would be appreciated.