0
votes

My program can read Intents from LUIS correctly and launch other adaptive cards using LUIS Intents, however with this column type, still is not possible. The Intents am trying to launch here are "user" and "myEmail" in "type": input.text. I know somehow the data field in json must be misplaced, or the title, or id. Here´s the file, any help...?

{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.0",
  "body": [
    {
      "type": "Image",
      "url": "lalala.png",
      "size": "Medium"
    },
    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": 2,
          "items": [
            {
              "type": "TextBlock",
              "text": "Einloggen",
              "weight": "Bolder",
              "size": "Medium"
            },
            {
              "type": "Input.Text",
              "id": "myName",
              "title": "user",
              "data": "user",
              "placeholder": "Benutzername oder email"
            },
            {
              "type": "Input.Text",
              "id": "myEmail",
              "title": "myEmail",
              "data": "myEmail",
              "placeholder": "Passwort",
              "style": "Email"
            }
          ]
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "title": "Submit"
    },
    {
      "type": "Action.Submit",
      "title": "Cancel"
    }
  ]
}
2
btw the LUIS intents am trying to launch are "myEmail" and "user"Dyna Blaster
I would like to help but it's unclear what your issue is. Please edit your question to include an actual question.Kyle Delaney
I asked you to include an actual question. Why did you not include an actual question? A question ends with a question mark.Kyle Delaney
edited 4 mins agoDyna Blaster
I am asking you to ask an actual question so that we're able to answer it. Putting a question mark at the end of a sentence fragment like "any help..." does not help us help you. We need to know what you're asking in order to help you. Please read the Stack Overflow help documents and apply that knowledge to your question: stackoverflow.com/help/how-to-askKyle Delaney

2 Answers

0
votes

I'm not 100% sure your question because nothing in the adaptive card really relates to LUIS. That said, you must specify a unique id for "remember me" toggle - the current null value won't work.

I'd also recommend the adaptivecards.io designer as a place to validate your cards. adaptivecards.io/designer

0
votes

Thanks for the suggestions, didn´t read before https://blog.botframework.com/2019/07/02/using-adaptive-cards-with-the-microsoft-bot-framework/ were the problem between action submit and data is better specified.

    {
      "type": "ColumnSet",
      "columns": [
        {
          "type": "Column",
          "width": 2,
          "items": [
            {
              "type": "TextBlock",
              "text": "Einloggen",
              "weight": "Bolder",
              "size": "Medium"
            },
            {
              "type": "Input.Text",
              "id": "myName",
              "title": "user",
              "placeholder": "Benutzername oder email"
            },
            {
              "type": "Input.Text",
              "id": "myEmail",
              "title": "myEmail",
              "placeholder": "Passwort"

            }

          ]
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "title": "Submit",
      "data": {
        "myName": true,
        "myEmail": true
      }
    }


  ] }