Configuring the Flow
Prepare a flow to be launched with an API call.
About this task
This procedure only covers the steps and nodes required to prepare a flow for API invocation. It assumes that you have already created a flow for the purpose you have in mind. See the Getting started with DaVinci and DaVinci Best Practices documentation for more information about building flows. |
Steps
-
Click the Flows tab.
-
Find the flow and click ... → Edit
-
At the end of the success path, add an HTTP node to send a JSON success response.
-
At the end of any failure paths, add an HTTP node to send a JSON error response.
-
Optional: If you want to pass parameters to the flow as part of the invocation, add them to the input schema.
-
Click Input Schema.
-
Click Add to add a new parameter.
-
In the Parameter Name field, enter a name for the input parameter.
-
Optional: In the Description field, enter a description for the input parameter.
-
In the Data Type list, select a data type for the input parameter.
-
Select Required if the parameter is required for the flow.
-
Optional: Repeat steps b-f to add additional parameters.
-
Click Save.
-
-
Click Save.
-
Click Deploy.