SimpleBOT merupakan salah satu contoh penggunaan NLP SimpleAI yang dipergunakan untuk membuat BOT. Memiliki fitur menjawab otomatis, dan belajar suatu definisi kata sederhana. Kecerdasan Bot ini tergantung dari data entities dan intent yang Anda miliki, serta logic handler yang Anda buat.
Contoh penggunaan bot sederhana dengan SimpleBOT ini bisa anda coba dari situs ai.fastplaz.com atau bisa melalu aplikasi chat Telegram, silahkan hubungi contact 'Fastplaz Bot'.
Ringan Tanpa Beban
SimpleBOT dibuat dengan sederhana, simple dan ringan. SimpleBOT adalah binary application sehingga diharapkan akan lebih cepat dan ringan.
- FastPlaz_runtime
- SimpleAI package
Gunakan Lazarus, buka file "simplebot_package.lpk" dan install file tersebut. Jangan lupa, instalasi ini membutuhkan SimpleAI package.
SimpleBOT := TSimpleBotModule.Create;
SimpleBOT.OnError := @OnErrorHandler; // Your Custom Message
text_response := SimpleBOT.Exec(Text);
SimpleBOT.Free;
Fungsi 'OnErrorHandler' bisa digunakan untuk melakukan trapping terhadap kata/kalimat yang belum diakomodir oleh data SimpleAI
function TMainModule.OnErrorHandler(const Message: string): string;
begin
.
.
.
// save to log file
LogUtil.Add(Message, 'AI');
// or save to database
.
.
Result := 'Your custom messages';
end;SimpleBOT menyediakan fitur menyimpan data user untuk kebutuhan temporer.
SimpleBOT := TSimpleBotModule.Create;
..
..
// Set
SimpleBOT.UserData[ 'Name'] := 'Luri Darmawan'
// Get
varstring := SimpleBOT.UserData[ 'Name'];
..
..
SimpleBOT.Free;
Take a look at the repo Wiki for further information and tutorials! Feel free to improve!
Here's a list of projects that feats this library, feel free to add yours!
If you like living on the edge, please report any bugs you find on the SimpleAI issues page.
See CONTRIBUTING for more information.
Please see the LICENSE included in this repository, which this project is licensed under.
Credit list in CREDITS
