AI Generate | Leapwork Docs

Artificial Intelligence Generate

The Artificial Intelligence Generate block is designed to generate structured test data from a prompt. Use it to create values such as names, emails, addresses, and other automation-friendly data, and return them in the fields you define in the block.

This block helps you quickly generate consistent, structured values for use in your flows, useful for testing and validating how systems behave with varied but controlled input data.

Note: AI accuracy is not guaranteed, as it relies on probabilities and the daily performance of OpenAI's technology. While we strive to provide the best experience, occasional inaccuracies or errors may occur due to the inherent limitations of the technology itself. For more details, please refer to OpenAI's documentation.

Fully expanded, the AI Generate block shows the following properties:

Note:

Quick-start

  1. Drag AI Generate onto the canvas.
  2. Enter a prompt in Input to specify what kind of data should be generated.
  3. Use Add field to generate to create a field for each parameter you want to generate. Each field must correspond to an item you request in the input.
  4. Connect the green input and output connectors.
  5. Run the flow when it’s ready.

Building block parameters

Parameters

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.