Skip to content

Parameters with default values

In Flowtrail AI, parameters can be configured with default values to provide initial inputs for queries when users do not specify their own values. This feature ensures that your queries can run smoothly even without user intervention, offering a seamless and efficient data retrieval process.

Steps to Implement Default Parameters

To set up default values for parameters in Flowtrail AI, follow these steps:

  • Define Parameter: Create your parameter from add parameter option. Here we have created a parameter named status using the select type with predefined values. We make the value 1 as the default value for the parameter. default-paramter

  • Configure Query: Integrate the parameter into your SQL query, ensuring that the default value is effectively used if no user input is provided.

  • Execute Query: Run the query to see the results with the default parameter value. default-paramter-result

By following these steps, you can easily set up default values for parameters in Flowtrail AI, ensuring that your queries run smoothly even without user intervention. This feature enhances the efficiency of your data retrieval process, providing a seamless experience for users.