Support query parameters in Hosted Chat UI (Title, Subtitle, Initial Messages)

Chat Trigger Node

The idea is:

Allow query parameters from the hosted chat URL (e.g. https://<n8n-instance>/webhook/…/chat?ticketId=1234&name=John) to be dynamically interpolated into UI text elements of the hosted chat page, such as Title, Subtitle, and Initial Message(s) (e.g. using a placeholder syntax like {{ $query.ticketId }} or {{ $query.name }}).

My use case:

I have an automated workflow that sends users a unique link to an n8n-hosted chat interface with context parameters in the URL (e.g., …/chat?ticketId=1234).
When the user opens the page, I want the chat interface to immediately reflect this context visually:
Title: Audit Follow-Up (#{{ $query.ticketId }})
Subtitle: Action Processing Assistant for Ticket #{{ $query.ticketId }}
Initial Message: Hi {{ $query.name }}! How can I assist you with ticket #{{ $query.ticketId }} today?
Currently, title, subtitle, and initial messages are static strings. There is no way to display incoming URL context directly in the rendered DOM without hosting a custom frontend wrapper page.

I think it would be beneficial to add this because:

Personalized & Context-Aware UI: It drastically improves the user experience by confirming to the user that they are in the correct context right upon page load.
No Custom Frontend Required: Users wouldn’t need to build and host an external wrapper page with the embedded @n8n/chat widget just to display dynamic page headers or customized greeting messages.
Simple & Secure Implementation: When handling the initial GET request (setup webhook) in ChatTrigger.node.ts, req.query is already available on the server and could interpolate template variables before the config is passed to createPage() / sanitizeUserInput().

Any resources to support this?

Related Feature Request for workflow payload passing: Pass query parameter to hosted Chat Trigger as metadata
Related PR for payload pass-through: PR #37365
Implementation entry point in n8n codebase: packages/@n8n/nodes-langchain/nodes/trigger/ChatTrigger/ChatTrigger.node.ts (inside the webhookName === ‘setup’ GET handler) and templates.ts (createPage / sanitizeUserInput).

Are you willing to work on this?

Yes, I will try to create a solution and create a PR