Skip to main content

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​

NameTypeRequiredDefaultDescription
DatabaseDropdownYesNoneSelect the database connection.
TableDropdown (searchable)YesNoneSelect the target table within the chosen database.
ColumnData GridNoEmptyConfigure column purposes: Input (use), Predict (analyze), Ignore (skip).
FilterStringNoEmptySQL-style filter condition (e.g., status = 'active').
LimitNumberNo0Maximum number of rows to retrieve (0 = no limit).
SortStringNoEmptySort order (e.g., created_date DESC).
Disable CacheBooleanNofalseDisable caching to always fetch fresh data.
Manual OrderNumberNo1Processing order when multiple Input Database nodes exist.

πŸ’‘ Example Usage​

  • πŸ“ž Customer Service: Query the customer_accounts table with filter status='active' to preload customer info for support requests.
  • πŸ“ˆ Sales Leads: Retrieve new leads (lead_date > '2024-01-01'), mark revenue_potential as 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 amount and timestamp columns 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 amount set to Predict β†’ Expected: Value available for downstream forecasting.