Project ID
link
Go to project settings
Service Accounts
tab on the left hand side.
If you already have a service account set, take note of the email used and skip to step 11.
Create Service Account
. For ease of management, put the botname in the description of this account.Dialogflow API Admin
role to this account
Manage keys
Add Key
→ Create new key
Dialogflow API Admin
Role to that account.
Secrets Vault
and then Create Secret
To use SBIntents with a Dialogflow agent additional permissions are required in order to successfully train a bot.
Login to your Dialogflow account at https://dialogflow.cloud.google.com/
Find your Dialogflow agent that you want to connect to and click on the settings gear wheel next to the agent name
You will have been navigated to the general settings page. Click on the Project ID
link
Once in google projects, confirm you are logged into the right user and looking at the correct project (user avatar top left, and project dropdown)
On the Project Dashboard page, in the Project info card, click on Go to project settings
In project settings, click on the Service Accounts
tab on the left hand side.
If you do not have already have a service account,
Create Service Account
. For ease of management, put the botname in the description of this account.owner
role to this accountIf you already have a service account set, take note of the email used.
Manage permissions
owner
skip this step. Otherwise, click select and edit and existing member.project
-> owner
Service Accounts
.For the active or newly created service account for that bot, go to the actions menu and select Manage keys
Select Add Key
→ Create new key
Select JSON as the key type and create the key.
Once you save a secret in ServisBOT, it is not accessible to anyone. Please ensure you are storing your secrets in an appropriate internal manager in order to migrate this bot to other accounts or rotate access.
If you are re-using a service account, please verify that it has the role Dialogflow API admin or you will be unable to publish. To verify, note the email address tied to this service account, then navigate to IAM, for the list of the accounts there, find the one that matches your service account email and edit the account. Add the Dialogflow API Admin
Role to that account.
You can now store your secrets in the ServisBOT platform:
Secrets Vault
and then Create Secret
Alternatively you can map the values of the fields in the Dialogflow JSON file directly.
Do not use the private-key-id in the private_key field this is a common mistake