Microsoft Teams call and chat button - botframework

I'm quite new to bot framework, we are working on a MS teams app in which i'm using a adaptive card. On that card i'm having buttons for MS teams call and chat. So how to implement a call and chat button for a dynamic users selected from message extension list.
I'm completely new to bot framework

Chat - Please take a look at Deeplink to chat documentation. Use openURL action and specify the URL in value field.
Calling - Currently, there is no Deeplink to initiate a call. Option would be use Calls and online meetings bots.

Related

MS Teams & Bot Framework: Action buttons seems to be not working on adaptive card, sent to cross org tenant from messaging extesnion

Basically, we have a search messaging extension in our application. We can send adaptive cards from the searched results of messaging extension. This adaptive card has the action button to open the task module with a bit more information or an appropriate message suggesting the next steps to follow.
Please consider the behavior of the action button clicked when
The user who receives this card is from the same tenant
The user is being presented with a task module fetched through our bot.
The user who receives this card is from the other tenant
Our bot does not receive any events although this tenant already has our bot installed.
Try to understand why the action button in #2 is not firing event to our bot? Is there any way to handle the action button clicked event for a cross tenant?

How to create MS Teams Survey App Messaging Extension

I am currently creating a survey app for ms teams similar to Polly.ai/survey monkey
The flow would be
User installs app,
app appears as messaging extension on the chat window,
user clicks app to opens page to create survey,
on submit an adaptive card is generated,
the same is responded back to teams,
The new card appears on the message Hi,
I am currently creating a survey app for ms teams similar to Polly.ai/survey monkey
The flow would be
User installs app,
app appears as messaging extension on the chat window,
user clicks app to opens page to create survey,
on submit an adaptive card is generated=>
the same is responded back to teams =>
The new card appears on the message create pane,
User hits enter to post the survey to the group,
All the group members respond to the survey ,
The same is logged
Can anyone help me in providing some links from where I can start.
Or maybe throw some light on what should be my approach.
My progress so far.
Created a teams bot,
On messaging extension invoke returned url that contains HTML for survey creation which is created in vue.js. Used msteams js to submit the json for created survey back to the bot,
Generated an adaptive card with json received and the a new survey created in db,
Sent the card back to teams as message attachment,
The card is displayed in message create pane,
User hits enter to post the card in the group,
Caught the action.submit event from adaptive card on bot framework.
Also, please note while I am generating the card I don’t have user email in the turncontext as well.
Please throw some light on this
Thanks
Please have a look at App templates available. I think for your case Poll and Survey are the best app template available.
Thanks

Teams Popout chat through coding

I want to open the teams chat as pop out chat instead of opening in the chat window. When I used the below code through SPFx, I am able to open the chat window
window.open('MSTeams:/l/chat/0/0?users=' + userID, 'popup', 'width=600,height=600,resizable=yes,fullscreen=no');
return false;
but I want to open the chat window as pop out chat.
I tried
MSTeams:/l/chat/pop/1/0?users=useremail
and
MSTeams:/l/chat/1/1?users=useremail
but its not working please help me on this.
Teams has inbuilt pop out chat feature, there is no official sample code or support available for custom apps. I've raised a Feature request in backlog item.

Add a Google Chat bot programmatically

I have a web application for organizations. I would like to allow users to add an existing Google Chat bot to their Google Chat workspace programmatically - example workflow: Jack visits mywebsite.com, presses button 'Add site bot' and the bot gets added to their Google Chat where the bot can asynchronously message the user.
Is this functionality possible at the moment or does the user have to connect the bot manually through the Google Chat interface?
Thanks,
Mihai

Create a deep link to audio call in microsoft teams

I have an adaptive card and I want to add a button that has call functionality to a specific person in this card "the person is in my organization microsft team". How can I create a call via deeplink to audio call?
Edit:
This link will redirect to the chat window with the user:
https://teams.microsoft.com/l/chat/0/0?users=
How can I do the same but for audio/ video calls?
You will need to implement calling in your Bot to be able to make audio calls using Bot. Please go through Calling and Meeting Bot overview. Here are few samples to try out.
https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/V1.0Samples/LocalMediaSamples
Here is the equivalent link for calls:
https://teams.microsoft.com/l/call/0/0?users=user#domain.ext
And if you're not worried about users who don't have the Teams app installed, you can try:
msteams://teams.microsoft.com/l/call/0/0?users=user#domain.ext
This latter link will not go through the browser. It will however pop up a message requesting permission to open the app. Choose your poison.

Resources