Compose actionable message

Copy and paste the following code into the Compose action and replace the value for the originator with the one of your own registered provider.

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <script type="application/adaptivecard+json">
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.0",
  "originator": "@{variables('originatorId')}",
    "body": [
        {
            "type": "Image",
            "separator": true,
            "url": "https://pbs.twimg.com/media/D4DxbIHW4AEgNhP.jpg"
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "size": "Medium",
                    "weight": "Bolder",
                    "text": "Pending approval"
                },
                {
                    "type": "TextBlock",
                    "text": "Requested by **@{body('Get_Requestor_record')?['fullname']}** <<@{body('Get_Requestor_record')?['domainname']}>>",
                    "wrap": true
                },
                {
                    "type": "FactSet",
                    "facts": [
                        {
                            "title": "Date Created:",
                            "value": "{{DATE(@{body('Get_Approval_record')?['createdon']}, LONG)}}"
                        },
                        {
                            "title": "Details:",
                            "value": "@{body('Get_Approval_record')?['msdyn_flow_approval_details']}"
                        },
                        {
                            "title": "Link:",
                            "value": "[@{body('Get_Approval_record')?['msdyn_flow_approval_itemlinkdescription']}](@{body('Get_Approval_record')?['msdyn_flow_approval_itemlink']})"

                        }
                    ]
                }
            ]
        }
    ],
    "selectAction": "Submit",
    "actions": [
        {
            "type": "Action.ShowCard",
            "id": "approve",
            "title": "Approve",
            "card": {
                "type": "AdaptiveCard",
                "body": [
                    {
                        "type": "Input.Text",
                        "id": "commentInput",
                        "placeholder": "Reason (optional)",
                        "isMultiline": true
                    }
                ],
                "actions": [
                     {
                      "type": "Action.Http",
                      "title": "Submit",
                      "method": "POST",
                      "url": "@{variables('Flow URL')}",
                      "headers": [
                        {
                          "name": "Authorization",
                          "value": ""
                        }
                      ],
                      "body": "{'requestId':'@{triggerBody()?['msdyn_flow_approvalrequestid']}','response':'Approve','reason':'{{commentInput.value}}','userName':'@{body('Get_Approver_record')?['domainname']}'}"
                    }
                ],
            }
        },
        {
            "type": "Action.ShowCard",
            "id": "reject",
            "title": "Reject",
            "card": {
                "type": "AdaptiveCard",
                "body": [
                  {
                        "type": "Input.Text",
                        "id": "reasonInput",
                        "placeholder": "Reason (required)",
                        "isMultiline": true,
 "spacing": "none"
                    }
                ],
                "actions": [
                    {
                      "type": "Action.Http",
                      "title": "Submit",
                      "method": "POST",
                      "url": "@{variables('Flow URL')}",
                      "headers": [
                        {
                          "name": "Authorization",
                          "value": ""
                        }
                      ],
                      "body": "{'requestId':'@{triggerBody()?['msdyn_flow_approvalrequestid']}','response':'Reject','reason':'{{reasonInput.value}}','userName':'@{body('Get_Approver_record')?['domainname']}'}"
                    }
                ],
            }
        },
 {
            "type": "Action.ShowCard",
            "id": "reassign",
            "title": "Reassign",
            "card": {
                "type": "AdaptiveCard",
                "body": [
                    {
                        "type": "Input.ChoiceSet",
      "id": "newApprover",
      "style": "compact",
      "isMultiSelect": false,
      "value": "alans@CRM658572.OnMicrosoft.com",
      "choices": [
        {
          "title": "Alan Steiner",
          "value": "alans@CRM658572.OnMicrosoft.com"
        },
        {
          "title": "William Contoso",
          "value": "williamc@CRM658572.OnMicrosoft.com"
        },
        {
          "title": "Jeff Hay",
          "value": "jeffh@CRM658572.OnMicrosoft.com"
        }
      ]
                    }
                ],
                "actions": [
                     {
                      "type": "Action.Http",
                      "title": "Submit",
                      "method": "POST",
                      "url": "@{variables('Flow URL')}",
                      "headers": [
                        {
                          "name": "Authorization",
                          "value": ""
                        }
                      ],
                      "body": "{'requestId':'@{triggerBody()?['msdyn_flow_approvalrequestid']}','response':'Reassign','reason':'{{newApprover.value}}','userName':'@{body('Get_Approver_record')?['domainname']}'}"
                    }
                ],
            }
        }
    ],
}
</script>
</head>
<body>
Get the Flow app to receive push notifications and grant approvals from anywhere. <a href="https://aka.ms/flowmobileportaldiscoverability">Learn more</a><br>
This message was created by an automated workflow in Microsoft Flow. Do not reply. 
</body>
</html>