mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
feat(AI Agent Node): Update descriptions and titles for Chat Trigger options in AI Agents and Memory (#12155)
This commit is contained in:
parent
5a055ed526
commit
07a6ae11b3
|
@ -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
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue