Microsoft Teams
Goal
Receive message from Microsoft Teams (Incoming WebHook)
Send message to Microsoft Teams Channel(Outgoing WebHook)
Create Incoming WebHook in Ministry.Chat
Note: I would advise to create New Team so not all members in your organisation have access to this Integration
Create Incoming Webhook with Default parameters:
Go to Integrations --> Create New integration --> Select Incoming WebHook
Assign Name
Assign Post to Channel (This will be the Channel where you want to recieve msg from Teams)
Assign Post as (Create Bot user and add bot the above mentioned Channel)
Copy and paste below script in Script section.
Save and then open your Incoming WebHook You should be able to see Webhook URL just copy that, We will need that during Creating Outgoing WebHook in MS Teams.
Create Outgoing WebHook in MS Teams:
Select the appropriate team and select Manage team from the (•••) drop-down menu.
Choose the Apps tab from the navigation bar.
From the window's lower right corner select Create an outgoing webhook.
In the resulting popup window complete the required fields:
Name - The webhook title and @mention tap. (This will be your bot name in MS Teams)
Callback URL - Paste the URL here we copied from Ministry.Chat.
Description - A detailed string that will appear in the profile card and the team-level App dashboard.
Profile Picture (optional) an app icon for your webhook.
Select the Create button from lower right corner of the pop-up window and the outgoing webhook will be added to the current team's channels.
Note : The Name We mentioned above will be the bot name so when you send message to Ministry.Chat Mention to Bot example @namebot
__
Create Incoming WebHook in MS Teams:
Navigate to the Team where you want to add the webhook and select (•••) More Options from the top navigation bar and Select Apps and select More apps.
Choose Connectors from the drop-down menu and search for Incoming Webhook.
Select the Configure button, provide a name, and, optionally, upload an image avatar for your webhook.
Select appropriate Teams and Channel.
The dialog window will present a unique URL that will map to the channel. Make sure that you copy and save the URL—you will need to provide it to Ministry.Chat Outgoing WebHook.
Select the Done button. The webhook will be available in the team channel.
Create Outgoing Webhook in Ministry.Chat:
Create Outgoing WebHook from Integration:
Select Message Sent as Event Trigger
Select the Channel (same as mentioned in Incoming Webhook)
Paste the URL we copied from Microsoft Teams
Select Bot Post as (same as in Incoming Webhook)
Paste Below Script:
Enjoy!
Last updated