metatag_ai
Welcome! Metatag AI is a Drupal module that brings AI-powered SEO assistance to your website. Developed by Promet Source—a leading provider of web solutions for government and public sector organizations—this module helps generate optimized meta tags for your content to improve SEO.
Version note: Metatag AI 2.x is a complete rewrite of 1.x and
now utilizes the Drupal AI module for provider/model integration.
Metatag AI 1.x is no longer receiving updates; for upgrades and continued development, use 2.x.
Videos
-
30-second overview:
https://youtu.be/coQSLDsbTIM -
90-second configuration + editor experience:
https://youtu.be/bIOII6vBmuc?si=8LKmwutmAkVZFoT4
Who Should Use Metatag AI?
- Drupal site owners and content editors who want better SEO with less manual effort
- Marketers and web managers handling large Drupal sites with frequently added content
- Developers who want to automate meta tag generation for client sites
- Anyone needing a simple way to improve search engine visibility for Drupal content
Benefits We Experienced Using This Module
- Saves time by generating optimized title tags and meta descriptions
- Helps ensure your H1 and title tags are different—an often-missed SEO opportunity
- Reduces duplicate content issues by generating unique tags for each page
- Simplifies meta tag management, especially on large sites with lots of content
Key Features
- Automatically generates meta tags based on content title and body
- Integrates with AI providers via Drupal AI (2.x)
- Works alongside the widely used Metatag module
- Drupal compatibility depends on the major version you install (see release notes)
- Works with language module.
Additional Requirements
Metatag AI depends on the Metatag module.
For Metatag AI 2.x, you must also configure the Drupal AI module and at least one provider.
Installation and Configuration
Configuration differs by major version. Follow the steps that match the version you installed
(2.x is recommended).
Metatag AI 2.x (Recommended) — Drupal AI-based configuration
- Install and enable the Metatag module.
- Install and enable Drupal AI (v1.3) and at least one AI provider integration module.
-
Configure your AI provider/model in Drupal AI at
/admin/config/ai.
(Provider credentials and model selection are managed by Drupal AI.) - Enable the Metatag AI module.
- Add a Metatag field to the content types you want to support (commonly
field_metatag). -
Go to
/admin/config/content/metatag-aiand select the
provider/model combination (as configured in Drupal AI) to use for generation. -
Go to
/admin/config/content/metatag-ai/content-typeand select the content types where the Metatag
field was added. - Enter the machine name of your Metatag field (for example:
field_metatag). - Create or edit content of the selected types and ensure the Title and Body/Description are filled in.
- Click Generate Metatag to populate meta tags, then verify the updated values in the Metatag field.
Metatag AI 1.x (Legacy) — Direct provider configuration
Note: 1.x is legacy and no longer receives updates. For upgrades, use 2.x.
- Install and enable the Metatag module.
- Enable the Metatag AI module.
- Add the
field_metatagfield (or your chosen Metatag field) to your desired content types. -
Configure Metatag AI at
/admin/config/content/metatag-ai:
choose the provider integration (for example OpenAI or AWS Bedrock), then enter the required API credentials and
settings. -
Visit
/admin/config/content/metatag-ai/content-typeto select applicable content types and specify
the Metatag field machine name. - Create or edit content of the selected types by adding a title and a body.
- Click Generate Metatag to populate meta tags, then verify the updated values in the Metatag field.
OpenAI API Keys
If you are using OpenAI as your provider, you can retrieve API keys via:
- Log in to https://platform.openai.com
- Go to the API keys section and create a new key.
- Copy and store the key securely.
AWS Bedrock Keys
If you are using AWS Bedrock as your provider, ensure your Bedrock access is configured (for example, enabling the
model you plan to use). To retrieve AWS credentials:
- Go to AWS Security Credentials.
- View or create access keys for your IAM user/role.
- Copy the Access Key ID and Secret Access Key securely.
FAQ
-
Is a paid OpenAI account necessary?
Our tests with a free account consistently resulted in errors. Best results were achieved with a paid account.
Similar Projects
Credit
Metatag AI is a fork of the OpenAI Metadata project. The configuration settings are similar, with the key
distinction being its dependency on the Metatag module.
Metatag AI is developed and maintained by Promet Source.