We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lex can take control of slot filling and uses the following values:
I would expect the following values to be available from this.$input.nlu:
nluData.resolved = response.interpretations[0]; nluData.matches = response.interpretations; nluData.messages = response.messages; nluData.sessionState = response.sessionState;
That way they can be used in an intent like this:
BookHotel() { const resolved = this.$input.nlu?.resolved as any; if (resolved.intent.state === 'ReadyForFulfillment') { // make api call return this.$send({ message: "The room has been booked!", }); } if (resolved.intent.state === 'Failed') { return this.$send({ message: "No worries. Maybe next time.", }); } // intent.state equals 'InProgress' const messages = this.$input.nlu?.messages as any[]; const output: OutputTemplate = { message: messages[0].content, }; const quickReplies: {[key: string]: any} = { RoomType: ['king', 'queen', 'deluxe'] }; const sessionState = this.$input.nlu?.sessionState as any; if (sessionState.dialogAction.type === 'ElicitSlot') { const slotToElicit:string = sessionState.dialogAction.slotToElicit; if (quickReplies[slotToElicit]) { output.quickReplies = quickReplies[slotToElicit]; } } return this.$send(output); }
There is currently no way to access:
No error
The text was updated successfully, but these errors were encountered:
✨ Optimize LexSlu jovotech#1282 and expand NLU data jovotech#1283
a65f821
🔀 Merge pull request #1332 from rmtuckerphx/v4/feature/optimize-slu
2d024c7
✨ Optimize LexSlu #1282 and expand NLU data #1283 #1331
Thank you @rmtuckerphx! Your PR was merged and released today
Sorry, something went wrong.
f39dbca
No branches or pull requests
I'm submitting a...
Lex can take control of slot filling and uses the following values:
Expected Behavior
I would expect the following values to be available from this.$input.nlu:
That way they can be used in an intent like this:
Current Behavior
There is currently no way to access:
Error Log
No error
Your Environment
The text was updated successfully, but these errors were encountered: