Generate text or structured output with AI
The AI Text Generate step sends data to a large language model and returns text, structured JSON, or email content. It supports three actions: Text generates a single output string in Text, HTML, or Markdown format; Structured generates user-defined output fields parsed as JSON; and Email generates a subject line and HTML body with purpose-aware prompting. Supports OpenAI and Anthropic providers.
The step builds a message to the LLM by combining your prompt with all input field values as a context block. Input fields are user-defined. You add whatever fields you need (e.g., company_name, revenue) and map them from upstream steps. The prompt is required, and execution fails if it's empty.