Search packages, repositories and app categories

Package detailsv0.0.2

wit_ai

A simple client for Flutter and Dart to talk to your Wit.ai app

30-day downloads
17
Likes
6
Pub points
40

Install package

flutter pub add wit_ai

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight Flutter and Dart client that enables seamless integration with Wit.ai, allowing apps to interact with natural language processing capabilities from Wit.ai. It simplifies sending user input to a Wit.ai app and receiving structured responses, ideal for voice or text-based conversational interfaces. The package supports basic API communication without requiring deep knowledge of HTTP requests or authentication handling. Designed for developers aiming to add intelligent, AI-driven interactions to their Flutter applications with minimal setup.

Use cases

  • Voice command processing
  • Natural language understanding in apps
  • Chatbot integrations
  • User intent recognition
  • Real-time conversation analysis
  • Smart assistant features

Key features

  • Simple API wrapper
  • Seamless Wit.ai integration
  • Supports text and voice input
  • Minimal configuration required
  • Real-time response parsing
  • Clean, readable code structure

Suitable for

  • Developers building chatbots
  • Teams using Wit.ai for NLU
  • Flutter apps needing voice interaction
  • Projects focused on conversational AI
  • Startups prototyping AI-powered features

Considerations

  • Requires a Wit.ai app and access token
  • Limited to Wit.ai's specific NLU model
  • No offline support
  • Dependent on external API availability
  • May need additional error handling for network issues
  • Not suitable for complex AI workflows beyond NLU

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

wit_ai

This is a simple client that makes API requests to your Wit.ai app.

Wit.ai is an NLP tool for developers. It makes it easy for developers to build applications and devices that you can talk or text to.

Currently this package supports the "message" feature of Wit.ai. If you would like more features, please open a ticket with the enhancement label.

Usage

Using this client is very simple. Start by importing the package into your class

import 'package:wit_ai/wit_ai.dart';

Next, create a Wit object with your access token:

final wit = Wit(accessToken: ACCESS_TOKEN_HERE);

NOTE: The access token can be found in the Settings tab on your wit.ai console. It should be titled Client Access Token.

message()

The message method takes a String input to send to your Wit app. It returns a dynamic object.

final wit = Wit(accessToken: ACCESS_TOKEN_HERE); // New Wit object

dynamic response = await wit.message("Hello");

The message method returns a JSON decoded response, so you can call a specific key directly without a hassle.

Example of a response from Wit:

{
    "msg_id" : "dd526480-5784-43fa-a0f9-a3587fadc95d",
    "_text" : "temperature",
    "stats" : {
      "total_time" : 185
    },
    "entities" : {
      "intent" : [ {
        "confidence" : 0.6081958281101719,
        "value" : "temperature_get"
      }, {
        "confidence" : 0.3918041718898281,
        "value" : "temperature_set"
      } ]
    }
  }

Getting entities from the response:

print(response['entities']);

Flutter

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.