Sarufi

This is a Dart SDK that helps users interact with sarufi.io in their Dart projects.

Use Case

  1. Integrating Conversational AI Chatbots in Flutter Apps and Dart Jaguar Web applications

Getting started

Steps to install Sarufi to your Project

  1. In your Project’s pubspec.yaml file of your project add the

dependencies:
    sarufi:
  1. After run, to install the package in your project
    $ flutter pub get

You can skip Step 1 and Step 2 and simplly run

    $ flutter pub add sarufi

This will add sarufi in the pubspec yaml with the caret sarufi:^0.0.1 of the latest version.

Usage

Below is how you can easily create and view properties of your Chat Bots in dart.

// main.dart
import 'package:sarufi/sarufi.dart';


void main() async {
    String userName = "Your Sarufi Username";
    String passWord = "Your Sarufi Password";

    final bot = Sarufi(username:userName, password:passWord);
    var chatbot = await bot.createBot(name:"My First Bot");
    
    print(chatbot);
    // Bot(id:11, name:My First Chatbot)
}

Credits and Inspiration

Muchas bendiciones a 😎

  1. Sarufi
  2. Neuro Tech Africa

For issues about the project write to us at Github

GitHub

View Github

Entradas similares

Deja una respuesta