BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

Declare @ ml <entityname> or is it not needed anymore?

Open adrwh opened this issue 1 year ago • 1 comments

I have done some tests creating custom entities using @ ml <entityname> and not using it. Both work, so is it better to declare the @ ml <entityname> or is it not needed?

I have two triggers setup, NameA and NameB. As you see below, I have declared the @ ml nameB statement for trigger NameB but not for trigger NameA.

User Input/Utterances

# NameA
- triggerA {nameA1 = andrew}
- triggerA {@ nameA2 = andrew}
- triggerA {@nameA3 = andrew}

# NameB
- triggerB {nameB1 = andrew}
- triggerB {@ nameB2 = andrew}
- triggerB {@nameB3 = andrew}

@ ml nameB

I have added the Send a response action and sent the values stored in the @nameA[1,2,3] and @nameB[1,2,3] entities. Upon running the bot, and triggering both intents, the @nameA[1,2,3] and @nameB[1,2,3] are both stored correctly.

Screen Shot 2022-08-02 at 5 31 30 PM Screen Shot 2022-08-02 at 5 31 38 PM

Is adding the @ ml <entityname> no longer relevant?

adrwh avatar Aug 02 '22 21:08 adrwh

hi @adrwh

If it's going to be very simple/basic as you have it above, then no. You don't need it.

If you are going to be using stuff like roles/features, then yes. https://docs.microsoft.com/en-us/azure/bot-service/file-format/bot-builder-lu-file-format?view=azure-bot-service-4.0#entity-definitions

dmvtech avatar Aug 05 '22 16:08 dmvtech

Closing as answered.

dmvtech avatar Aug 15 '22 16:08 dmvtech