Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Prompt AI

No security coverage
View on drupal.org

⚠️ This module is deprecated and no longer maintained

This module was created in late 2022, when there were very few options for integrating AI into Drupal. Since then, the Drupal community has built a much better solution: the AI module.

The AI module is actively maintained by a large group of contributors and offers everything this module did, plus much more:

  • Support for multiple AI providers (OpenAI, Anthropic, Gemini, Ollama, and many others)
  • Content generation, translation, summarization, and image analysis
  • Integration with ECA, Field Widgets, CKEditor, and Search API
  • A growing ecosystem of submodules and integrations

If you are starting a new project, use the AI module. If you are currently using Prompt AI, plan your migration to it.

No new features, bug fixes, or compatibility updates will be added to this module.

Description

This module allows you to configure multiple Prompts and connect them with external APIs that use AI (artificial intelligence).

It is recommended to use it together with the Drupal ECA module, which allows you to use the power of AI in Drupal without the need for programming.

Currently compatible with:

  • OpenAI GPT3 API
  • OpenAI ChatGPT 4.o API
  • Gladia.io API.

Real use cases, for example when saving an entity

  • Autocategorize content: Take the value of the body field, analyze the tags with ChatGPT, and save the result in another field.
  • Title generation: analyze a long text field with ChatGPT and generate a new title
  • Summary generation: analyze entity text fields, generate a summary, and save it in a field of the same entity.
  • Translate texts: Use ChatGPT to translate the values of entity fields.
  • Transcribe audio files: Send the file uploaded to Drupal to the Gladia API, which returns the transcription.
  • Spelling correction and rewriting with ChatGPT
  • Automatic content generation based on another field.
  • You can do anything you can imagine. Use any event of the ECA module to launch the execution of a configured Prompt, and then use ECA to do things with that value returned by the API (save the node, create entities, send emails, ...)

Things to consider

  1. The module is not in a stable version, use it at your own risk in Production environments.
  2. The Gladia API is in Alpha version, it has continuous changes that can break the functionality of this module.
  3. The ChatGPT API is paid, and the Gladia API is currently free until they leave the Alpha version.

Installation and configuration

  1. Download like any other Drupal module.
  2. Activate the modules you want to use. There is the main "Prompt" module and then a sub-module for GPT3, ChatGPT and another for Gladia.
  3. Go to the configuration page of the sub-module you want to use and configure the API key.
  4. Go to /admin/config/system/prompt and configure your prompts.
  5. Test each of your prompts on its corresponding page: /admin/config/system/prompt/[id_prompt]
  6. Install and configure ECA if you want to automate the execution of prompts.

Other recomended AI modules

https://www.drupal.org/project/augmentor
I recommend that you take a look at the Augmentor module. It is more stable than this module, and offers many similar functionalities.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.x-dev Dev Feb 25, 2023
1.x-dev Dev Feb 24, 2023