botnoi_dev_platform 0.0.6 copy "botnoi_dev_platform: ^0.0.6" to clipboard
botnoi_dev_platform: ^0.0.6 copied to clipboard

outdated

A flutter package for creating and training chatbot on botnoi.ai using botnoi developer platform api.

Botnoi Dev Platform is a programatical alternative to the visual chatbot builder provided by https://botnoi.ai. It can be used to build and train chatbots for various platforms such as Facebook Messenger and LINE.

This official library provides a Dart implementation of Botnoi Dev Platform's API in order to simplify the process of building chatbots. It also provides various data types related to chatbots such as 'BotIntents', 'BotObjects' and lots of helper functions to work with them.

This suits best for developers who want to build chatbots programmatically or to automate the process of chatbot training when an action is performed by the applications' users.

Features #

List what your package can do. Maybe include images, gifs, or videos.

Getting started #

first, add the package to your pubspec.yaml file

dependencies:
  botnoi_dev_platform: ^latest_version

then, import the package

import 'package:botnoi_dev_platform/botnoi_dev_platform.dart';

note: you have to have an API key to use this package. You can get one from https://botnoi.ai

Usage #

First, you have to initialize the BotnoiChatbot class with your API key

BotnoiChatbot.initializeClient(key: 'your_api_key');

Then, you can create a BotnoiChatbot instance and create a new chatbot or find an existing one

BotnoiChatbot chatbot = BotnoiChatbot();

// create a new Bot instance
Bot bot = Bot(
  botName: "example_bot",
  sex: "male",
  age: 20,
  owner: "example_owner",
  botAvatar: "https://example.com/avatar.png",
  businessType: ["education"],
);

// add the new Bot instance to the chatbot
chatbot.createBot(bot: bot);

You can create an intent in side that chatbot by creating a new BotIntent instance and add it to the bot

BotIntent intent = BotIntent(
    name: "example_intent",
  );

bot.opt.createIntent(intent: intent);

You can train the intent by adding some keywords and messages to it

intent.opt?.trainKeyword(keyword: "Hello");
intent.opt?.trainMessage(message: "Hello! how are you?");
2
likes
0
points
49
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package for creating and training chatbot on botnoi.ai using botnoi developer platform api.

Homepage

License

unknown (license)

Dependencies

flutter, get_it, http

More

Packages that depend on botnoi_dev_platform