Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/@n8n/nodes-langchain/nodes/memory/descriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const sessionIdOption: INodeProperties = {
type: 'options',
options: [
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Take from previous node automatically',
name: 'Connected Chat Trigger Node',
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
Expand Down
7 changes: 3 additions & 4 deletions packages/@n8n/nodes-langchain/utils/descriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ export const promptTypeOptions: INodeProperties = {
type: 'options',
options: [
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
name: 'Take from previous node automatically',
name: 'Connected Chat Trigger Node',
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',
value: 'define',
description: 'Use an expression to reference data in previous nodes or enter static text',
Expand Down
2 changes: 1 addition & 1 deletion packages/@n8n/nodes-langchain/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function getSessionId(
if (sessionId === '' || sessionId === undefined) {
throw new NodeOperationError(ctx.getNode(), 'Key parameter is empty', {
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,
});
}
Expand Down
Loading