Markdown stripped from AI-generated titles
AI-generated conversation titles no longer contain markdown artifacts like `#` prefixes or `*` formatting. A system prompt update and defensive sanitization ensure titles are clean and display correctly.
AI-generated conversation titles could end up with markdown syntax embedded in them—headings, bold markers, and other formatting artifacts. These appeared when the title generation prompt wasn't explicit enough about the expected output format.
The system prompt has been updated to explicitly forbid markdown, require sentence case, and constrain titles to 1-5 words. A sanitization step now strips any remaining markdown prefixes or formatting characters as a defensive measure. Empty titles resulting from sanitization are handled gracefully.
In the n8n agents runtime, conversation titles are now consistently clean strings suitable for display.
View Original GitHub Description
Summary
Avoid titles like # Lorem Ipsum *dolor sit* amet -> Lorem ipsum dolor sit amet with both a bit more accurate system prompt & sanitization just in case something slips through.
Related Linear tickets, Github issues, and Community forum posts
<!-- Include links to **Linear ticket** or Github issue or Community forum post. Important in order to close *automatically* and provide context to reviewers. https://linear.app/n8n/issue/ --> <!-- Use "closes #<issue-number>", "fixes #<issue-number>", or "resolves #<issue-number>" to automatically close issues when the PR is merged. -->Review / Merge checklist
- PR title and summary are descriptive. (conventions) <!-- **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** -->
- Docs updated or follow-up ticket created.
- Tests included. <!-- A bug is not considered fixed, unless a test is added to prevent it from happening again. A feature is not complete without tests. -->
- PR Labeled with
Backport to Beta,Backport to Stable, orBackport to v1(if the PR is an urgent fix that needs to be backported)