Node.js 在webchat中显示对话id

Node.js 在webchat中显示对话id,node.js,botframework,Node.js,Botframework,如何在botframework webchat中提及对话id,而不是随机生成?我们目前可以为webchat提及userid和username,但无法提及对话id。有关此主题的更多信息,请查看指南: 为了能够向用户发送临时消息,bot必须首先从当前对话中收集并保存有关用户的信息。消息的address属性包括bot稍后向用户发送临时消息所需的所有信息 在bot收集了有关用户的信息后,它可以随时向用户发送一条特别的主动消息。为此,它只需检索以前存储的用户数据,构造消息并发送消息 不清楚你所说的“提及对

如何在
botframework webchat
中提及对话
id
,而不是随机生成?我们目前可以为
webchat
提及
userid
username
,但无法提及对话
id

有关此主题的更多信息,请查看指南:

为了能够向用户发送临时消息,bot必须首先从当前对话中收集并保存有关用户的信息。消息的address属性包括bot稍后向用户发送临时消息所需的所有信息

在bot收集了有关用户的信息后,它可以随时向用户发送一条特别的主动消息。为此,它只需检索以前存储的用户数据,构造消息并发送消息


不清楚你所说的“提及对话”id是什么意思。你能澄清一下吗?当我们嵌入webchat时,我们可以将userId和userName作为参数传递。我想知道我们是否可以在session.message.address中手动设置对话Id,以便将消息推送到webchat。实际上,问题是=>UserA将进入webchat,然后重新加载页面。重新加载页面时,用户仍然是相同的(cookie),但Conversation.Id不同。在这种情况下,builder.Message()地址(address)不起作用。除对话id外,地址相同。
bot.dialog('/', function(session, args) {
    var savedAddress = session.message.address;

     // (Save this information somewhere that it can be accessed later, such as in a database.)

    var message = 'Hello user, good to meet you! I now know your address and can send you notifications in the future.';
    session.send(message);
});
function sendProactiveMessage(address) {
    var msg = new builder.Message().address(address);
    msg.text('Hello, this is a notification');
    msg.textLocale('en-US');
    bot.send(msg);
}