// BLOG — AUTOMATIONS — TEAMS BOT
FORMATTING THE
INITIAL MESSAGE
Below is the basic format of the JSON you want to send to your bot to create the initial message:
{
"activity": {
"type": "message",
"summary": "Set this to a summary that you want to appear in the
desktop/mobile notification in Teams",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.5",
"body": [
// Place all of the JSON for the various pieces of your
// message here. Use the Adaptive Card Designer and
// Actionable Messages Designers to figure out the formatting.
],
"padding": "None",
"msteams": { "width": "Full" }
}
}
]
},
"bot": {
"id": "YOUR_BOT_ID",
"name": "YOUR_BOT_NAME"
},
"channelData": {
"team": { "id": "TEAM_ID" },
"tenant": { "id": "TENANT_ID" },
"channel": { "id": "CHANNEL_ID" },
"teamsTeamId": "TEAM_ID",
"teamsChannelId": "CHANNEL_ID"
},
"isGroup": true,
"tenantId": "TENANT_ID"
}