AI Webform
AI Webform adds three AI-powered features to the webform module, generate complete form element yaml from a plain english description, generate help text for individual fields, and let front-end users pre-populate a form by describing their request in plain language.
Settings page
AI Form Generator
Features
- AI form generator - add the "AI Form Generator" handler to any webform, describe the form you want in plain english. The AI returns ready-to-paste webform element yaml including field types, required/optional flags, drupal token defaults, and a submit button. Copy it directly into the Build > Source tab.
- Element help text generator - when editing any webform element, expand the "AI: Generate description" panel below the Description field and click Generate. The AI writes a concise, user-friendly help text you can copy into the field.
- Front-end fill with AI - users with the appropriate permission see a "Fill with AI" button on submission forms. They describe their request in plain language and the AI pre-populates matching fields. Rate-limited to 20 requests per user per hour. Disabled by default.
Post-Installation
- Visit
/admin/config/ai/settingsand configure a default
chat provider and model, required before any feature will work. - Visit
/admin/config/ai/webformto set a module-level
provider override, enable or disable individual features, choose which drupal
token groups the form generator may reference, and edit the AI prompts if necessary. - Grant permissions at
/admin/people/permissions:- Administer AI Webform - to access the settings page.
- AI Webform assistance - to use AI webform functionalities.
Additional Requirements
- Drupal 10.3 or 11
- Webform (^6.2), including the Webform UI submodule
- AI (^1.4 || ^2.0) with at least one chat provider configured at
/admin/config/ai/settings
Recommended modules/libraries
- AI Observability (included in the AI module) - logs and filters API calls by feature tag, useful for monitoring usage and cost per feature.
- Any AI provider module compatible with the Drupal AI module: OpenAI, Anthropic, Ollama, etc.
Similar projects
There are currently no other Drupal modules that combine AI-assisted Webform building, element help text generation, and front-end field prefill in a single package.
More general AI content generation modules (such as AI CKEditor) assist with body/text fields inside the editor but do not interact with Webform's element configuration or submission forms.
Supporting this Module
The best way to support this module is to:
- Report bugs and submit feature requests in the issue queue.
- Leave a review on the project page if you find it useful.
- Contribute patches or merge requests.
Community Documentation
No external documentation or walkthroughs yet, this module was recently released. The README.md in the repository covers installation, configuration, and usage for all three features.