chatbot icon indicating copy to clipboard operation
chatbot copied to clipboard

DetailedApiRequestError(status: 403, message: IAM permission 'dialogflow.sessions.detectIntent' on 'projects/...

Open er2guotou opened this issue 7 years ago • 2 comments

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,

er2guotou avatar Dec 12 '18 09:12 er2guotou

Same error here. I hope there is a solution.

DFelten avatar Mar 22 '19 13:03 DFelten

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.

DFelten avatar Mar 22 '19 13:03 DFelten