aws-lex-web-ui
aws-lex-web-ui copied to clipboard
Adding a persistent "Contact Live Agent" button
Hi.
I was thinking of adding a persistent / permanent button above the text input field. The idea is for it to be a "Contact Live Agent" button that will redirect to a link when clicked. Is there a way to do this? And if there is, what file should I put this in?
Hope you can help me.
Thanks
That's a great idea, but probably not trivial to implement unless you are a Vue programmer. But if you wanted you could re-purpose the existing 'help' button for that.. When you install lex-web-ui you can choose which utterance gets sent when you click the Help buttton on the title bar (?) so you could make it send the 'Contact Agent' utterance instead of Help. Other folks might have additional suggestions.
Hi rstrahan,
Thanks for that really nice suggestion. Might result to that if there's no better way to do it.
Really appreciate it
In addition to that in lex-web-ui.min.js you can change the help icon to a button a provide a destination link to it through href also you can modify the buttons as per your need. just change v-icons to v-btn for the components you want to change, add href attribute as a key and pass the link as a value in it.