Skip to content

Design Split-View Artifact and Canvas Editing Alongside AI Chat

Let users co-edit documents, specs, code, or visual layouts in a persistent workspace panel instead of scrolling through buried chat bubbles.

The button copies the prompt and opens Michał Jaskólski’s LinkedIn profile: paste it into your message to him.

Engineering fluid chat-plus-canvas collaboration

  1. 01

    Apply targeted surgical patches instead of full rewrites

    Stream localized section diffs when a user asks to shorten paragraph three—cutting wait time by 80% and preserving manual user edits elsewhere.

  2. 02

    Support highlight-to-instruct inline selection menus

    Let users select two sentences inside the canvas and trigger ‘make firmer’ or ‘add citation’ directly in place without describing line numbers.

  3. 03

    Maintain lightweight version snapshots on every AI edit

    Give users a visual diff toggle and instant single-click undo so bold AI revisions never accidentally overwrite careful human wording.

  4. 04

    Gracefully collapse dual panes on smartphone viewports

    Use compact artifact preview cards inside the mobile thread that expand into a full-screen bottom sheet for focused reading and export.

How it works in practice

Chat-only frustration

User asks to tweak 1 clause in a 1,500-word draft. Chatbot streams all 1,500 words again over 22 seconds and silently rewrites 3 paragraphs the user already edited.

Artifact canvas interaction

User highlights Clause 4 in right-hand canvas -> types 'cap liability at 12 months fees' -> 1.8s surgical patch updates only Clause 4 with green/red inline diff toggle and DOCX export.

Once outputs exceed 250 words, moving the deliverable out of scrolling chat bubbles into a versioned artifact pane transforms retention.

Frequently Asked Questions

How do you prevent the LLM from overwriting manual edits the user made directly in the canvas?

Treat the live canvas state as the single source of truth on every turn, sending the current document revision plus surgical patch instructions.

Which document export formats matter most in B2B artifact workspaces?

Clean Markdown, styled DOCX, PDF, and structured CSV/JSON clipboard copy cover nearly all downstream client and team handoffs.

Does surgical diff patching work reliably across different LLM providers?

Yes, when structured around section IDs or search-and-replace tool schemas with deterministic fallback validation.