Pega Messaging - Link is not Working as expected in Chatbot

@Amit_Patel Hi,

My requirement is to display a text as a Placeholder of a link in chatbot. On click of that we should load the respective URL. We tried to use tag in question rule but it is not working as expected.

Chatbot Link Issue.png

Hello @AKRAMKHANM, @Amit_Patel, tags are not needed in Web Messaging - you can enter your URL with a label as “your text here your link label here

link sample.png

Please let me know if this does not fully address how you are looking to display?

Kind regards,

​​​​

Hi @MireilleDallaire I have tried your approach still it is not coming as expected. The expected behaviour is the one which you have shared.

@MireilleDallaire Any update on this?

@AKRAMKHANM is the link format displaying correctly to the customer in your Web Messaging chat connection?

The preview console in your channel interface will display it differently.

Kind regards,

Mireille

@MireilleDallaire Hi Mireille, we are facing the same behavior/issue. If we configure both a paragraph or a new text with links, we have not a single message with the text alias for the hyperlink but several different messages, one with the first part of the paragraph (the one before the hyperlink), then a new message with the link (as posted above) then another part of the paragraph (the one after the hyperlink).

Is it intended to work like this?

Vince

Hi add also this: the preview console seems to work fine, but it is still not working on the client side

Hi @Vicio.Pi , that message splitting is not intended and it looks like there could be < a > or href tag in that response. Are you able to switch to markup view / source only mode to look for embedded tags? URLs should be included with only http…, no a or href tags.

Kind regards,

@MireilleDallaire Yes, we have an anchor tag. However, if we remove the anchor tag, is there a way to display a link label without exposing the full URL to the end user? We have noticed that your previous suggestion works within the preview console but not outside that.

Thanks @Vicio.Pi , the URL should automatically be replaced by your label, without a tags. Are you entering the label in square brackets and the URL in parentheses like this example? linklabel

Could you please share with me the code view of that response as well as how it shows in Web Messaging customer side?

Much appreciated,