[英]Is Botman using any Artificial Intelligence? Or it is just a coding method? (based on the codes below)
<?php
use App\BotMan\Conversations\OnboardingConversation;
$botman = app('botman');
$botman->hears('.*(hi|hey|hello|halo).*', function($bot) {
$bot->typesAndWaits(1);
$bot->reply('hello');
});
上面的代碼是基於人工智能的嗎? 或者 Botman 是否涉及任何 AI 或 ML?
基於代碼,它使用正則表達式並使用單詞和模式匹配,如 AIML。 但是,您也可以將 Botman 與 Dialogflow(AI) 集成以獲取用戶 Intent 並根據意圖回復消息,或者直接使用 dialogflow 進行回復。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.