Skip to content
New issue

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

Hidden message from Lex to Lex-web-ui #743

Open
Shubham1500 opened this issue Sep 23, 2024 · 2 comments
Open

Hidden message from Lex to Lex-web-ui #743

Shubham1500 opened this issue Sep 23, 2024 · 2 comments

Comments

@Shubham1500
Copy link

Hi Team,

I am using Lambda to send response to Lex-we-ui.

Is there a property we can set on message so that it doesnt display to user in chat window ?
I tried type=invisible but didn't work. (Although it works when sending message from lex-web-ui to Lex )

@atjohns
Copy link
Contributor

atjohns commented Oct 3, 2024

Apologies for the delayed response. There's no way to explicitly tell the Web UI not to display a message when it comes from Lex, curious what the use case is here? You could try sending the information as part of a session parameter if you need data for something but don't want to display it.

@israelias
Copy link
Contributor

israelias commented Oct 5, 2024

@Shubham1500 In case your setup is node/webpack, here's a reliable approach if fully applied and implemented. Just introduce the global property via sessionAttribute.

In the module that returns a message that should be invisible to the user, add a sessionAttribute property hidden with value true.

Pseudo -> ./lex-web-ui/** actions.js and MessageText.vue, v-show | v-if state.lex.sessionAttributes.hidden != "true"

sessionAttributes persists so always reset hidden for all other modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants