Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
Labb Consulting
GB
Last activity: 28 Jan 2025 9:21 EST
How to send HTML in Digital Messaging client channel API
I am looking to be able to send richer content through the client channel API when utilising a chat bot.
By default, it appears that all HTML content setup in a paragraph rule is stripped out when the chat bot responds on the client channel API - I would like to be able to provide some simpler tags such as formatting, links and lists.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 21 Jul 2024 15:52 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689988000/5685ff61-ed8f-4527-9148-468abb12a342.jpg?itok=eNJT3gBV)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689988000/5685ff61-ed8f-4527-9148-468abb12a342.jpg?itok=eNJT3gBV)
LTIMindtree
IN
@Phill99J Try checking pyGenericTemplate DT . you can modify it as per your requirement.
Also try to see the Digital message configuration.
you can also check mixins.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2025-01/ed367f4c-2f6a-469f-aa42-351a5040c2f6.jpg?h=5df8b6ee&itok=tYc6HMZv)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2025-01/ed367f4c-2f6a-469f-aa42-351a5040c2f6.jpg?h=5df8b6ee&itok=tYc6HMZv)
Pegasystems Inc.
CA
I hope you can use Pega Push to send the links. Please find the document below to configure Page Push.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
Labb Consulting
GB
@RameshSangili Hi, I am specifically looking for chat bot messages, not pushing content as CSR's. Thanks
Accepted Solution
Updated: 21 Jul 2024 15:52 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689988000/5685ff61-ed8f-4527-9148-468abb12a342.jpg?itok=eNJT3gBV)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689988000/5685ff61-ed8f-4527-9148-468abb12a342.jpg?itok=eNJT3gBV)
LTIMindtree
IN
@Phill99J Try checking pyGenericTemplate DT . you can modify it as per your requirement.
Also try to see the Digital message configuration.
you can also check mixins.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
Labb Consulting
GB
@Abhishek Tripathi Hi - thanks for this. The Custom DT approach did the trick - this maintains the captured HTML elements rather than stripping out like text.
Updated: 28 Jan 2025 6:23 EST
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
Labb Consulting
GB
@ShreeramK4150 Hi, you can just include HTML content inside the response properties within the custom DT when creating outbound messages. In theory this could be sourced from anywhere such as Paragraph etc. Please see below quick example.
Content in the example 1.1.1 step is:
"<p>Sample HTML Content<br /> <br /><strong>Test strong</strong><br /> <br /><a href=\"http://www.google.co.uk\" target=\"_blank\">Test URL</a></p>"
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Ford
IN
@Phill99J Thanks for the update. Yes I tried having a simple html like this earlier and it works.
But when I tried to include a more complex html (like a table) it doesn't work. Like the one below,
<table border='1'><tr><th>Header</th></tr><tr><td>Row 1</td></tr><tr><td>Row 2</td></tr><tr><td>Row 3</td></tr></table>
So was just wondering if you tried embedding a table or something similar.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689874000/e2209ab9-b4ec-48ad-b582-485301a54d9e.jpg?itok=cqC7_-Ji)
Labb Consulting
GB
@ShreeramK4150 Not personally - best to open a new, unsolved question and see if anyone has.