Jae Wilson @DataCrew
Domo

Automagically Describe a Domo Magic ETL Dataflow using Domo AI (Part 3)

February 8, 2025

Hook

Documenting Domo Magic ETL dataflows is nobody's idea of a good time — but an undocumented dataflow is a maintenance nightmare. What if your chatbot could read the dataflow definition and write the description for you?

Why It Matters

Dataflow definitions live as dense JSON blobs full of noise — version metadata, execution history, internal IDs — that obscure the actual transformation logic. Manually summarizing them doesn't scale, and most teams skip it entirely. By wiring the Domo Dataflow API to an LLM with a purpose-built prompt, you get accurate, plain-English descriptions generated on demand. This also sets the pattern for any tool call where you need to reduce a structured API response to something a language model can reason about cleanly.

What You'll Learn

  • Query the Domo Dataflows API by ID and extract the actions array from the raw response
  • Write a process_dataflow_definition function that strips irrelevant fields and returns a clean dictionary for LLM consumption
  • Craft a system prompt that roles the LLM as a "senior Domo ETL engineer" to translate JSON into plain-English transformation summaries
  • Wire an endpoint handler (llm_describe_dataflow) that accepts a dataflow ID and returns a structured description
  • Understand why reducing the JSON payload before passing to the LLM matters for accuracy and token efficiency