src/templates/README.md
This module provides integration with n8n.io's workflow templates, allowing AI agents to discover and use proven workflow patterns.
npm run fetch:templates
This command will:
npm run test:templates
The following tools are available via MCP:
list_node_templates(nodeTypes, limit) - Find templates using specific nodesget_template(templateId) - Get complete workflow JSONsearch_templates(query, limit) - Search by keywordsget_templates_for_task(task) - Get templates for common tasksai_automation - AI-powered workflowsdata_sync - Database and spreadsheet synchronizationwebhook_processing - Webhook handling workflowsemail_automation - Email processing workflowsslack_integration - Slack bots and notificationsdata_transformation - Data manipulation workflowsfile_processing - File handling workflowsscheduling - Scheduled and recurring tasksapi_integration - External API connectionsdatabase_operations - Database CRUD operationstemplate-fetcher.ts - Handles API communication and rate limitingtemplate-repository.ts - Database operations and queriestemplate-service.ts - Business logic and MCP integrationTemplates are stored in a dedicated table with:
/api/templates/workflows - List all workflows/api/templates/search - Search with pagination/api/templates/workflows/{id} - Get specific workflow/api/templates/search/filters - Available filtersfetch:templates manually when you need fresh templates