How to Use the OpenAI Module to Add AI to Your Drupal Site
In a tutorial article published by ImageX, Nadiia Nykolaichuk walks readers through how to integrate the OpenAI module with a Drupal site. Originally developed for Drupal 10, this module adds AI-powered tools such as ChatGPT directly into content and admin workflows, including CKEditor integration and content field suggestions.
Site builders begin by entering an OpenAI API key and organisation ID under Configuration > OpenAI > Settings. Once configured, the module enables various features through its submodules—covering ChatGPT access, CKEditor 5 enhancements, node edit panel tools, embeddings, audio, log analysis, and even developer-focused utilities like GPT-powered dummy content generation.
Key interactions include text completion and summarisation directly in CKEditor 5 via a custom toolbar button, alongside right-hand panel suggestions like taxonomy terms, titles, and tone adjustments that don’t alter source content. A dedicated “ChatGPT Explorer” UI also allows admin-side experimentation with prompts and models.
Nykolaichuk notes that the OpenAI module was the first to bring ChatGPT into Drupal, though the community is now focusing on the more flexible AI module, which supports multiple providers. Still, the OpenAI module remains relevant for those seeking a focused, easy-to-implement integration.
This article adds to ImageX’s efforts to document advanced tooling in Drupal, particularly in the fast-evolving area of artificial intelligence and editorial workflows.


