๐Ÿ”ฌ Dynamic search interface with Elasticsearch and automated report generation

โšก 841 views ยท ๐Ÿ”ฌ Document Extraction & Analysis

Description

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:

๐Ÿ› ๏ธ Setup requirements

Prerequisites

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 bank_transactions index should contain documents with these fields:

{
  "transaction_id": "TXN_123456789",
  "customer_id": "CUST_000001", 
  "amount": 5000,
  "merchant_category": "grocery_net",
  "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

2. Elasticsearch Configuration

3. File Storage

4. Report Formatting

๐Ÿš€ 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:

๐Ÿ“Š Sample Output

Text Report Format:

DATA ANALYSIS REPORT
====================

Search Criteria:
- Minimum Amount: $10000
- Time Range: Last 24 Hours  
- Customer: All

Results: 3 transactions found

TRANSACTIONS:
=============

1. Transaction ID: TXN_123456789
   Customer: CUST_000001
   Amount: $15000
   Merchant: grocery_net
   Time: 2025-08-10T15:30:00Z

CSV Export Format:

Transaction_ID,Customer_ID,Amount,Merchant_Category,Timestamp
"TXN_123456789","CUST_000001",15000,"grocery_net","2025-08-10T15:30:00Z"

๐Ÿ”ง Customization ideas

Enhanced Analytics Features:

Advanced Search Capabilities:

Integration Options:

Report Enhancements:

๐Ÿท๏ธ Tags

elasticsearch, data-search, reporting, analytics, automation, business-intelligence, data-processing, csv-export

๐Ÿ“ˆ Use cases

โš ๏ธ Important notes

Security Considerations:

Performance Tips:

Data Management:


This template provides a production-ready data search and reporting system that can be easily customized for various data analysis needs. The modular design allows for incremental enhancements while maintaining core search and reporting functionality.

๐Ÿ”— Nodes Used

HTTP Request, n8n Form Trigger, Read/Write Files from Disk

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup