Skip to content

ai_services

ai_services

DomoDataflow AI Services Actions

AI-powered actions in Magic ETL v2. These correspond to the "AI Services" category in the Domo ETL UI sidebar.

DomoDataflow_Action_TextGeneration dataclass

DomoDataflow_Action_TextGeneration(
    id: str,
    action_type: str = None,
    tile_type: str | None = None,
    name: str = None,
    depends_on: list[str] = None,
    disabled: bool = False,
    gui: dict = None,
    settings: dict = None,
    raw: dict = None,
    parent_actions: list[DomoDataflow_Action_Base] = None,
    model_id: str = None,
    prompt: str = None,
    instructions: str = None,
    temperature: float = None,
    output_column_name: str = None,
    parameters: dict = None,
    path: str = None,
    model_input_schema: dict = None,
    model_output_schema: dict = None,
    column_settings: dict = None,
    input: str = None,
    tables: list[dict] = None,
)

Bases: DomoDataflow_Action_Base

Text Generation action - generates text using AI models.

Attributes:

Name Type Description
model_id str

ID of the AI model

prompt str

Prompt template for generation

instructions str

System instructions

temperature float

Sampling temperature

output_column_name str

Name of output column

Example

textgen_action = dataflow.get_action_objects("TextGeneration")[0] print(f"Model: {textgen_action.model_id}") print(f"Prompt: {textgen_action.prompt}")