在Microsoft Bot Framework中不使用watterfall发送快速回复

问题描述:

我正在使用微软的bot框架,我想发送快速回复,但我不想使用watterfall,我希望它由luis处理,我如何设置快速使用节点sdk回复消息?在Microsoft Bot Framework中不使用watterfall发送快速回复

这是它是如何做,你必须将它添加到源事件,我在这里找到https://github.com/Microsoft/BotBuilder-Samples/blob/master/Node/core-ChannelData/app.js#L92

let message = new builder.Message(session) 
      .text("Hello") 
      .sourceEvent({ 
       facebook: { 
        "quick_replies": [ 
         { 
          "content_type": "text", 
          "title": "Weather", 
          "payload": "Weather" 
         }, 
         { 
          "content_type": "text", 
          "title": "Forecast", 
          "payload": "Forecast" 
         } 
        ] 
       } 
      }) 
session.send(message)