{
  "title": "API First",
  "video_id": "TaHZhNRpgb8",
  "published": "2023-11-13T16:33:33+0000",
  "complexity": "Complex",
  "old_url": "https://workflows-of-ai.com/workflow/api-first",
  "description": "Use the AI Interpolator Post OB Processor and JSON:API to run Drupal AI chains from any app, answer at once and poll until the work is done.",
  "subtitle": "Run your AI Interpolator chains from any application over JSON:API and poll for the result instead of waiting on the request.",
  "summary": "The AI Interpolator chains OpenAI text and DALL-E images into an article from a one-sentence title, all set up in the Drupal UI. JSON:API and JSON:API Extras expose the article, and the Post OB Processor sends the API response right away while the AI work continues in the background. The client then polls the status field until it says finished.",
  "categories": [
    "Drupal AI"
  ],
  "intro_html": "<p>This goes through all the steps that you need to know to set up any of your chains using an API-first approach, instead of using the GUI or using Drupal for it.</p><p>I use the AI Interpolator Post OB Processor together with JSON:API and JSON:API Extras to turn a one-sentence title into a full article with a header image. The API answers right away, and you poll the article until its status says it is finished.</p>",
  "intro_added": true,
  "chapters": [
    "0:00 What the Post OB Processor does",
    "3:13 Why run AI chains over an API",
    "7:17 Drupal as a content framework",
    "10:57 Installing JSON:API Extras",
    "11:53 Building the article content type",
    "15:07 Batch, cron and direct workers",
    "18:21 Configuring JSON:API Extras",
    "22:47 Opening permissions for the API",
    "24:34 How the output buffer helps",
    "27:05 Polling until the article is done"
  ],
  "corrections": [
    [
      "druple",
      "Drupal"
    ],
    [
      "droople",
      "Drupal"
    ],
    [
      "AI inter leer",
      "AI Interpolator"
    ],
    [
      "AI interpolator",
      "AI Interpolator"
    ],
    [
      "Lang chain",
      "LangChain"
    ],
    [
      "langen",
      "LangChain"
    ],
    [
      "L chain",
      "LangChain"
    ],
    [
      "open Ai",
      "OpenAI"
    ],
    [
      "open AI",
      "OpenAI"
    ],
    [
      "Dolly 3",
      "DALL-E 3"
    ],
    [
      "Json API",
      "JSON:API"
    ],
    [
      "engine X",
      "nginx"
    ],
    [
      "mini Orange",
      "miniOrange"
    ],
    [
      "Apel Tower",
      "Eiffel Tower"
    ],
    [
      "gp4",
      "GPT-4"
    ],
    [
      "prompt perfect",
      "PromptPerfect"
    ],
    [
      "Javas script",
      "JavaScript"
    ]
  ],
  "ai_note": "The video and most of the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and the last sentences of the introduction, and corrected misheard names in YouTube's automatic captions."
}