Hello n8n community,
I am building a workflow that starts with the Chat Trigger. My goal is to personalize the conversation and perform user-specific actions based on the identity of the person interacting with the chat.
I have been looking through the data output by the Chat Trigger, but I can’t seem to find any information about the n8n user who initiated the chat session. I was expecting to find properties like user.name or user.email in the trigger’s JSON output, but this information doesn’t appear to be available.
My question is:
Is there a built-in way to access the details (specifically the username and/or email) of the authenticated n8n user who runs a workflow via the Chat Trigger?
If this is not natively supported, could anyone suggest a recommended workaround to achieve this? For example, is there another way to identify the user session?
Thank you in advance for any help or guidance you can provide!
Information on your n8n setup
- n8n version:
- Database SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via npm
- Operating system: ubuntu