Dynamic search interface with Elasticsearch and automated report generation
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (4)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Read/Write Files from Disk
n8n-nodes-base.readWriteFile
What it does
Dynamic Search Interface with Elasticsearch and Automated Report Generation π― What this workflow does This template creates a comprehensive data search and reporting system that allows users to query large datasets through an intuitive web form interface. The system performs real-time searches against Elasticsearch, processes results, and automatically generates structured reports in multiple formats for data analysis and business intelligence. Key Features: - π Interactive web form for dynamic data querying - β‘ Real-time Elasticsearch data retrieval with complex filtering - π Auto-generated reports (Text & CSV formats) with custom formatting - πΎ Automatic file storage system for data persistence - π― Configurable search parameters (amounts, time ranges, entity filters) - π§ Scalable architecture for handling large datasets π οΈ Setup requirements Prerequisites - Elasticsearch cluster running on https://localhost:9220 - Transaction dataset indexed in banktransactions index - Sample dataset: Download from Bank Transaction Dataset - File system access to /tmp/ directory for report storage - HTTP Basic Authentication credentials for Elasticsearch Required Elasticsearch Index Structure This template uses the Bank Transaction Dataset from GitHub: https://github.com/dataminexcode/n8n-workflow/blob/main/Dynamic%20Search%20Interface%20with%20Elasticsearch%20and%20Automated%20Report%20Generation/data You can use this python script for importing the csv file into elasticsearch: Python script for importing data Your banktransactions index should contain documents with these fields: json { "transactionid": "TXN123456789", "customerid": "CUST000001", "amount": 5000, "merchantcategory": "grocerynet", "timestamp": "2025-08-10T15:30:00Z" } Dataset Info: This dataset contains realistic financial transaction data perfect for testing search algorithms and report generation, with over 1 million transaction records including various transaction patterns and data types. Credentials Setup 1. Create HTTP Basic Auth credentials in n8n 2. Configure with your Elasticsearch username/password 3. Assign to the "Search Elasticsearch" node βοΈ Configuration 1. Form Customization - Webhook Path: Update the webhook ID if needed - Form Fields: Modify amounts, time ranges, or add new filters - Validation: Adjust required fields based on your needs 2. Elasticsearch Configuration - URL: Change localhost:9220 to your ES cluster endpoint - Index Name: Update banktransactions to your index name - Query Logic: Modify search criteria in "Build Search Query" node - Result Limit: Adjust the size: 100 parameter for more/fewer results 3. File Storage - Directory: Change /tmp/ to your preferred storage location - Filename Pattern: Modify fraudreportYYYY-MM-DD.{ext} format - Permissions: Ensure n8n has write access to the target directory 4. Report Formatting - CSV Headers: Customize column names in the Format Report node - Text Layout: Modify the report template for your organization - Data Fields: Add/remove transaction fields as needed π How to use For Administrators: 1. Import this workflow template 2. Configure Elasticsearch credentials 3. Activate the workflow 4. Share the webhook URL with data analysts For Data Analysts: 1. Access the search interface via the webhook URL 2. Set parameters: Minimum amount, time range, entity filter 3. Choose format: Text report or CSV export 4. Submit form to generate instant data report 5. Review results in the generated file Sample Use Cases: - Data analysis: Search for transactions > $10,000 in last 24 hours - Entity investigation: Filter all activity for specific customer ID - Pattern analysis: Quick analysis of transaction activity patterns - Business reporting: Generate CSV exports for business intelligence - Dataset testing: Perfect for testing with the transaction dataset π Sample Output Text Report Format: DATA ANALYSIS REPORT ==================== Search Criteria: - Minimum Amount: $10000 - Time Range: Last 24 Hours - C