SMS integration

Hello,

I am trying to integrate the Fast2SMS with ERPNext using SMS Settings. I am able to send the SMS but the problem is I am not able to fetch the dynamic values.
For eg, I am sending the message to the lead named Foram so the template is “Hello {“var”}, can we have a meeting?” where var = Foram that must be fetched directly from the lead document.

Thanks in advance