prufa_create_flow
Compile a plain-language test case into a reviewable draft flow spec. Define steps, detect variables, and prepare the test for confirmation without executing.
Instructions
Compile a plain-language test case into a reviewable DRAFT flow spec. Pass the target url and a plain-text test_case (e.g. 'log in, add the first product to the cart, and check out'); optionally a name. Returns a 201 draft: the compiled step spec plus any {{VARIABLES}} it detected (logins, coupon codes) and a review instruction. The flow does NOT run yet — review the draft, then call prufa_confirm_flow. Only confirmed flows run. Idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| name | No | Optional flow name. | |
| test_case | Yes | Plain-language description of the test to run. | |
| idempotency_key | No | Optional. Replays of the same key within 24h return the original response without re-executing — pass one to make retries safe. Omitted: a fresh key is generated, so each call executes. |