Creating Google Dialogflow agent via Terrform

Hi Team,

We are trying to setup Google DialogFlow using Terraform and we are experiencing a problem after creating and agent.
Problem: Dialogflow agent requires a service account which will be created automatically on creating an agent. we are able to create an agent with help of
But the service account is not created and it shows an error in dialogflow console “Failed to setup One Platform service account for an agent”

Has anyone setup successful Dialogflow agent using terraform.