Dialogflow v2 client under Scala set environment variable PROJECT_ID You can find it in your agent settings set environment variable GOOGLE_APPLICATION_CREDENTIALS More about Cloud API authentication