builder.Prompt.choice(...)への応答を取得しようとしています。選択肢のリストがロードされ、選択を行うと何も起こりません。ボットフレームワークダイアログでプロンプトの結果を取得する方法
しかし、function(session, results)
が実行されたとは思われません。 session.send("Choice Made)
他のコードは実行されません。どのように私は私の応答を得ることができます。私は何がここで間違っているのか分からない。それは、ドキュメントのコードのように見えます。
bot.dialog('LifecycleDialog', function (session, args) {
var softwareEntity = builder.EntityRecognizer.findEntity(args.intent.entities, 'Software');
var choices = Object.keys(SoftwareDict[softwareEntity.entity]);
builder.Prompts.choice(session, "Select a version by typing the number: ", choices, "Sorry I don't see that version.");
},
function (session, results) {
session.send("Choice Made"); //DOES NOT WORK
session.endDialogWithResult(results); //DOES NOT WORK
}).triggerAction({
matches: 'LifecycleStatus'
});
はそれが可能ですtriggerActionでこれを行うには?すべての例はちょっと異なる構文のダイアログです。 –