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, orNo Resultsbased on the outcome
Configuration
Connection & operation
Parameters
Each entry in theparameters array:
Results
Output handles
Output variables
Example
Look up a customer by account number:Use cases
Account verification
Account verification
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.Call logging
Call logging
Use the
insert operation to log call details (caller ID, timestamp, department) into a calls table at the end of the flow.Stored procedure
Stored procedure
Set
operation to call_procedure to execute complex business logic like credit checks or eligibility verification.