Giter Club home page Giter Club logo

Comments (6)

s-pakker avatar s-pakker commented on May 28, 2024

I am trying to replicate the same functionality of a lex button.

ex:
image
Onlick it posts the text back to the chat.

from aws-lex-web-ui.

bobpskier avatar bobpskier commented on May 28, 2024

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.

s-pakker avatar s-pakker commented on May 28, 2024

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.

bobpskier avatar bobpskier commented on May 28, 2024

@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.

s-pakker avatar s-pakker commented on May 28, 2024

@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.

bobpskier avatar bobpskier commented on May 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.