Webchat icon indicating copy to clipboard operation
Webchat copied to clipboard

Support clickable url

Open janteuni opened this issue 7 years ago • 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.

janteuni avatar Oct 14 '18 17:10 janteuni

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

CometS1 avatar Oct 14 '18 18:10 CometS1

Hello :)

@OlivierNguyen Can you help ?

janteuni avatar Oct 14 '18 19:10 janteuni

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

OlivierNguyen avatar Oct 15 '18 08:10 OlivierNguyen

Where in the code does the app create the messages?

CometS1 avatar Oct 25 '18 14:10 CometS1