Automate Workflow Tasks
Actions.do allows you to encapsulate any operational task, from sending emails to processing payments, as a reusable and versioned unit within your automated workflows.
actions.do
import { Action } from 'actions.do'; const sendEmailAction = new Action({ name: 'Send Confirmation Email', description: 'Sends a confirmation email to the customer', handler: async ({ customer, order }) => { // Implementation details const result = await sendEmail({ to: customer.email, subject: 'Order Confirmation', template: 'order-confirmation', data: { customer, order } }); return { success: true, messageId: result.id }; } });