Articles in this section

Use a tool step in a flow

A tool step calls a tool — a reusable unit of integration logic built in Tool builder — from inside a flow, so logic that several integrations share is built once and run wherever it's needed. The tool runs as a step like any other: it reports in the run console and run history, and its errors can be retried and resolved from the flow. This article explains how to add a tool step, which step options it supports, how it reports errors, and where to see what it did.

Prerequisites: The tool must exist in the account or be installed from Marketplace; see Create a tool. You need access to the connections the tool uses, or permission to supply your own.

Add a tool step

  1. Go to Build build-icon.png > Flows, open the flow, and then select + add-round-button.png where the tool should run.
  2. Select Add tool.
  3. Enter a name in Name your tool and, optionally, a Description. integrator.io lists pre-built tools whose name or description matches; set Source to My account or Marketplace to narrow the list and Sort by to Similarity score or Date modified, then point to the tool and select Use step.
  4. Review the connections. integrator.io suggests the connections the tool was built with; if you don't have access to one, you're asked to reconfigure it before continuing, and you can override any connection with one of your own.
  5. Select Next, and then map the incoming record to the tool's input; select Mapping mapping-icon.png on the step. See Map data with Mapper 2.0.

The tool's output is available to the steps after it through response mapping, as with an import.

Options a tool step supports

A tool step has the import step's options except Post submit hook and Transformation:

  • Input filter
  • Mapping
  • Pre map hook and Post map hook
  • Response mapping
  • Post response map hook
  • Error handling

For what each option does, see Configure flow step options.

In the step's Preview panel, Preview shows the data the step would send to the tool as input; it doesn't run the tool, and it ignores any mock data configured on the tool's own steps. Send runs the tool with the sample record.

Errors and retries

A tool step handles record errors the way other steps do; see Retry or resolve flow errors.

  • Errors appear in the flow's run console and run history with the tool's name, the sub-step inside the tool that failed, and the error message.
  • Retrying a failed record from the flow resumes the tool at the sub-step that failed; the earlier sub-steps aren't run again. Retries respect the tool's own execution boundaries and error-handling configuration.
  • An error resolves automatically when a later run processes a record with the same trace key.
  • You can resolve errors from the flow, including errors in tool steps and in nested tools — tools that call other tools. For a nested tool, the error table names the sub-step inside the tool that failed.
  • From the error, you can inspect the record that was sent to the tool and the record's state at the point of failure inside the tool.

Run console, run history, and logs

Each sub-step of the tool appears in the run console and run history with its status, duration, and step-level and tool-level statistics, and with any errors, retries, and resolutions, including those of nested tools. Tool sub-steps are shown nested under the tool step so you can tell them from the flow's own steps. A test run shows the same detail; see Debug a flow in test mode.

To trace a single record, expand the tool step in the run's trace view to see the tool's input, output, internal steps, and nested tools, and find where an error happened. Tool logs follow the flow's log level, permissions, and retention; see View flow run logs.