【问题标题】:How i can get user access token in Dialogflow?如何在 Dialogflow 中获取用户访问令牌?
【发布时间】:2021-06-18 14:39:48
【问题描述】:

我正在尝试在对话流中查找用户访问令牌,因为我正在尝试将其与 botman.io 相关联,但它不起作用 这是代码:

$botman = app('botman');
        
$dialogflow = Dialogflow::create('token')->listenForAction();

$botman->middleware->received($dialogflow);

$botman->hears('weathersearch', function (BotMan $bot) {
    $extras = $bot->getMessage()->getExtras();

    $bot->reply('I'm working');
})->middleware($dialogflow);

如何找到我的令牌?

【问题讨论】:

    标签: laravel dialogflow-es chatbot botman


    【解决方案1】:

    你可以试试这个: https://github.com/genkovich/DialogFlowBotManMiddleware

    我试着写详细的说明:)

    【讨论】:

      猜你喜欢
      • 2011-12-12
      • 2012-05-16
      • 2017-01-28
      • 1970-01-01
      • 2014-05-05
      • 2013-04-26
      • 1970-01-01
      • 2016-02-05
      • 1970-01-01
      相关资源
      最近更新 更多