0 purchases
dialogflow
Dialogflow package for Flutter apps. #
This package is modified from VictorRancesCode's package for compatible with Dart 2.
Example
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
dialogflow: "^0.1.0"
copied to clipboard
You can install packages from the command line:
with Flutter:
$ flutter packages get
copied to clipboard
Import it Now in your Dart code, you can use:
import 'package:dialogflow/dialogflow.dart';
copied to clipboard
Usage #
Dialogflow register and create new Agent
Copy Api key (Token)
Code
Dialogflow dialogflow = Dialogflow(token: "Your Token");
AIResponse response = await dialogflow.sendQuery("Your Query");
copied to clipboard
Example
void Response(query) async {
Dialogflow dialogflow = Dialogflow(token: "Your token goes here");
AIResponse response = await dialogflow.sendQuery(query);
print(response.getMessageResponse());
}
copied to clipboard
Getting Started #
For help getting started with Flutter, view our online documentation.
For help on editing package code, view the documentation.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.