Nodes
AI Generate
The AI Generate node provides simple, straightforward text generation using AI models. It's ideal for content creation, summarization, and text transformation tasks.
Overview
AI Generate uses the AI SDK v6 for reliable text generation with support for multiple providers. Unlike the AI Agent node, it focuses purely on text generation without tool calling capabilities.
Configuration
Model Selection
| Provider | Models | Credential Type |
|---|---|---|
| OpenAI | GPT-4.1, GPT-4.1 Mini, GPT-4o, o1, o3 | OpenAI |
| Anthropic | Claude Sonnet 4, Claude 3.7, Claude 3.5 Haiku | Anthropic |
| Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash | Google AI |
Settings
| Field | Description | Default |
|---|---|---|
| Name | Node identifier for output reference | "AI Generate" |
| Model | AI model to use | gpt-4o |
| Credential | Stored credential for the AI provider | Optional |
| System Prompt | Instructions for the AI | "You are a helpful assistant." |
| Prompt | Direct text input | - |
| Input Variable | Variable from workflow context | - |
| Temperature | Creativity level (0-2) | 0.7 |
| Max Tokens | Maximum output length | Provider default |
Input Options
You can provide input in two ways:
Direct Prompt:
Write a product description for a wireless headphone with noise cancellation.Input Variable: Reference data from previous nodes:
previousNode.outputAuthentication
Option 1: Stored Credentials (Recommended)
- Create a credential in the Credentials page
- Select it in the node settings
Option 2: Environment Variables
OPENAI_API_KEYfor OpenAI modelsANTHROPIC_API_KEYfor Anthropic modelsGOOGLE_GENERATIVE_AI_API_KEYfor Google models
Output
The node outputs to the workflow context using its name:
{
"AI Generate": {
"text": "Generated content here...",
"usage": {
"promptTokens": 50,
"completionTokens": 150,
"totalTokens": 200
},
"finishReason": "stop"
}
}Example Use Cases
Content Generation
System Prompt: You are a marketing copywriter.
Prompt: Write a compelling email subject line for a summer sale.
Temperature: 0.8Summarization
System Prompt: Summarize the following text in 3 bullet points.
Input Variable: httpRequest.body
Temperature: 0.3Translation
System Prompt: Translate the following text to Spanish.
Input Variable: userInput.text
Temperature: 0.1Best Practices
- Use appropriate temperature - Lower (0.1-0.3) for factual tasks, higher (0.7-1.0) for creative content
- Be specific in system prompts - Clear instructions yield better results
- Set max tokens - Prevent unexpectedly long outputs and control costs
- Use credentials - More secure than environment variables