I want to create a dialog with the bot framework. My steps:
Create a new Conversation using the Direct Line API (Works without problems) (Clientside)
The following Dialog gets triggered in the Bot framework (Serverside):
bot.dialog('*:notification', [ function (session, args) { builder.Prompts.text(session, args) }, function (session, results) { logger.info('Results', results) }])
I want to send a reply to the incoming Message (Clientside)
method:'post', url:'conversations/' + conversationId + '/activities', headers:{ 'Authorization': 'Bearer' + token } body:{ replyToId: replyToId, type:'message', from: { id:'myId' }, text: 'Some simple text', textFormat: 'plain' }
conversationId: I use the one i recieved when i created the conversation
token: I use the one i recieved when i created the conversation
replyToId: The one from the activity Object
Actual Result:
- The Botframework does not recognize that this is the reply to the message send and triggers the default handler.
Expected Result:
- The Bot Framework triggers the second step of the Dialog.