Search code examples
botframeworkbot-framework-composer

Send file to user using bot framework composer


I'm really new in BotFramework Composer,I want make a Menu with two options and when I click Option1,the Bot send a File to user, can you please help me?
thanks


Solution

  • Use adaptive card

    Example here

    • "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
      "version": "1.2",
      "type": "AdaptiveCard",
      "body": [
        {
          "type": "TextBlock",
          "text": "Download File",
          "weight": "bolder",
          "isSubtle": false
        }
      ],
         "actions": [
            {
                "type": "Action.OpenUrl",
                "title": "Click to Download",
                "url": "https://download.microsoft.com/download/D/0/0/D0001082-EEDC-41E2-A7C2-4BD05A7FB63A/BusinessApps_ReleaseNotes_v18.1.4.pdf"
            }
        ]
      

    }```

    Sample UI

    enter image description here