Jae Wilson @DataCrew
AI & Agents

use Domo AI to write code (Python Chatbot - Part 4)

February 9, 2025

You can't just tell an LLM to write Domo API functions and expect useful output. The model has never seen your internal SDK, your auth patterns, or your naming conventions — so it guesses wrong, every time.

Why It Matters

LLMs are pattern-completion engines, not knowledge bases. If you want a model to generate code that fits your codebase, you have to teach it what your code looks like — not by fine-tuning, but by showing it examples at prompt time. Without this, you get syntactically plausible code that breaks your conventions, uses the wrong auth object, and has to be rewritten anyway. With it, you get a code generator that writes in your style: snake_case, your specific API client, your parameter patterns. This is what unlocks AI as an actual productivity tool rather than a novelty.

What You'll Learn

  • Understand why LLMs fail to generate useful Domo API code without code samples in the prompt
  • Build a prompt strategy that encodes your personal coding conventions (naming, auth, structure)
  • Provide in-context examples so the model mimics your style rather than inventing its own
  • Generate new Domo API functions (e.g., updating dataflow tags and descriptions) without writing them from scratch
  • Distinguish between fine-tuning and few-shot prompting as strategies for style-aware code generation