@connectorx/n8n-nodes-cortex 0.1.38 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,8 @@ class CortexTrigger {
|
|
|
14
14
|
name: 'Cortex Trigger',
|
|
15
15
|
},
|
|
16
16
|
inputs: [],
|
|
17
|
-
outputs: ['main'],
|
|
17
|
+
outputs: ['main', 'main'],
|
|
18
|
+
outputNames: ['Messages', 'Prompt Updates'],
|
|
18
19
|
properties: [
|
|
19
20
|
{
|
|
20
21
|
displayName: 'Webhook Secret',
|
|
@@ -111,11 +112,13 @@ class CortexTrigger {
|
|
|
111
112
|
},
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
const outputData = this.helpers.returnJsonArray(body);
|
|
116
|
+
if (eventType === 'agent_prompt_updated') {
|
|
117
|
+
return { workflowData: [[], outputData] };
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
return { workflowData: [outputData, []] };
|
|
121
|
+
}
|
|
119
122
|
}
|
|
120
123
|
return {
|
|
121
124
|
webhookResponse: {
|