[Question] Send proactive message to Cortana Skills
Pre-flight checklist
- [ ] I posted a question about this issue on Stack Overflow using the tag
botframework. - [x] I have searched the existing issues before logging a new one.
System Information (Required)
- SDK Platform: NodeJS
- SDK Version: 3.8.3
- Development Environment: localhost
Issue Description
When I try to sent a new message (proactive) to a user which has enabled the Cortana Skills, the endpoint returns a 500 error.
Steps to Reproduce
- Retrieve address of an user who communicates with your bot using Cortana Skills
- Send proactive message to recorded address
- Error..
Actual Results
Error: Request to 'https://CortanaBFChannelEastUs.azurewebsites.net/v3/conversations/[id]/activities/[userid]' failed: [500] Internal Server Error
at Request._callback (/Users/mick/Projects/ms-projects/project-sky/node_modules/botbuilder/lib/bots/ChatConnector.js:511:46)
at Request.self.callback (/Users/mick/Projects/ms-projects/project-sky/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/Users/mick/Projects/ms-projects/project-sky/node_modules/request/request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/Users/mick/Projects/ms-projects/project-sky/node_modules/request/request.js:1091:12)
at IncomingMessage.g (events.js:291:16)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback (internal/process/next_tick.js:122:9)
{ Error: read ETIMEDOUT
at exports._errnoException (util.js:1022:11)
at TLSWrap.onread (net.js:569:26) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'read' }
@iMicknl can you please provide your code for sending the proactive message?
@JasonSowers off course. I create a new message which the address I stored and I use bot.send to send it. This works on Skype and Microsoft Teams, however it doesn't work on Cortana (Skills). I was wondering if this isn't supported (yet), maybe. I couldn't find any documentation.
const reply = new Message().address(address).text('Text');
bot.send(reply);
And the address I use comes from my DocumentDB and is exactly the address I got from session.message.address.
"address": {
"id": "[removed]",
"channelId": "cortana",
"user": {
"id": "[removed]"
},
"conversation": {
"id": "[removed]"
},
"bot": {
"id": "project-sky"
},
"serviceUrl": "https://CortanaBFChannelEastUs.azurewebsites.net/"
},
@iMicknl great question! The Cortana channel doesn't currently accept proactive messages. It is a highly requested feature, and should be available sometime soon. However, there is currently no timeline.
@EricDahlvang thanks for the quick reply & update! It would be very nice, so I will just be patient. :-)
@EricDahlvang Is this now available on Cortana?
@neetgupta7 I'm sorry, we do not have a timeline for this feature. It is definitely on the radar. Stay tuned!
This is still not supported? If so, it might help if this is a) somewhere documented where it is easily found b) a more descriptive error than just 'internal server error' is returned. I have spent the better part of half a day to get to this point, which is a bit sad.
@LocalJoost, it is still not supported. There is a separate issue which tracks this feature request (#2933).
We need proactive message, please!!