Need for sending font in BOLD through app.yellow.ai platform

Dear all,

We are trying to display details of funds for one of our client in WhatsApp BOT. While sending details to WhatsApp using * for reflecting fonts in bold, we are getting text as is with *. Hence we directly copy pasted bold text in function but its reflecting different font family. Appreciate quick help on it. Sharing below code snippet.
Note: The details we are sending to WhatsApp, that is developed in function.

Code:
if (paymentdetailsapi.InitialContributionPendingAmt == 0) {
await app.sendTextMessage(๐…๐ฎ๐ง๐ ๐‚๐จ๐ฆ๐ฆ๐ข๐ญ๐ฆ๐ž๐ง๐ญ : โ‚น ${res_new}\n๐ˆ๐ง๐ข๐ญ๐ข๐š๐ฅ ๐‚๐จ๐ง๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ข๐จ๐ง ๐‘๐ž๐œ๐ž๐ข๐ฏ๐ž๐ : โ‚น ${res_new1}\n๐ˆ๐ง๐ข๐ญ๐ข๐š๐ฅ ๐‚๐จ๐ง๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ข๐จ๐ง ๐๐š๐ฒ๐š๐›๐ฅ๐ž : โ‚น ${res_new2});
return resolve()
}

if (url == 1 && bankdetails==0 ) {

    await app.sendTextMessage(`๐…๐ฎ๐ง๐ ๐‚๐จ๐ฆ๐ฆ๐ข๐ญ๐ฆ๐ž๐ง๐ญ : โ‚น ${res_new}\n๐ˆ๐ง๐ข๐ญ๐ข๐š๐ฅ ๐‚๐จ๐ง๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ข๐จ๐ง ๐‘๐ž๐œ๐ž๐ข๐ฏ๐ž๐ : โ‚น ${res_new1}\n๐ˆ๐ง๐ข๐ญ๐ข๐š๐ฅ ๐‚๐จ๐ง๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ข๐จ๐ง ๐๐š๐ฒ๐š๐›๐ฅ๐ž : โ‚น ${res_new2}\n\n๐๐š๐ฒ๐ฆ๐ž๐ง๐ญ ๐Ž๐ฉ๐ญ๐ข๐จ๐ง๐ฌ\n๐Ÿ. ๐๐š๐ฒ๐ฆ๐ž๐ง๐ญ ๐‹๐ข๐ง๐ค : ${paymentdetailsapi.PaymentOption.linkDetails[0].PaymentLink}`);

}
else{
    await app.sendTextMessage(`๐…๐ฎ๐ง๐ ๐‚๐จ๐ฆ๐ฆ๐ข๐ญ๐ฆ๐ž๐ง๐ญ : โ‚น ${res_new}\n๐ˆ๐ง๐ข๐ญ๐ข๐š๐ฅ ๐‚๐จ๐ง๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ข๐จ๐ง ๐‘๐ž๐œ๐ž๐ข๐ฏ๐ž๐ : โ‚น ${res_new1}\n๐ˆ๐ง๐ข๐ญ๐ข๐š๐ฅ ๐‚๐จ๐ง๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ข๐จ๐ง ๐๐š๐ฒ๐š๐›๐ฅ๐ž : โ‚น ${res_new2}\n\n๐๐š๐ฒ๐ฆ๐ž๐ง๐ญ ๐Ž๐ฉ๐ญ๐ข๐จ๐ง๐ฌ\n๐Ÿ. ๐๐š๐ฒ๐ฆ๐ž๐ง๐ญ ๐‹๐ข๐ง๐ค : ${paymentdetailsapi.PaymentOption.linkDetails[0].PaymentLink}\n\n๐Ÿ. ๐๐š๐ง๐ค ๐€๐œ๐œ๐จ๐ฎ๐ง๐ญ ๐ƒ๐ž๐ญ๐š๐ข๐ฅ๐ฌ\n๐•๐ข๐ซ๐ญ๐ฎ๐š๐ฅ ๐€๐œ๐œ๐จ๐ฎ๐ง๐ญ ๐o : ${paymentdetailsapi.PaymentOption.vanDetails[0].AccountNo}\n๐๐š๐ง๐ค ๐๐š๐ฆ๐ž : ${paymentdetailsapi.PaymentOption.vanDetails[0].BankName}\n๐ˆ๐…๐’๐‚ : ${paymentdetailsapi.PaymentOption.vanDetails[0].IfscCode}\n๐๐ž๐ง๐ž๐Ÿ๐ข๐œ๐ข๐š๐ซ๐ฒ ๐๐š๐ฆ๐ž : ${paymentdetailsapi.PaymentOption.vanDetails[0].BeneficiaryName}`);

}

Greetings Javed,

To ensure the text is bold, the beginning and the end of the text(which needs to be in bold) need to in *.

For eg: To bold the text: WhatsApp the syntax will be * text * without space(showing it with space here as itโ€™s rendering as italics in this tool).

2 Likes

@Saurabh_Kumar We have tried this but itโ€™s not working. The text which needs to be display on whatsapp, we are passing it through app.yellow.ai platform function. I have already shared a code snippet as well.

Greetings Javed,

Can you help us provide a screenshot of the code used and also check if you are experiencing the same behaviour on WhatsApp mobile as well.

  • and tag is working inside code and issue got resolved. Team is applying at everywhere. Thank you.
2 Likes