Skip to content
MyAppBuilder
BetaWorkflow node

AI step

Beta — ready to use, but some details may still change.

Overview

Generates text with AI from a prompt that can include record values, and saves the text for later steps.

Purpose

Draft a reply, summarise a long note, classify a request, or write a product description — then store or email the result.

Inputs

  • Prompt — the instruction, up to 4,000 characters. Include data with {{record.field_key}}, {{event.item.description}}, {{results.key}}.
  • Save result as — a key (letters, digits, underscores) under which later steps find the result: Action results › key in the Data Picker or {{results.key}} in templates. Default key: ai.

Configuration

  • Be explicit about format and length in the prompt (“Reply in two short sentences”).
  • Follow with Database › Update record to store the text, or Send email to send it.

Outputs

  • results.<key> = the generated text ({{results.ai}}). Step output { chars } (length of the text).

Example

Summarise a support request

Example
AI step
  Prompt: Summarise this customer request in one sentence and suggest a category (billing, repair, other):
          {{record.message}}
  Save result as: summary
Database › Update record  Requests: Summary = {{results.summary}}

Errors

  • Provider errors (quota, invalid key) fail the step with the provider's message.

Limitations

  • When the platform has no AI key configured, the step does not fail: the result text is “(AI step skipped: GEMINIAPIKEY is not configured)”. Check for it before sending the text to customers.
  • Output is limited to about 1,024 tokens; the model is not told about your app, only what is in the prompt.
  • Generated text is never treated as instructions by the app, but review it before it reaches customers.

Advanced

  • Config: { prompt, resultKey? }. Calls generateText(prompt) (Gemini, temperature 0.4, maxOutputTokens: 1024); the prompt is truncated to 4,000 characters.

Related

Was this helpful?