Content Generator

AI Toolkit • content_generator

Generate content using AI

Overview

The Content Generator node uses AI to create structured content based on your prompt and schema definition.

How It Works

  1. Process Prompt: Your content prompt is rendered with current variables (supports Handlebars syntax)
  2. Generate Content: The AI generates content matching your defined schema
  3. Store Result: The generated content is stored as a structured object you can reference
  4. Continue: Flow proceeds with the generated content available in subsequent nodes

Output Variable

The node stores the generated content:

Generated: {{content.data.field_name}}
Status: {{content.status}}

Configuration Fields

Content Prompt handlebars Required

Instructions for what content to generate.

Show details

Supports Handlebars syntax:

{{variable_name}}
Output Schema schema_builder Required

Define the structure of the generated content.

Show details

How it works:

The AI will work with data matching this schema. Required fields trigger follow-up actions if missing. Field descriptions help the AI understand what each field represents.

Available field types:

  • Text fields
  • Number fields
  • Boolean fields
  • Array fields
  • Object fields
AI Configuration agent_settings

Configure the AI model and behavior.

Show details

Configuration options:

  • AI model selection
  • Temperature (0.0-2.0) - Higher = more creative, Lower = more consistent
  • Conversation context length - Amount of chat history to include
  • Personality instructions - Defines how the AI interacts

Temperature guide:

  • 0.0-0.5: Focused, deterministic, predictable
  • 0.5-1.0: Balanced between creativity and consistency
  • 1.0-2.0: Creative, varied, exploratory
Error Handling error_handling

Configure how the node handles errors.

Show details

Configuration options:

  • Continue on error: If enabled, flow continues through error handle. If disabled, flow terminates.
  • Retry attempts (0-3): Number of times to retry the operation before failing
  • Retry delay (100-1000ms): Time to wait between retry attempts

Use retries for transient errors like network issues. Use "continue on error" to implement fallback logic.

Output Variables

This node stores its output in a variable that can be referenced in subsequent nodes using the {{variable}} syntax.

{{variable}}.status string

Generation status ("success" or "failure")

{{variable}}.data object

Generated content object matching the defined schema (only present on success)

{{variable}}.error string

Error message (only present on failure)

{{variable}}.timestamp string

ISO 8601 timestamp of generation

Connection Points

Input
Accepts incoming connections from other nodes
Output
Connects to the next node in the flow

More in AI Toolkit

Talk to sales
This form is running on UniversalChatbot.