cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted
PVA
PVA

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

8 REPLIES 8
Highlighted
PVA
PVA

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

 

Highlighted
PVA
PVA

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

Highlighted
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

 

Highlighted
Regular Visitor

Re: Pro-active messages

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

Highlighted
New Member

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.

 

 

Highlighted

Re: Pro-active messages

We are working on a blog called "Make your bot start the conversation using custom Web Chat" which will come out soon. Stay tuned!

Highlighted
Regular Visitor

Re: Pro-active messages

Is there any way to send Pro-active messages in Teams at 9:00 AM everyday

Highlighted
Regular Visitor

Re: Pro-active messages

@DigantaCan you provide any solution or alternative here?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Community Conference

Experience what’s next for Power Virtual Agents

See the latest Power Virtual Agents innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Users online (7,470)