SAP/Webchat

Support clickable url

janteuni opened this issue · 4 comments

When url are displayed in a text message or other messages type (the button message type also support a little text before buttons), we should have a clickable url.

Example:
message: "Please visit our website for more information here: https://john.doe/faq"

As a user, I should be able to click on the url and open it in a new page.

I would like to work on this. How do you build and host it for testing?

Hello :)

@OlivierNguyen Can you help ?

You will need to run npm run build in the repository and create manually an index.htmlwhere you add this script tag:

<script
    src="../dist/webchat.js"
    channelId="YOUR_CHANNEL_ID"
    token="YOUR_TOKEN"
    id="recast-webchat"
></script>

YOUR_CHANNEL_ID and YOUR_TOKEN can be found in the platform in your bot page -> Connect > Webchat

Where in the code does the app create the messages?