diff --git a/lib/v2/dialogflow_v2.dart b/lib/v2/dialogflow_v2.dart index d5a695d..8c1e466 100644 --- a/lib/v2/dialogflow_v2.dart +++ b/lib/v2/dialogflow_v2.dart @@ -111,7 +111,7 @@ class Dialogflow { const Dialogflow({@required this.authGoogle, this.language="en"}); String _getUrl() { - return "https://dialogflow.googleapis.com/v2/projects/${authGoogle.getProjectId}/agent/sessions/${authGoogle.getSessionId}:detectIntent"; + return "https://dialogflow.googleapis.com/v2beta1/projects/${authGoogle.getProjectId}/agent/sessions/${authGoogle.getSessionId}:detectIntent"; } Future detectIntent(String query) async {