> For the complete documentation index, see [llms.txt](https://blog.rhinoautomator.com/brians-integration-and-automation-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.rhinoautomator.com/brians-integration-and-automation-notes/automations/teams-notifications-azure-bot/two-stage-message-process/formatting-the-initial-message.md).

# Formatting the Initial Message

{% hint style="danger" %}
I've migrated the entire blog over to my new website. Please go to [https://rhinoautomator.com](https://rhinoautomator.com/) for more as this will be deleted at some point.
{% endhint %}

Below is the basic format of the JSON you want to send to your bot to create the initial message

{% code overflow="wrap" lineNumbers="true" fullWidth="false" %}

```json
{
  "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": [
            // Here you will place all of the JSON for the various pieces of your message that you want to send to Teams. I recommend using 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"
}
```

{% endcode %}
