Merged
Size
XL
Change Breakdown
Feature55%
Bug Fix30%
Refactor10%
Testing5%
#27984feat(editor): Add Instance AI prompt suggestions

Prompt suggestions added to Instance AI composer

Prompt suggestions added to Instance AI composer

Instance AI now shows prompt suggestions when the composer is empty. Users can hover to preview prompts and click to submit directly, with a Quick examples menu for common workflows.

When users open Instance AI with an empty composer, they now see clickable prompt suggestions that help them get started. Hovering over a suggestion previews the full prompt text in the input field without inserting it, letting users see exactly what will be sent. Clicking any suggestion submits it immediately.

A "Quick examples" menu expands to reveal more specific workflow prompts — monitoring competitors, automating email, routing support requests, answering questions with an agent, and tracking inventory. Each example follows the same hover-preview and click-to-submit pattern.

Suggestions disappear automatically when the user types, attaches files, sends a message, or when historical messages are loading. This keeps the UI clean and prevents accidental submissions in the wrong context.

These changes touch the n8n editor's AI feature — specifically the composer input, the AI store, and the empty state view. The store work also prevents a race condition where rapid clicks on a brand-new thread could create duplicate first messages before thread persistence completes.

View Original GitHub Description

Summary

  • Add empty-state prompt suggestions to the Instance AI composer.
  • Add a Quick examples menu with predefined prompts.
  • Preview prompt copy on hover and submit selected prompts directly.
  • Hide suggestions once the composer is no longer empty, while a send is pending, or while an existing thread is still hydrating.
  • Extract the suggestions UI into a dedicated component and extend focused frontend tests.
<img width="868" height="395" alt="image" src="https://github.com/user-attachments/assets/8cff1218-2fa9-4b3d-b57e-ce4cb699071c" /> <img width="831" height="589" alt="image" src="https://github.com/user-attachments/assets/6c826172-5b51-4f1e-b3bc-e3acd1287e14" />

Context

This PR includes a small amount of store and view work in addition to the new pills UI.

That extra work is there to support the new submission behavior safely:

  • Prompt suggestions now submit directly, so rapid repeated clicks on a brand-new thread can otherwise create duplicate first messages before thread persistence finishes.
  • Existing threads temporarily clear local messages before historical messages hydrate, which can otherwise make empty-state suggestions flash briefly in the wrong context.

How to test

  1. Open Instance AI on a new thread and verify the prompt suggestions render under the empty composer.
  2. Hover a prompt pill and verify the input shows preview text without inserting anything.
  3. Open Quick examples, hover an example, and verify the input preview updates.
  4. Click a prompt pill and verify it submits immediately.
  5. Click a quick example and verify it submits immediately.
  6. Repeatedly click a prompt on a brand-new thread and verify only one first message / run is created.
  7. Open an existing thread and verify empty-state suggestions do not appear while history is still loading.

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with Backport to Beta, Backport to Stable, or Backport to v1 (if the PR is an urgent fix that needs to be backported)
  • I have seen this code, I have run this code, and I take responsibility for this code.
© 2026 · via Gitpulse