This project is not covered by Drupal’s security advisory policy.
The Views Natural Language Filter module allows site visitors to search and filter Drupal Views using conversational AI.
Instead of forcing users to interact with multiple complex dropdowns, checkboxes, and date widgets, this module provides a single, intuitive search bar. Users can type natural language queries like "properties in Pune" or "apartments under 50 lacs published by admin".
The module leverages the Drupal AI ecosystem to parse the user's intent and seamlessly translate it into structured inputs for existing Views exposed filters.
Key Features
- Provider Agnostic: Because it is built on the Drupal AI abstraction layer, you can power your search using OpenAI (ChatGPT), Google Gemini, Anthropic (Claude), or any other supported local/cloud model.
- Smart Filter Resolution: Automatically parses natural language into precise structured data, including:
- Dates & Ranges: Understands relative time like "last week" or "before 2023".
- Numeric Ranges: Converts shorthand like "under 50 lacs" or "over 1M" into min/max constraints.
- Entity References & Taxonomy: Maps human-readable names to underlying Drupal Term IDs and Entity IDs.
- Booleans & Dropdowns: Translates "available" or "yes" into proper checkbox states.
- Graceful Fallbacks: If the AI detects search terms that don't match a specific filter, it automatically routes them to a standard "Combine fields" or keyword search filter.
- Plug & Play: Requires zero custom coding. Simply add the "Natural Language" filter to any existing View.
Performance & The Cache Analyzer
- AI API calls introduce latency and cost money. This module is built with enterprise performance in mind.
- Every unique query and schema combination is cached. If a user searches for "apartments in Mumbai", the AI processes it once. When the next user searches the exact same phrase, the result is served instantly from Drupal's cache with zero API cost.
- To help site administrators monitor this, the module includes a built-in Cache Analyzer. This visual dashboard allows you to:
- Monitor your overall Cache Hit Rate.
- See exactly which queries are hitting the cache versus triggering an API call.
- Audit the raw JSON responses from the AI provider to debug and fine-tune your View's performance.
⚙️ Requirements
Drupal 10 or 11
AI (Artificial Intelligence) module
An AI Provider
| Attachment | Size |
|---|---|
| Views add filter.png | 24.15 KB |
| Views configure filter 1.png | 52.47 KB |
| Views configure filter 2.png | 55.96 KB |
Project information
- Project categories: Artificial Intelligence (AI), Content display
- Created by sanju_bera on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
First public release of the Views Natural Language Filter
Development version: 1.0.x-dev updated 3 May 2026 at 11:03 UTC