From 2201bf71ba2d8ae11808635d581321bd9ea54ef4 Mon Sep 17 00:00:00 2001 From: aya <15815271+ayatnkw@users.noreply.github.com> Date: Thu, 15 Aug 2024 09:25:42 +0200 Subject: [PATCH] Docs for: AI Transform Node (#2332) --- .../core-nodes/n8n-nodes-base.aitransform.md | 31 +++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 32 insertions(+) create mode 100644 docs/integrations/builtin/core-nodes/n8n-nodes-base.aitransform.md diff --git a/docs/integrations/builtin/core-nodes/n8n-nodes-base.aitransform.md b/docs/integrations/builtin/core-nodes/n8n-nodes-base.aitransform.md new file mode 100644 index 00000000000..1564de56d58 --- /dev/null +++ b/docs/integrations/builtin/core-nodes/n8n-nodes-base.aitransform.md @@ -0,0 +1,31 @@ +--- +#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4 +title: AI Transform +description: Documentation for the AI Transform node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples. +contentType: integration +--- + +# AI Transform + +Use the AI Transform node to generate code snippets based on your prompt. The AI is context-aware, understanding the workflow’s nodes and their data types. + +/// info | Feature availability +Available only on [Cloud plans](/manage-cloud/overview/). +/// + +## Node parameters + +### Instructions + +Enter your prompt for the AI and click the **Generate code** button to automatically populate the **Transformation Code**. For example, you can specify how you want to process or categorize your data. Refer to [Writing good prompts](/code/ai-code/#writing-good-prompts) for more information. + +The prompt should be in plain English and under 500 characters. + +### Transformation Code + +The code snippet generated by the node is read-only. To edit this code, adjust your prompt in **Instructions** or copy and paste it into a [Code](/integrations/builtin/core-nodes/n8n-nodes-base.code/) node. + +## Templates and examples + +[[ templatesWidget(title, 'ai-transform') ]] + diff --git a/mkdocs.yml b/mkdocs.yml index 52fda7bd9a2..c990b70d222 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -349,6 +349,7 @@ nav: - integrations/builtin/core-nodes/index.md - integrations/builtin/core-nodes/n8n-nodes-base.activationtrigger.md - integrations/builtin/core-nodes/n8n-nodes-base.aggregate.md + - integrations/builtin/core-nodes/n8n-nodes-base.aitransform.md - integrations/builtin/core-nodes/n8n-nodes-base.code.md - integrations/builtin/core-nodes/n8n-nodes-base.comparedatasets.md - integrations/builtin/core-nodes/n8n-nodes-base.compression.md