Microsoft Teams is set to take on the new breed of collaboration apps like Slack and Hipchat.

Each collaboration area is called a Team — and each Team can have multiple channels. Within a channel you have all the basics like chat (with emojis!) and document sharing, but it really gets interesting when you connect Teams to other applications. Microsoft Teams launched with a bunch of connectors to popular apps like Trello, Jira, Zendesk, and many more — but it’s really easy to integrate almost anything with Teams using Zapier and Webhooks.

Webhooks are a type of event-driven API that lets you push and pull information between different types of apps. Lots of popular applications support Webhooks, including both Slack and Microsoft Teams. My objective was to create a channel for my marketing team at RapidMiner that would let me aggregate customer feedback — the NPS data we capture from SurveyMonkey.

The first step is to add a Webhook to your Microsoft Teams channel. You’ll give the channel a name and a custom logo. Then your Webhook will provide a unique URL to receive the information you push from other apps like Zapier:

Now that you have a URL for your Webhook, you can use Zapier to start pushing information into your Microsoft Teams channel.

Starting with my SurveyMonkey example, you’ll use the built-in SurveyMonkey Zapier trigger to start the Zapier process.

Then you’ll use “Webhooks by Zapier” to publish the chat transcript to Microsoft Teams. I prefer to use the Custom Request type for its flexibility. More on that later.

Now select the POST method and then add the URL of your Webhook. The Data section is where you’ll configure the messaging what you want to send. Since we selected Custom Request, we need to format the JSON using the Microsoft Teams Card format.

Here’s what I use:

{
 “summary”:”NPS Survey Response”, 
 “sections”:[
 {
 “activityTitle”:”<b>NPS Survey Response</b>”,
 “activityImage”: “https://secure.surveymonkey.com/assets/userweb/smlib.globaltemplates/5.8.0/assets/sm_logo_fb.png"
 },
 {
 “facts”:[
 {
 “name”:”Name”,
 “value”:”{{configure_this_in_Zapier}}”
 },
 {
 “name”:”Company”,
 “value”:”{{configure_this_in_Zapier}}”
 },
 {
 “name”:”NPS Score”,
 “value”:”{{configure_this_in_Zapier}}”
 },
 {
 “name”:”Needed for a Higher Rating”,
 “value”:”{{configure_this_in_Zapier}}”
 }
 ]
 }
 ],
 “potentialAction”:[
 {
 “@context”:”http://schema.org”,
 “@type”:”ViewAction”,
 “name”:”View in Salesforce”,
 “target”:[
 “your_salesforce_url}}”
 ]
 },
 ]
}

This creates a card in Microsoft Teams using your webhook.

Microsoft Teams Card

These are really simple examples, and you can do much more including adding markdown formatting and action buttons.

Published by Tom Wentworth

SVP Product Marketing Acquia | ex @RapidMiner | I like math, open source, and the Smashing Pumpkins

%d bloggers like this: