UI + UX AI And Automation UX emerging

Editable AI output

Provide an editor for generated drafts that tracks generated and user-edited content separately, preserves or invalidates source mappings explicitly, supports accept and reject controls, saves drafts, gates apply when review is required, and offers undo or regeneration paths that do not overwrite manual work without warning.

Decision first

Choose this pattern when the problem matches

Use when

  • Generated content is expected to be revised before it is copied, saved, sent, published, or applied.
  • Evidence, citations, source grounding, tool outputs, review status, safety, or compliance can change when users edit the output.
  • Users need to keep the generated baseline and manual edits recoverable.
  • The product can track source mapping and review state at claim, paragraph, or selected-range level.

Avoid when

  • Users only need to write or revise the request before generation.
  • The content is an ordinary record field with no AI provenance or citation state.
  • Generated output is read-only, ephemeral, or never used as a durable artifact.
  • The system cannot determine whether edited claims are still supported and cannot show a review requirement.
  • Regeneration is the only supported correction path and manual edits are intentionally disallowed.

Problem it prevents

Generated output often needs human revision before use, but ordinary editing can erase provenance, hide which claims were generated or user edited, break citations, obscure unsafe or unsupported edits, and make it unclear whether the final output was reviewed before being applied.

Pattern anatomy

What a strong implementation has to make clear

User need

An AI system has produced text, table content, code, message copy, policy analysis, customer response, document summary, or another draft artifact.

Pattern promise

Provide an editor for generated drafts that tracks generated and user-edited content separately, preserves or invalidates source mappings explicitly, supports accept and reject controls, saves drafts, gates apply when review is required, and offers undo or regeneration paths that do not overwrite manual work without warning.

Required state

Generated draft state with original generated content, creation time, model or run reference, and source coverage visible.

Recovery path

Users cannot tell whether text is generated, user edited, accepted, rejected, or applied.

Access contract

Expose generated draft, user edited, tracked change, unsupported edit, unsafe edit, stale source, review required, accepted, rejected, saved, copied, regenerated, and applied states as text.

Quality bar

The difference between expert and weak execution

Strong implementation

Specific, visible, recoverable

  • A policy assistant shows a generated draft answer with citation chips, user-edited spans, tracked change controls, source mapping indicators, and Apply output disabled until unsupported edits are reviewed.
  • A support reply drafter lets the agent regenerate from a selected edit, restore the original generated version, copy the edited draft, and preserve citations that still map to unchanged claims.
  • A reviewer changes one sentence, sees it marked as user edited, accepts the tracked change, reviews a stale source warning, and applies the output only after unsupported text is resolved.
  • A mobile user opens the source panel from the edited paragraph, sees which citations remain valid, rejects an unsafe edit, and saves the draft for another reviewer.
Weak implementation

Vague, hidden, hard to recover from

  • A final-looking answer becomes editable with no generated-versus-user-edited distinction, no citation preservation state, and no undo to the generated draft.
  • A product rewrites the prompt when users edit the answer, silently regenerates the visible text, and lets the user apply uncited claims without review.
  • A user edits a generated compliance summary and all citations disappear, leaving no way to know which claims remain source-backed.
  • A user taps Regenerate and the system replaces their manual edits without conflict warning or recovery.
UI guidance
  • Render editable AI output as a generated draft with a clear boundary between original generated text, user-edited text, tracked changes, source mapping, citation preservation, and final applied output.
  • Keep source and review affordances visible while editing so users can tell when an edit is supported, unsupported, unsafe, stale, conflicted, or ready to accept, reject, save, copy, regenerate, or apply.
UX guidance
  • Use editable AI output when users need to revise generated content after creation while retaining provenance, citations, source coverage, and a deliberate apply or save contract.
  • Treat manual edits as a change in evidence state: show which source mappings remain valid, which citations need review, which edits are unsupported, and which final actions are blocked until review is complete.
Implementation contract

What the implementation must handle

States

  • Generated draft state with original generated content, creation time, model or run reference, and source coverage visible.
  • User-edited state that marks changed text separately from original generated text.
  • Source mapping state that shows which edited claims still map to citations, retrieved sources, or tool outputs.
  • Citation preservation state for unchanged or still-supported claims.

Interaction

  • The generated draft, user edits, tracked changes, source mappings, citations, review status, and final output state are modeled as distinct data rather than one mutable text blob.
  • Editing text does not silently update the original prompt, erase the generated baseline, or imply that citations still support changed claims.
  • Accept edit commits a tracked user change into the draft while retaining its author and evidence state.
  • Reject edit restores the affected range to the generated draft or previous accepted text.

Accessibility

  • Expose generated draft, user edited, tracked change, unsupported edit, unsafe edit, stale source, review required, accepted, rejected, saved, copied, regenerated, and applied states as text.
  • Do not rely on color, strike-through, highlights, or citation marker shape alone to convey evidence state.
  • Make accept edit, reject edit, apply output, save draft, copy edited, undo to generated, regenerate from edit, and open source controls keyboard reachable.
  • Associate source mapping and citation preservation warnings with the edited text range they describe.

Review

  • Can users tell which text is generated draft, user edited, accepted, rejected, unsupported, unsafe, stale, or ready to apply?
  • What happens to citations and source mappings when users change a factual claim?
  • Can users undo to generated, compare tracked changes, save a draft, copy edited text, and regenerate from an edit without losing work?
  • Which edits block apply output and who can clear review required states?
Interactive lab

Inspect the states before you copy the pattern

Edit generated output without losing provenance

Inspect editable AI output, generated draft, user edited, source mapping, citation preservation, unsupported edit, tracked change, accept edit, reject edit, apply output, save draft, undo to generated, regenerate from edit, stale source, unsafe edit, review required, partial edit, conflict edit, mobile editor, copy edited, and compare editable-looking-final, lost-citations, silent-rewrite, apply-without-review, raw-prompt-edit, no-undo, and source-drift failures.

Editable AI output
Interactive demo is ready

Launch the live UI/UX lab when you want to inspect states, keyboard behavior, and common failure modes.

State To Inspect

Generated draft state with original generated content, creation time, model or run reference, and source coverage visible.

Keyboard / Access

Tab reaches the editor, source mapping controls, tracked change controls, review warnings, save draft, copy edited, undo to generated, regenerate from edit, and apply output in a predictable order.

Avoid Generating

Letting users edit a final-looking AI answer without generated-versus-user-edited status.

Evidence trail

Source-backed claims behind this guidance

OpenAI File search guide

OpenAI - checked

Supports claim annotations and citations that need validation after output edits.

Full agent/debug reference

Problem Context

  • An AI system has produced text, table content, code, message copy, policy analysis, customer response, document summary, or another draft artifact.
  • Users can improve the generated output directly instead of only changing the original prompt.
  • Some generated claims are grounded in citations, retrieved sources, tool outputs, or conversation context that may no longer support the edited text.
  • The final output may be copied, saved, applied to a record, sent to another person, or used in a higher-risk workflow.
  • Reviewers may need to distinguish model-generated content from human-edited content after the edit is complete.

Selection Rules

  • Choose editable AI output when the primary object is generated output after creation and users need to revise, review, save, copy, or apply that output.
  • Use prompt box when users are still composing the request before generation rather than editing the generated result.
  • Use inline edit when the object is an ordinary record field or table value with no generated provenance, source mapping, citation preservation, or regeneration boundary.
  • Use streaming response when users mainly need to monitor partial generated output as it arrives, before the answer has settled into an editable draft.
  • Use citation display when users need claim-level source previews; editable AI output should link edited claims to citation display when claims are source-backed.
  • Use source grounding display when the task is whole-answer evidence coverage rather than editing one draft.
  • Show generated draft, user edited, source mapping, citation preservation, unsupported edit, tracked change, stale source, unsafe edit, review required, and conflict edit states before apply.
  • Require deliberate accept edit, reject edit, save draft, copy edited, undo to generated, regenerate from edit, and apply output actions with clear consequences.
  • Do not make the generated answer look final while silently accepting edits, dropping citations, rewriting the prompt, or applying output without review.
  • Do not let regeneration overwrite manual edits unless the user can compare, keep, discard, or recover the edited version.

Required States

  • Generated draft state with original generated content, creation time, model or run reference, and source coverage visible.
  • User-edited state that marks changed text separately from original generated text.
  • Source mapping state that shows which edited claims still map to citations, retrieved sources, or tool outputs.
  • Citation preservation state for unchanged or still-supported claims.
  • Unsupported edit, unsafe edit, stale source, and source drift warning states.
  • Tracked change state with accept edit and reject edit controls.
  • Review required state that blocks apply output until unsupported, unsafe, or stale content is resolved.
  • Partial edit and selected-range edit states for revising only part of a generated answer.
  • Conflict edit state when regeneration, collaboration, policy update, or source refresh conflicts with manual edits.
  • Save draft, copy edited, undo to generated, regenerate from edit, and apply output states.
  • Mobile editor state that preserves source access, review status, edit actions, and final apply controls in constrained space.

Interaction Contract

  • The generated draft, user edits, tracked changes, source mappings, citations, review status, and final output state are modeled as distinct data rather than one mutable text blob.
  • Editing text does not silently update the original prompt, erase the generated baseline, or imply that citations still support changed claims.
  • Accept edit commits a tracked user change into the draft while retaining its author and evidence state.
  • Reject edit restores the affected range to the generated draft or previous accepted text.
  • Undo to generated restores the original generated version or a selected range without deleting saved versions.
  • Regenerate from edit uses the current accepted draft as context and warns when regeneration may conflict with manual edits.
  • Apply output is unavailable or blocked when unresolved unsupported edits, unsafe edits, stale sources, or conflicts remain.
  • Copy edited and save draft preserve visible review warnings or metadata when the destination requires provenance.
  • Source mapping opens the relevant citation, source grounding, tool output, or evidence panel for the edited claim.

Implementation Checklist

  • Store generated baseline text, edited draft text, selected ranges, tracked changes, author, timestamp, source mappings, citation IDs, review status, and apply state separately.
  • Represent unsupported, unsafe, stale, conflicted, accepted, rejected, copied, saved, regenerated, and applied states as explicit values.
  • Keep citation preservation logic claim-aware so unchanged claims keep citations and changed claims require revalidation.
  • Connect edited claims to citation display, source grounding display, tool-use visibility, and audit records where those are the actual evidence surfaces.
  • Require review before apply when an edit changes factual claims, removes qualifying language, changes numerical values, or alters policy-sensitive text.
  • Add compare controls for generated draft versus edited draft and for edited draft versus regenerated output.
  • Protect manual edits from accidental overwrite by regeneration, source refresh, collaboration updates, browser back, or mobile navigation.
  • Test long generated text, selected-range edits, pasted content, citation deletion, unsupported claims, stale source warnings, review gating, keyboard editing, screen reader status, copy behavior, and mobile wrapping.

Common Generated-UI Mistakes

  • Letting users edit a final-looking AI answer without generated-versus-user-edited status.
  • Dropping all citations when one paragraph is edited.
  • Preserving citation markers on claims that no longer match the cited source.
  • Treating answer editing as prompt editing and hiding the generated baseline.
  • Allowing apply output before unsupported edits, unsafe changes, stale sources, or conflicts are reviewed.
  • Regenerating over manual edits without compare, warning, version recovery, or undo.
  • Using ordinary inline edit for generated content that needs provenance and source review.

Critique Questions

  • Can users tell which text is generated draft, user edited, accepted, rejected, unsupported, unsafe, stale, or ready to apply?
  • What happens to citations and source mappings when users change a factual claim?
  • Can users undo to generated, compare tracked changes, save a draft, copy edited text, and regenerate from an edit without losing work?
  • Which edits block apply output and who can clear review required states?
  • Does the surface explain when a source is stale, permission-limited, or no longer supports an edited claim?
  • Would prompt box, inline edit, streaming response, citation display, or source grounding display better match the task?
Accessibility
  • Expose generated draft, user edited, tracked change, unsupported edit, unsafe edit, stale source, review required, accepted, rejected, saved, copied, regenerated, and applied states as text.
  • Do not rely on color, strike-through, highlights, or citation marker shape alone to convey evidence state.
  • Make accept edit, reject edit, apply output, save draft, copy edited, undo to generated, regenerate from edit, and open source controls keyboard reachable.
  • Associate source mapping and citation preservation warnings with the edited text range they describe.
  • Announce review required, stale source, unsupported edit, unsafe edit, conflict edit, save, copy, regenerate, and apply status changes without moving focus unexpectedly.
  • Ensure long generated paragraphs, citation labels, tracked change comments, conflict messages, and source titles wrap at mobile widths and high zoom.
Keyboard Behavior
  • Tab reaches the editor, source mapping controls, tracked change controls, review warnings, save draft, copy edited, undo to generated, regenerate from edit, and apply output in a predictable order.
  • Standard text editing shortcuts work inside the draft without triggering prompt send, regeneration, or apply output.
  • Enter and Space activate accept edit, reject edit, open source, save draft, copy edited, regenerate from edit, and apply output buttons according to native behavior.
  • Escape closes source panels or review popovers and returns focus to the edited range or invoking control.
  • After accepting, rejecting, saving, copying, regenerating, or applying, focus remains near the affected draft range or action status.
  • Keyboard users can move from an edited claim to its citation display or source grounding display and back.
Variants
  • Editable answer draft
  • Editable AI summary
  • Editable generated message
  • Source-aware draft editor
  • Tracked-change AI draft
  • Citation-preserving AI editor
  • Regenerate-from-edit editor
  • Review-gated generated output
  • Mobile AI draft editor
  • Editable generated table cell

Verification

Last verified: