feat(AI Agent Node): Update descriptions and titles for Chat Trigger options in AI Agents and Memory (#12155)

This commit is contained in:
Charlie Kolb 2024-12-12 14:01:29 +01:00 committed by GitHub
parent 5a055ed526
commit 07a6ae11b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 8 deletions

View file

@ -6,10 +6,10 @@ export const sessionIdOption: INodeProperties = {
type: 'options', type: 'options',
options: [ options: [
{ {
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased name: 'Connected Chat Trigger Node',
name: 'Take from previous node automatically',
value: 'fromInput', value: 'fromInput',
description: 'Looks for an input field called sessionId', description:
"Looks for an input field called 'sessionId' that is coming from a directly connected Chat Trigger",
}, },
{ {
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased // eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased

View file

@ -71,13 +71,12 @@ export const promptTypeOptions: INodeProperties = {
type: 'options', type: 'options',
options: [ options: [
{ {
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased name: 'Connected Chat Trigger Node',
name: 'Take from previous node automatically',
value: 'auto', value: 'auto',
description: 'Looks for an input field called chatInput', description:
"Looks for an input field called 'chatInput' that is coming from a directly connected Chat Trigger",
}, },
{ {
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Define below', name: 'Define below',
value: 'define', value: 'define',
description: 'Use an expression to reference data in previous nodes or enter static text', description: 'Use an expression to reference data in previous nodes or enter static text',

View file

@ -130,7 +130,7 @@ export function getSessionId(
if (sessionId === '' || sessionId === undefined) { if (sessionId === '' || sessionId === undefined) {
throw new NodeOperationError(ctx.getNode(), 'Key parameter is empty', { throw new NodeOperationError(ctx.getNode(), 'Key parameter is empty', {
description: description:
"Provide a key to use as session ID in the 'Key' parameter or use the 'Take from previous node automatically' option to use the session ID from the previous node, e.t. chat trigger node", "Provide a key to use as session ID in the 'Key' parameter or use the 'Connected Chat Trigger Node' option to use the session ID from your Chat Trigger",
itemIndex, itemIndex,
}); });
} }