Generate Chat Text
Generates chat responses from Claude AI with conversation history support, enabling multi-turn conversational interactions.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Connection Id - The Claude client session identifier from Connect node (optional if API Key is provided directly).
- System Prompt - System instructions to guide Claude's behavior throughout the conversation. This remains constant across all turns.
- User Prompt - The message you want to send in the chat conversation. This is added to the conversation history.
- Chat History - Previous conversation history for context. Contains all previous user and assistant messages in the conversation.
Options
Authentication
- API Key - Claude API key (optional if using Connection ID). You can provide the API key directly instead of using a Connect node.
- Use Robomotion AI Credits - Use Robomotion AI credits instead of your own API key.
Model Selection
- Model - Select which Claude model to use. Options include:
- Claude Opus 4.5 - Most capable model for complex conversations
- Claude Opus 4 - Highly capable model for complex reasoning
- Claude Sonnet 4.5 - Latest balanced model
- Claude Sonnet 4 - Balanced performance and speed (default)
- Claude 3.7 Sonnet - Latest 3.x generation Sonnet
- Claude 3.5 Sonnet - Previous generation Sonnet
- Claude 3.5 Haiku - Fastest model for simple conversations
- Custom Model - Specify your own model name
- Custom Model - Enter custom model name when Custom Model is selected.
Generation Settings
- Max Tokens - Maximum number of tokens in the response (default: 4096).
- Temperature - Controls randomness (0.0-1.0). Higher values make conversations more creative and varied.
- Top P - Nucleus sampling parameter (0.0-1.0).
- Top K - Top-k sampling parameter (1-100).
- Stop Sequences - Stop sequences separated by commas. Generation stops when these sequences are encountered.
Extended Thinking
- Thinking Mode - Extended thinking allows Claude to reason through complex problems:
- Off - No extended thinking (default)
- Auto (Budget: 10240) - Automatic thinking with default token budget
- Custom Budget - Specify your own thinking token budget
- Thinking Budget - Custom thinking token budget (1024-128000). Only used when Thinking Mode is Custom.
Advanced
- Timeout (seconds) - Request timeout in seconds (default: 120).
- Include Raw Response - Include full API response in output (default: false).
Outputs
- Text - Claude's text response to the current message.
- Thinking - Extended thinking output when thinking mode is enabled.
- Chat History - Updated chat history including this exchange. Pass this to the next Generate Chat Text node to continue the conversation.
- Raw Response - Complete API response object (when Include Raw Response is enabled).
How It Works
The Generate Chat Text node maintains a conversation with Claude by tracking message history. When executed, the node:
- Validates the connection or creates a temporary client using provided credentials
- Retrieves the previous chat history (if any)
- Appends all historical messages to the conversation
- Adds the current user message
- Configures the selected model and generation parameters
- Sends the complete conversation to Claude API
- Receives Claude's response
- Updates the chat history with the new exchange (user message + assistant response)
- Returns the response text and updated history
Requirements
- Either a valid Connection Id from Connect node OR direct API Key credentials
- Non-empty User Prompt