Skip to main content
The Database node executes SQL queries or stored procedures against a configured database connection and stores the results for use in the flow.

Behavior

  • Connects to a pre-configured database using the connection ID
  • Executes parameterized queries to prevent SQL injection
  • Stores results in the configured variable name
  • Routes to Success, Error, or No Results based on the outcome

Configuration

Connection & operation

Parameters

Each entry in the parameters array:

Results

Output handles

Output variables

Example

Look up a customer by account number:
Parameters:

Use cases

After Collect Digits, query the database for the account. On DB.NO_RESULTS, play “Account not found” and retry. On success, greet the customer by name.
Use the insert operation to log call details (caller ID, timestamp, department) into a calls table at the end of the flow.
Set operation to call_procedure to execute complex business logic like credit checks or eligibility verification.