AI Extract

The Artifical Intelligence Extract block is designed to extract specific information from various inputs, making it essential for automating and enhancing the accuracy of testing processes that involve complex and varied data.

It can efficiently sift through large datasets to pinpoint and retrieve relevant data points, which is crucial for validating the functionality and performance of systems that handle diverse data types.

image-20260207-123513.png

Notes:

  • The screenshot on this page uses the Elegance Design, introduced in 2025.3. If you are using an earlier version, your layout may look different.

  • To use this block, cloud blocks must be activated for your tenant in the add-ons section of Customer Portal. Make sure this is enabled before adding the block to your flows.

  • AI accuracy is not guaranteed, as it relies on probabilities and the daily performance of OpenAI’s technology. Occasional inaccuracies may occur due to inherent limitations of the technology. For more details, please refer to OpenAI’s documentation.

Quick-start

  1. Drag AI Extract onto the canvas.

  2. Enter the data source or text in Input.

  3. Use Add field to extract to create one field for each item you want to retrieve (e.g., name, date of birth, ID).

  4. Connect the green input and output connectors.

  5. Run the flow when it’s ready.

Building block parameters

Parameters
  • Block header: The green input connector triggers the block to start executing. The block title (“AI Extract”) can be renamed by double-clicking it and typing a new title.

  • Prompt: The text input the block should extract information from (for example, a description or content produced by your GenAI). This is the source text used for extraction.

  • Fields: The list of field names you want the block to extract from the prompt (for example Name, City, Email). Field names are used as the extraction targets and are also what you reference later in the flow when using the extracted results. These inputs cannot contain any special character.

  • Add field to extract: Adds another field name under Fields, so you can extract multiple values from the same prompt.

  • Default timeout: Controls whether the block uses the flow’s default timeout or a fixed timeout. If the checkbox is not selected, the block uses the timeout value shown in Timeout (sec). If the checkbox is selected, the Default timeout value from the flow settings applies.

  • Timeout (sec): The maximum time spent performing the extraction before giving up. This value is used when Default timeout is not selected.

  • Failed: Triggers if the extraction does not complete successfully within the configured timeout, so you can branch your flow (for example, log the issue, retry, or fail the case).

Resources

Topic

Description

Flows FAQ

Common questions about creating, running, and managing flows in Leapwork.

Flows Troubleshooting

Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.

Customer Portal Add-ons

Customer portal section to activate your cloud blocks.

Guidelines for using AI blocks

Common guidelines for prompting, generating, validating, extracting, and transforming AI-driven test data in Leapwork’s AI Blocks.