How to Use the OpenAI Module to Add AI to Your Drupal Site

Flowing particles

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.

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Drupal Initiatives

Related Organizations

Upcoming Events

Latest Opportunities