Steps
Steps are the actions your tool performs to generate it’s output. They run one after the other.
Adding steps
Click the "Add Step" button to insert a new action in your tool's workflow.
Naming steps
Give each step a descriptive name for easy reference.
Referencing steps
Use variables to reference outputs from previous steps in subsequent actions.
Running steps
Test individual steps to ensure they're working correctly.
Moving steps up or down
Rearrange the order of steps by moving them within the workflow.
Duplicating steps
Copy existing steps to create similar actions quickly.
Advanced options and controls
In the Tool Builder, each step in your workflow can be fine-tuned using advanced options. These options provide greater control over how your tool operates and processes data. To access these features, look for the three-dotted line icon in the top right corner of any step.
Re-run steps up to here
This feature allows you to re-execute all steps up to a specified point in your tool's workflow.
Select "Re-run steps up to here" from the options menu of the desired step.
The tool will reprocess all steps from the beginning up to and including the selected step.
Use cases:
- Testing changes: after modifying an earlier step, quickly see how it affects subsequent steps.
- Debugging: identify where issues might be occurring in your workflow.
- Impact analysis: figure out how changes in one step influence the rest of your tool.
Add conditions to run
Conditional logic allows you to create dynamic workflows where steps are executed based on specific criteria.
Select "Add conditions to run" from the step options. Define your condition using available variables and operators, and specify the action to be taken if the condition is met.
For example, you might set a condition like "If sentiment_score > 0.5, then run this step." This could be used in a customer feedback tool to trigger different actions based on the sentiment of the input.
By implementing conditions, you can create more sophisticated and responsive tools that adapt to different scenarios automatically.
Enable for each loops
For each loops allow a step or series of steps to be repeated for every item in a list or array.
Choose "Enable for each loops" from the step options, then select the list to iterate over. This can be:
- A predefined list you provide.
- A variable containing a list (e.g., results from a previous step).
To picture this in action, imagine you have a Google search step that generates a list of URLs. You could then use a for each loop to process each URL individually in subsequent steps, perhaps to extract content or analyze each webpage.