AI Assistant for Contact Form 7
Bring AI to Contact Form 7. Generate form summaries, detect spam, score leads, and automate your forms with OpenAI and Google Gemini.
by Your Name · github.com/malekimtiyaj/ai-assistant-for-contact-form-7 · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/malekimtiyaj/ai-assistant-for-contact-form-7/archive/refs/heads/main.zipBring Artificial Intelligence to Contact Form 7.
Features
- OpenAI Support
- Google Gemini Support
- AI Form Summary
- AI Spam Detection
- AI Lead Scoring
- Email Subject Suggestions
- Prompt Templates
- REST API
- Debug Logs
- Developer Hooks
Requirements
- WordPress 6.5+
- PHP 7.4+
- Contact Form 7
Installation
- Install and activate Contact Form 7.
- Install and activate this plugin.
- Go to CF7 AI → Settings and add your OpenAI or Gemini API key.
- Edit a Contact Form 7 form → AI Assistant tab → enable AI for that form.
- Optionally add mail tags to the Mail tab (see below).
Setup checklist
- API key — CF7 AI → Settings → choose provider → paste key → Save → Test Connection.
- Enable per form — Contact → edit form → AI Assistant → check “Enable AI Assistant for this form”.
- Mail tags (optional) — in the CF7 Mail body/subject:
[ai_summary]
[ai_lead_score]
[ai_lead_quality]
[ai_lead_reason]
[ai_spam_score]
[ai_spam_reason]
[ai_email_subject]
If you leave [ai_summary] out of the mail body, a summary block is appended automatically when “inject into mail” is enabled.
AI Providers
- OpenAI (
gpt-4o-miniby default) - Google Gemini (
gemini-1.5-flashby default)
Developer Hooks
do_action( 'cf7_ai_before_process', $submission );
do_action( 'cf7_ai_after_process', $response );
apply_filters( 'cf7_ai_prompt', $prompt, $submission );
apply_filters( 'cf7_ai_process_result', $result, $posted_data );
do_action( 'cf7_ai_register_providers', $ai_manager );
REST API
Requires manage_options capability (cookie + nonce auth).
GET /wp-json/cf7-ai/v1/forms
POST /wp-json/cf7-ai/v1/process
GET /wp-json/cf7-ai/v1/settings
POST /wp-json/cf7-ai/v1/test-connection
Process example
POST /wp-json/cf7-ai/v1/process
{
"form_id": 123,
"data": {
"your-name": "Jane Doe",
"your-email": "jane@example.com",
"your-message": "I need a quote for a website redesign."
}
}
Upgrade to Pro
- Claude AI
- OpenRouter
- AI Auto Reply
- AI Translation
- Prompt Builder
- Webhooks
- Zapier
- Make
- n8n
- WooCommerce
- CRM Integrations
License
GPL v2 or later