I am trying to develop an API to upload the intent to Dialogflow V2. I have tried below snippet, which it is not working however if trying to communicate with <
Dialogflow
The associated service-account has to have the role "Dialogflow API Admin" to be able to create intents and entities.