How to create a dynamic WhatsApp link with product name?

Hello guys!

Today I was trying to find a solution to create a dynamic text whatsapp link. I mean a whatsapp link which automatically writes something like: “Hello I’m interested in {{ product name }}”.

Is there a way to make it work? Maybe with JS?

Thanks in advance!
Adriano

Yes, it is possible to create a dynamic WhatsApp link that includes information such as the product name using JavaScript. This can be done by using a JavaScript function to construct the link with the desired information and then adding it to the page as a clickable link.

Here is an example of how this could be implemented:

To use this function, you would need to call it and pass the product name as an argument. For example:

Otherwise you create a WhatsApp Business Account - There is an Option for Pre-Selected Answers/Questions when the customer clicks the link