Action ReferencesRefineByAiAction
Action References

RefineByAiAction

RefineByAiAction

Purpose Refines or transforms text using an AI provider (e.g., OpenAI, Anthropic). Commonly used to summarize, rephrase, or tone-adjust text generated during workflow.

When to use it

  • After generating a report or text (RenderDataAction)
  • Before returning data to the client or storing results

Key fields

FieldTypeDescription
providerStringAI provider name (openai, anthropic, etc.).
inputDataMScriptText to refine.
systemPromptStringOptional system instruction for style or tone.
temperatureNumberDegree of variation (0–1).
modeStringOptional label for refinement style (summarize, reword, etc.).
contextPropertyNameStringWhere refined text is stored.

Example

{
  "id": "a100-refine-summary",
  "name": "summarizeReport",
  "provider": "openai",
  "inputData": "this.emailHtml",
  "systemPrompt": "Summarize the report in a concise and professional tone.",
  "temperature": 0.4,
  "mode": "summarize",
  "contextPropertyName": "reportSummary"
}
Was this page helpful?
Built with Documentation.AI

Last updated Jan 3, 2026