{
workflowTemplateId: 'text-processor',
workflowId: 'text-processor',
workflowName: 'Text Processor',
integrationUids: [],
triggers: [
{
triggerId: crypto.randomUUID(),
type: 'subworkflow' as const,
title: 'Process Text',
description: 'Called by parent to process text chunks',
inputSchema: [
{ key: 'text', type: 'string' },
{ key: 'maxLength', type: 'number' },
{ key: 'executionId', type: 'string' },
{ key: 'executionSecret', type: 'string' },
],
calledBy: ['main-workflow'],
} satisfies SubworkflowTrigger,
],
outputSchema: [],
n8nWorkflowJsonBase64: loadAndEncodeWorkflow(__dirname, 'workflows/text-processor.json'),
cost: 0,
}