export default async function run({execution_id, input, data}) {
const SurName = data["{{1.body.Surname}}"];
const Name = data["{{1.body.Name}}"];
const FullName = Name +' '+ SurName;
const Email = data["{{1.body.Email}}"];
const LastAction = data["{{1.body.LastAction}}"];
const message = \`Hi, ${FullName}! The last time you visited Latenode ${LastAction}.\`;
const resultRawJSON = JSON.stringify({
"from_email": "[email protected]",
"to": Email,
"subject": "Latenode",
"text": message,
});
return {
resultRawJSON
}
}