Input Database
π― Purposeβ
The Input Database node connects workflows to your organizationβs databases. It retrieves data from tables and makes it available for automation, AI processing, and downstream nodes. Use it to pull customer records, transactions, inventory levels, HR data, or any structured business information.
π€ Outputsβ
- Retrieved database rows (structured data).
- Metadata about selected database, table, and applied filters.
βοΈ Parametersβ
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Database | Dropdown | Yes | None | Select the database connection. |
| Table | Dropdown (searchable) | Yes | None | Select the target table within the chosen database. |
| Column | Data Grid | No | Empty | Configure column purposes: Input (use), Predict (analyze), Ignore (skip). |
| Filter | String | No | Empty | SQL-style filter condition (e.g., status = 'active'). |
| Limit | Number | No | 0 | Maximum number of rows to retrieve (0 = no limit). |
| Sort | String | No | Empty | Sort order (e.g., created_date DESC). |
| Disable Cache | Boolean | No | false | Disable caching to always fetch fresh data. |
| Manual Order | Number | No | 1 | Processing order when multiple Input Database nodes exist. |
π‘ Example Usageβ
- π Customer Service: Query the
customer_accountstable with filterstatus='active'to preload customer info for support requests. - π Sales Leads: Retrieve new leads (
lead_date > '2024-01-01'), markrevenue_potentialas Predict, and sort by company size. - π¦ Inventory Management: Pull low-stock items (
current_stock < minimum_threshold) and trigger reorder workflows. - π₯ Healthcare Records: Fetch upcoming appointments by filtering
appointment_date >= TODAY(). - π³ Fraud Detection: Load recent transactions, marking
amountandtimestampcolumns for Predict analysis.
π Best Practicesβ
- Use filters and limits to reduce query size and improve performance.
- Only set relevant columns as Input or Predict to minimize unnecessary data.
- Disable cache for real-time data (e.g., stock levels, transactions).
- Use manual order to sequence multiple Input Database nodes.
- Document filter and sort logic for maintainability.
π§ͺ Test Casesβ
- Given: Filter =
created_date > '2024-01-01'β Expected: Only recent records retrieved. - Given: Limit =
50β Expected: First 50 rows returned in specified sort order. - Given: Column
amountset to Predict β Expected: Value available for downstream forecasting.