Botframework-sdk: How to send welcome message using BotConnector bot

Created on 9 May 2016  Â·  11Comments  Â·  Source: microsoft/botframework-sdk

I am creating a bot for Skype using BotConnector. Is there any way I can send a welcome message when my bot is added as a contact in Skype? I can see that if we create create Bot using Skype bot sdk there is a config 'contactAddedmessage' through which we can achieve this.

And is there any way I can know if the bot is removed as a contact from Skype. Is there any event which can be listened in BotConnector?

Most helpful comment

Hi,

Is there some sample code of this working please?

Thanks,
Jarrod

All 11 comments

Not yet, but we will add support for this

From: Surya [mailto:[email protected]]
Sent: Monday, May 9, 2016 6:14 AM
To: Microsoft/BotBuilder [email protected]
Subject: [Microsoft/BotBuilder] How to send welcome message using BotConnector bot (#250)

I am creating a bot for Skype using botconnector. Is there any way I can send a welcome message when my bot is added as a contact in Skype? I can see that if we create create Bot using Skype bot sdk there is a config 'contactAddedmessage' through which we can achieve this.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/250

Not having a welcome message was one of the reasons our bot got rejected when we submitted our Skype bot for publishing.

So I believe its a must have for anyone who wants to build a bot using bot-framework+ bot-connector and publish it.

I agree, this should be a must have without this we can't publish bots on the skype directory, so connect the bot with the skype will be just a waste of time.
Even more, for a lot of time I believe that this could work even with Skype (message.Type == "BotAddedToConversation")

Is this issue resolved? @judavi

@stanleycyang yes it's fixed

Hi,

Is there some sample code of this working please?

Thanks,
Jarrod

Hi all. I would also like to know how to implement such a functionality. The proactive bot approach would be overkill for the simple requirement of sending a welcome message when the bot is started.

Looking forward.

Hi all, i want to display a greet message when user clicks on the bot in Skype For Business but it seems SfB interprets "ConversationUpdate" event of Microsoft Bot Framework differently. No message is displayed until user sends a message first. Is there any way that Bot responds first as it's crucial for our project.

@VanjuliK Did you find any work around for this ?

i search a solution like this:
https://www.davidezordan.net/blog/?p=8119

Skype sends a ContactRelationUpdate when the bot is added as a contact. Use this instead of ConversationUpdate for the Skype channel welcome message.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mattlanham picture mattlanham  Â·  3Comments

Arimov picture Arimov  Â·  3Comments

daveta picture daveta  Â·  3Comments

stijnherreman picture stijnherreman  Â·  3Comments

sebsylvester picture sebsylvester  Â·  3Comments