await app.template.create({
name: "utility_test_1",
category: 'UTILITY',
language: 'en_US',
components: [
{
type: "BODY",
text: "Thank you for your order, {{1}}! Your confirmation number is {{2}}. If you have any questions, please use the buttons below to contact support. Thank you for being a customer!",
example: {
body_text: [
["Pablo", "860198-230332"]
]
}
},
{
type: "BUTTONS",
buttons: [
{
type: 'PHONE_NUMBER',
text: "Call",
phone_number: "2348179803743"
},
{
type: 'URL',
text: "Contact Support",
url: "https://www.luckyshrub.com/support"
}
]
}
]
});
Sending a Template
To send a template message, use the following code:
These examples should help you get started with the Waabot SDK for Node.js. For more information, please refer to the official documentation at npmjs.com/package/waabot-v2-sdk.