{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.3",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "Hi, please follow steps to connect 3rd party platform for interactive messages.",
                    "wrap": true
                },
                {
                    "type": "TextBlock",
                    "text": "**Step 1**: Click following button to authorize",
                    "wrap": true
                },
                {
                    "type": "ActionSet",
                    "actions": [
                        {
                            "type": "Action.OpenUrl",
                            "title": "Authorize",
                            "url": "${authorizeUrl}"
                        }
                    ]
                },
                {
                    "type": "TextBlock",
                    "text": "**Step 2**: Submit token that you get from authorization page.",
                    "wrap": true
                },
                {
                    "id": "token",
                    "type": "Input.Text",
                    "placeholder": "Token showed at authorization page",
                    "isRequired": true,
                    "errorMessage": "please input the auth token",
                    "label": "Token"
                }
            ]
        }
    ],
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Submit",
            "data": {
                "action": "authorize",
                "subscriptionId": "${subscriptionId}"
            }
        }
    ]
}