In Dialogflow CX you will receive IAM permission denied error if you don’t have sufficient permission to perform an action on the GCP Project where your Agent is created to or will be created to.
Based on the error that you're getting, it looks like you don't have permission to create an agent in your selected GCP project.
- Go to your Google Cloud Console (https://console.cloud.google.com/).
- In the project dropdown, select your project
- In the left side menu, click on IAM & Admin > IAM. This page will show all the members in your project that have IAM roles on your project.
- In the Members table, check if your account has at least one of the following roles:
- Dialogflow > Dialogflow API Admin
- Project > Owner
- Project > Editor
- Dialogflow > Dialogflow Console Agent Editor
- custom role with ‘dialogflow.agents.create’ permission
Related links: