簡體   English   中英

Botman 是否使用任何人工智能? 或者它只是一種編碼方法? (基於以下代碼)

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM