botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Question] Send proactive message to Cortana Skills

Open iMicknl opened this issue 9 years ago • 9 comments

Pre-flight checklist


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

  1. Retrieve address of an user who communicates with your bot using Cortana Skills
  2. Send proactive message to recorded address
  3. 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 avatar May 31 '17 21:05 iMicknl

@iMicknl can you please provide your code for sending the proactive message?

JasonSowers avatar May 31 '17 21:05 JasonSowers

@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 avatar May 31 '17 21:05 iMicknl

@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 avatar May 31 '17 22:05 EricDahlvang

@EricDahlvang thanks for the quick reply & update! It would be very nice, so I will just be patient. :-)

iMicknl avatar May 31 '17 22:05 iMicknl

@EricDahlvang Is this now available on Cortana?

neetgupta7 avatar Dec 29 '17 07:12 neetgupta7

@neetgupta7 I'm sorry, we do not have a timeline for this feature. It is definitely on the radar. Stay tuned!

EricDahlvang avatar Feb 13 '18 07:02 EricDahlvang

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 avatar Apr 18 '18 09:04 LocalJoost

@LocalJoost, it is still not supported. There is a separate issue which tracks this feature request (#2933).

iMicknl avatar Apr 18 '18 20:04 iMicknl

We need proactive message, please!!

marcobocca avatar Oct 10 '18 07:10 marcobocca