-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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 Transform Node): New node #9990
feat(AI Transform Node): New node #9990
Conversation
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
…transform-ai-node-click-handler-component
…ttps://github.com/n8n-io/n8n into node-1461-transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
…transform-ai-node-click-handler-component
@@ -321,6 +327,7 @@ export const useNodeTypesStore = defineStore(STORES.NODE_TYPES, () => { | |||
visibleNodeTypesByInputConnectionTypeNames, | |||
isConfigurableNode, | |||
getResourceMapperFields, | |||
getNodeParameterActionResult, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this not being used? (this endpoint in general)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not currently, but this is part of button parameter where you could use handler assigned in buttonConfig similar to loadOptions, usage example here
return true; | ||
}); | ||
|
||
function getParentNodes() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is duplicated in utils, but not used
…transform-ai-node-click-handler-component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
Test summaryRun details
Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud |
✅ All Cypress E2E specs passed |
This reverts commit 0de9d56.
Got released with |
Summary
This PR introduces a new "AI Transform"* node that generates code snippets based on user instructions. The AI is context-aware, understanding the workflow's nodes and their data types. Users can simply enter their instructions and click the "Generate Code" button to let the AI automatically populate the Code parameter.
During development, the node's "button" property was improved:
This updated interface allows you to specify a label, an optional input field with its maximum input length, and an action. The action can be specified as a string or as a
NodePropertyAction
, which allows you to set the type of action (currently only 'askAiCodeGeneration') and optionally an action target, such as a parameter that would be affected as a result of this action. Additionally, a handler function defined inmethods.actionHandler
can be executed on the backend when clicked.Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/NODE-1461/ai-transform-node-p0