Search code examples
botframework

Bot Framework - Display User's intent


Trying to figure out how I can take the intent from LUIS and insert it into the response from the bot. I cannot seem to find the variable/path to this value. I've tried:

#intentName
turn.recognized.intents.intentName
luisResult.intents[0]

The docs are not helping since it just shows java classes, doesn't directly translate to the Composer app afaik.


Solution

  • You can pull the first intent via the following adaptive expression:

    ${foreach(turn.recognized.intents, x, x.key)[0]}