Skip to content

AI: Writing Assistant in the message composer #11

Description

@Adron

The web composer has an AI writing-assistant control offering six actions on the current draft. The app's composer (Views/FeedView.xaml + ViewModels/FeedViewModel.cs) has none.

Actions (feature: "writing_assist")

Action Result
Rewrite cleaner version of the same message
Tighten shorter, punchier
Expand longer, more detail
Fix grammar corrections only, voice intact
Make a thread split a long draft into a numbered sequence
Suggest tags recommended tags from the draft

Artifact handling

writing_assist returns kind: "message", "thread", or "tags". None of these are persistable — /api/ai/generate returns 422 invalid_input for them. They are inserted into the composer client-side.

  • Text suggestions → offer Replace draft and Use in draft.
  • Tag suggestions → offer Add tags (pairs with the tags work in the Messages epic).
  • Nothing changes in the composer until the user picks one.

Acceptance criteria

  • AI control in the composer toolbar, gated on IsAiAvailable.
  • All six actions call POST /api/ai/suggest with the current draft as input.
  • Suggestion panel with Replace draft / Use in draft / discard; tags get Add tags.
  • A thread artifact is shown as the numbered parts it will post as.
  • No call to /api/ai/generate from this surface.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Must have for a credible parity claimarea:aiArea: aiparityWeb/API feature-parity work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions