dialogflow 0.1.1 copy "dialogflow: ^0.1.1" to clipboard
dialogflow: ^0.1.1 copied to clipboard

A package for an easy way to integrate Dialogflow into Flutter apps using Dialogflow API v1 authentication via token code.

Dialogflow package for Flutter apps. #

This package is modified from VictorRancesCode's package for compatible with Dart 2.

Installation #

  • Add this to your package's pubspec.yaml file:
dependencies:
  dialogflow: "^0.1.0"
  • You can install packages from the command line: with Flutter:
$ flutter packages get
  • Import it Now in your Dart code, you can use:
 import 'package:dialogflow/dialogflow.dart';

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");
  • Example
  void Response(query) async {
    Dialogflow dialogflow = Dialogflow(token: "Your token goes here");
    AIResponse response = await dialogflow.sendQuery(query);
    print(response.getMessageResponse());
  }

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

1
likes
40
pub points
65%
popularity

Publisher

unverified uploader

A package for an easy way to integrate Dialogflow into Flutter apps using Dialogflow API v1 authentication via token code.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter, http

More

Packages that depend on dialogflow