---
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, reference]
---

# 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.md).
///

## 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.md#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/index.md) node. 

## Templates and examples

[[ templatesWidget(page.title, 'ai-transform') ]]

