import { Novu } from "@novu/api";
const novu = new Novu({ secretKey: "<YOUR_SECRET_KEY_HERE>", });
async function run() {
const result = await novu.trigger({
to: {
subscriberId: "subscriber_unique_identifier",
firstName: "Albert",
lastName: "Einstein",
email: "albert@einstein.com",
phone: "+1234567890",
},
workflowId: "workflow_identifier",
payload: {
comment_id: "string",
post: {
text: "string",
},
},
overrides: {
email: {
bcc: "no-reply@novu.co",
},
},
});
}
run();
import { Novu } from "@novu/api";
const novu = new Novu({ secretKey: "<YOUR_SECRET_KEY_HERE>", });
async function run() {
const result = await novu.trigger({
to: {
subscriberId: "subscriber_unique_identifier",
firstName: "Albert",
lastName: "Einstein",
email: "albert@einstein.com",
phone: "+1234567890",
},
workflowId: "workflow_identifier",
payload: {
comment_id: "string",
post: {
text: "string",
},
},
overrides: {
email: {
bcc: "no-reply@novu.co",
},
},
});
}
run();