Starting from version 5.7, it's possible to send notifications from EasyMorph to Microsoft Teams using EasyMorph Bot for Teams (or a custom Teams bot).
The bot can only send messages to the specified channel. It can't receive and process replies. It's a one-way communication.
Here is how it works:
Step 1: Add EasyMorph Bot to your Teams channel
- Go to the "Apps" tab in Teams
- Find "EasyMorph Bot".
- Add to your team
- Select a channel in your team.
Step 2: Create a Teams Bot connector in EasyMorph
Open the Connector Manager in EasyMorph and create a new Teams Bot connector:
Step 3: Add the "Teams Bot" action to your workflow
Press "Add action" on the toolbar and add the "Teams Bot" action to your workflow. You can drag the action from the sidebar right onto a table in your workflow.
Step 4: Configure the "Teams Bot" action
Click the action in the table to select it. In the action settings:
- Choose the connector that you configured in step 2 above
- Pick the Teams channel in which you added EasyMorph Bot in step 1 above. You will be prompted to sign into your Microsoft account - go ahead and authorize.
- Write a message to send. There are two supported message formats:
- Plain text messages
- Adaptive cards
Plain text messages have no formatting. You can insert EasyMorph parameters in curly braces right in the text.
Adaptive cards allow creating complex messages with formatted text, images, buttons, hyperlinks, lists, etc. Adaptive cards must be specified as JSON. Optionally, you can insert EasyMorph parameters right into the JSON.
Here is an example of an adaptive card.
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Here is a ninja cat"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
}
]
}