Jae Wilson @DataCrew
Domo

Build chatbots in Domo AI (Part 2) - Setting up an Endpoint (FAIL)

February 8, 2025

Hook (1-2 sentences): Wiring up a reusable Endpoint class for Domo's text generation API sounds like a clean abstraction — until authentication bites you and the whole thing refuses to work inside a Domo instance.

Why It Matters

Without a proper endpoint abstraction, every chatbot you build requires you to manually handle auth, format request bodies by hand, and repeat yourself across routes. A working Endpoint class would let you swap models, adjust temperature, and reuse the same interface across tools — but Domo's API constraints make that harder than expected. This video documents exactly where that approach breaks down, which is just as useful as a success: you'll know which assumptions to throw out before you start.

What You'll Learn

  • Build a synchronous chat route that correctly hits Domo's text generation API
  • Format the request body with input, prompt_template, and model fields as Domo expects them
  • Choose between access token and session token authentication for requests made inside a Domo instance
  • Configure model selection across providers (Anthropic, OpenAI, custom enterprise models)
  • Understand why the Endpoint class pattern fails here and what that implies for how you architect Domo AI integrations