DetailedApiRequestError(status: 403, message: IAM permission 'dialogflow.sessions.detectIntent' on 'projects/...
Hi, I have created my google account with the dialogflow service activated and put the dialogflow.json correctly, but while running I got this error message, DetailedApiRequestError(status: 403, message: IAM permission 'dialogflow.sessions.detectIntent' on 'projects...
Then I assume I should modify the code of var dialogSessionId = "projects/My First Project/agent/sessions/ActionsOnGoogleSample"; according to my google project name, but it still doesn't work. Wish you could help me, many thanks.
Best Regards,
Same error here. I hope there is a solution.
You have to change the dialogSessionId within the code. For me for example this helps:
var dialogSessionId = "projects/MY_PROJECT_ID/agent/sessions/SESSION_ID";
You can find the session id within the Dialogflow curl call.