cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Avalaxy
Level: Powered On

Pro-active messages

Hi, for most of the bots we build we really need the ability to send pro-active/welcome messages. It looks like this is currently no possible. Can you please build this ASAP and give a rough indication of when it will be available? I think almost every bot will need to be able to do this.

1 ACCEPTED SOLUTION

Accepted Solutions
4LB3r7
Level: Powered On

Re: Pro-active messages

Currently the auto-triggered welcome message is not enabled for web canvas (It is enabled in Teams and Facebook Channel). To be able to trigger the welcome message in web canvas, a hidden event activity need to be sent to the bot by the canvas.  The activity type="event" and name="startConversation".

 

There are some sample code on  how to implement in canvas:

https://github.com/microsoft/PowerVirtualAgentsSamples/blob/master/BuildYourOwnCanvasSamples/1.start...

 

 

View solution in original post

5 REPLIES 5
Microsoft MarKol
Microsoft

Re: Pro-active messages

Making Bots start a conversation has been submitted as a idea on the Idea forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas/label-name/power%20virtual...

 

 

Can you please add your vote to it and leave a comment on you use case here:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Make-bot-start-the-conversation/idi-p/404752

BotStartsConversation.JPG

 

4LB3r7
Level: Powered On

Re: Pro-active messages

Currently the auto-triggered welcome message is not enabled for web canvas (It is enabled in Teams and Facebook Channel). To be able to trigger the welcome message in web canvas, a hidden event activity need to be sent to the bot by the canvas.  The activity type="event" and name="startConversation".

 

There are some sample code on  how to implement in canvas:

https://github.com/microsoft/PowerVirtualAgentsSamples/blob/master/BuildYourOwnCanvasSamples/1.start...

 

 

View solution in original post

Administrator
Administrator

Re: Pro-active messages

For more information on this be sure and check out: 

https://docs.microsoft.com/en-us/power-virtual-agents/extend-custom-canvas-connect

 

Avalaxy
Level: Powered On

Re: Pro-active messages

Thanks! Can you please also share how to do this on Facebook Messenger?

kvbr
Level: Power Up

Re: Pro-active messages

In case of Facebook messenger, to proactively trigger messages, you send the desired topic trigger phase in the pay load of Get Started.

 

For example to trigger default Greeting topic:

curl -X POST -H "Content-Type: application/json" -d '{
  "get_started": {"payload": "Hello"}
}' "https://graph.facebook.com/v2.6/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>"

  
IMG_3292.PNG

 

IMG_3294.PNG

You can find more details here.

 

 

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,142)