Comments (6)
I am trying to replicate the same functionality of a lex button.
ex:
Onlick it posts the text back to the chat.
from aws-lex-web-ui.
I believe "initialText" is treated as text only at the present time. One could configure an initialUtterance to send to the lex bot and the bot could generate a response with markdown that contains the desired link.
from aws-lex-web-ui.
Thanks for clarifying @bobpskier. In the response from the bot, how do we configure hyperlinks to post a text back to the chat? We did try the markdowns [Account Management] (Account Management) but it doesn't respond as hyperlinks.
Appreciate your help on this!
from aws-lex-web-ui.
@s-pakker The lexwebui will process markdown when supplied as a custom payload or supplied via session attributes via lambda fulfillment handler. See https://github.com/aws-samples/aws-lex-web-ui/tree/master/lex-web-ui#markdown-and-html-support. Response cards can also be used to supply one or more buttons that can be used to send content back to the bot.
from aws-lex-web-ui.
@bobpskier Thanks again. I have a follow-up question related to initialText.
Is there a way to override the initialtext using a lambda hook? I saw an example of site loading the response card (lex buttons) along with the initial text.
https://www.guidedogs.org.uk/getting-support/
from aws-lex-web-ui.
@s-pakker There is no lambda hook to override InitialText. This is provided in the lex-web-ui-loader-config.json response. However, I believe you can set InitialText to an empty string and set WebAppConfBotInitialUtterance to some value (utterance) you want to send to the bot on startup. The intent that matches this utterance could return its own content through a lambda hook wired into lex. This would act as a customized first message from the bot.
from aws-lex-web-ui.
Related Issues (20)
- lex-web-ui not loading in some Chrome Incognito browsers HOT 6
- Chat History HOT 2
- Failed to load resource S3 bucket error HOT 6
- Lex bot is not connecting to UI
- Auto pop up the chat window HOT 4
- I can see the resopnse in network tab when inspect the element. But on chat window it shows only some line HOT 1
- ImageResponseCard not working (with Voice Input) HOT 1
- Transferring to Agent HOT 2
- Lex Web Ui will not read back Custom Payload answers HOT 1
- Several problems with voice HOT 3
- Can we add a static message in bottom of chat window HOT 1
- How to add the Dropdownlist in the ui HOT 1
- Thumbs up and Thumbs down button disappeared after change Lex response to Lambda hook HOT 8
- toolbarLogo & avatarImageUrl in the v0.20.0 template is not working HOT 4
- How to remove console.log's when integrated as Iframe? HOT 9
- Move chatbot widget position and increase size within parent.html HOT 1
- initialText multilanguage and changing language dynamically without click button in the corners HOT 1
- Getting no response on lex Ui bot HOT 4
- Update npm package? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lex-web-ui.