Getting Started with WP AI Connector
Go from zero to your first working AI agent in under 10 minutes. This guide walks you through installation, creating an agent, connecting webhooks, and displaying it on your site.
Quick Start (5 Minutes)
The fastest way to get your first AI agent working:
5-Minute Checklist
- ☐ Install plugin via WordPress.org or ZIP upload
- ☐ Create new agent with title and description
- ☐ Add 2-3 form fields (text, textarea, email)
- ☐ Get webhook URL from n8n/Make/Zapier
- ☐ Paste webhook URL in agent settings
- ☐ Add
[ai_agent_form id="123"]to a page - ☐ Test submission and verify webhook receives data
Result: A working AI form that sends data to your webhook and displays responses to users.
Step 1: Installation
Option A: Install from WordPress.org (Free Version)
The easiest method for most users:
- Go to WordPress Admin → Plugins → Add New
- Search for "WP AI Connector"
- Click Install Now button
- Click Activate after installation
Option B: Upload Plugin ZIP (Pro/Pro Plus)
For premium versions purchased from wpaiconnector.com:
- Download your plugin ZIP file from your purchase email
- Go to WordPress Admin → Plugins → Add New → Upload Plugin
- Click Choose File and select your ZIP
- Click Install Now
- Click Activate Plugin
System Requirements
Ensure your server meets these minimum requirements:
- WordPress: 5.8 or higher (6.0+ recommended)
- PHP: 7.4 or higher (8.0+ recommended)
- MySQL: 5.6+ or MariaDB 10.0+
- Memory: 128MB minimum (256MB recommended)
- HTTPS: SSL certificate required for webhooks
Verify Installation
After activation, you should see:
- ✅ "AI Agents" menu in WordPress admin sidebar
- ✅ Settings page at AI Agents → Settings
- ✅ No error messages on plugins page
Step 2: Create Your First Agent
Agents are individual AI tools. Each agent has its own form, webhook, and settings.
What is an Agent?
Think of an agent as a single AI-powered tool:
- AI Chatbot - One agent
- Image Generator - Another agent
- Content Writer - Yet another agent
Each agent can have different forms, webhooks, and purposes.
Create New Agent
- Go to AI Agents → Add New
- Enter agent title:
My First AI Agent - Add description in the editor:
This AI agent helps you generate creative content based on your ideas. Just describe what you want, and AI will create it for you!
Agent Settings
In the right sidebar, you'll see several meta boxes:
Status
- Active: Agent is live and working
- Draft: Hidden from public, for testing
- Coming Soon: Shows teaser to users
Set to Active for now.
Categories & Tags
Organize your agents:
- Categories: Content Creation, Image Tools, Data Analysis, etc.
- Tags: ai, chatbot, generator, automation, etc.
Step 3: Build Your Form
Every agent needs a form for users to input data.
Access Form Builder
- Scroll down to AI Agent Form Builder meta box
- You'll see three tabs: Visual Builder, JSON Editor, Preview
- Click Visual Builder (easiest for beginners)
Add Your First Field
Let's add a simple text input:
- Click "+ Add Field" button
- Configure the field:
- Label: What do you want to create?
- Field Type: Textarea
- Placeholder: Describe your idea in detail...
- Required: ✅ Yes
- Rows: 4
- Help Text: The more detail you provide, the better the result!
- Click "Add to Form"
Add an Email Field
So users can receive results:
- Click "+ Add Field" again
- Configure:
- Label: Your Email
- Field Type: Email
- Placeholder: you@example.com
- Required: ✅ Yes
- Help Text: We'll send your results here
- Click "Add to Form"
Add a Select Field
Give users predefined choices:
- Click "+ Add Field"
- Configure:
- Label: Output Style
- Field Type: Select
- Options: (one per line)
Professional & Formal Casual & Friendly Creative & Fun Technical & Detailed - Required: ✅ Yes
- Default: Casual & Friendly
- Click "Add to Form"
Save Your Form
Click "Save Form" button at the bottom of the form builder.
Preview Your Form
- Click the "Preview" tab in form builder
- See how your form will look to users
- Check field order and layout
- Go back to Visual Builder to make changes if needed
Step 4: Connect to Webhook
Webhooks connect your WordPress form to AI services like n8n, Make, or Zapier.
What is a Webhook?
A webhook is like a phone number for your software:
User submits form → WordPress "calls" webhook → Webhook processes with AI → Sends result back → User sees response
Get Webhook URL from n8n
n8n is recommended (free, open-source, self-hosted):
- Go to n8n.cloud or your self-hosted n8n
- Click "Create New Workflow"
- Click "+" to add a node
- Search for "Webhook" and select it
- Configure webhook:
- HTTP Method: POST
- Path: /my-first-agent
- Response Mode: Wait for Response
- Copy the Production URL
Your URL will look like: https://your-n8n.app.n8n.cloud/webhook/my-first-agent
Alternative: Make (Integromat)
- Log into make.com
- Click "Create a new scenario"
- Add Webhooks → Custom Webhook module
- Click "Add" and name it: "WordPress Agent"
- Copy the webhook URL
Alternative: Zapier
- Log into zapier.com
- Click "Create Zap"
- Search for "Webhooks by Zapier"
- Choose "Catch Hook" as trigger
- Copy the webhook URL
Add Webhook URL to WordPress
- Back in WordPress, find the Webhook Settings meta box
- Paste your webhook URL in the "Webhook URL" field
- Click "Update" to save your agent
Simple n8n Workflow Example
Here's a basic workflow to return the submitted data:
- Webhook Node (already added)
- Add Code node, connect it to webhook
- In Code node, paste:
// Extract form data const formData = $json.body.form_data; const description = formData.field_description || ''; const email = formData.field_email || ''; const style = formData.field_style || ''; // Create HTML response return { output_html: ` <div class="ai-result"> <h3>✅ Form Received!</h3> <p><strong>Description:</strong> ${description}</p> <p><strong>Email:</strong> ${email}</p> <p><strong>Style:</strong> ${style}</p> <p>This is a test response. Connect AI in next step!</p> </div> `, success: true }; - Add Respond to Webhook node, connect to Code node
- In Respond to Webhook:
- Response Code: 200
- Response Body:
{{ $json }}
- Click "Active" toggle in top-right to activate workflow
Step 5: Test Your Agent
Before displaying publicly, test that everything works.
Quick Test via Preview
- In WordPress, edit your agent
- Scroll to Quick Test section (below form builder)
- Fill in test values in each field
- Click "Test Webhook"
- Wait for response (should appear within 3-5 seconds)
Expected result: You should see the HTML response from your webhook displayed.
Check n8n Execution
- Go to n8n dashboard
- Click "Executions" in left sidebar
- Find your test execution (should have green checkmark)
- Click to view input/output data
Common Test Issues
Problem: "Webhook error 500"
Solution:
- Check n8n execution for error details
- Verify Code node syntax is correct
- Ensure Respond to Webhook node is connected
Problem: "Security check failed"
Solution:
- Clear browser cache and cookies
- Hard refresh page (Ctrl+F5)
- Try in incognito window
Problem: No response shows
Solution:
- Check webhook is active in n8n/Make/Zapier
- Verify webhook URL is correct (no typos)
- Check browser console (F12) for JavaScript errors
Step 6: Display Agent on Your Site
Once tested, add your agent to any page or post using shortcodes.
Find Your Agent ID
When editing your agent, look at the URL:
https://yoursite.com/wp-admin/post.php?post=123&action=edit
^^^
This is your ID
Basic Shortcode
[ai_agent_form id="123"]
Add to Page (Block Editor)
- Edit or create a page
- Click "+" to add a block
- Search for "Shortcode"
- Paste:
[ai_agent_form id="123"] - Click "Update" or "Publish"
Add to Page (Classic Editor)
- Edit or create a page
- Click "Text" tab (top-right)
- Paste:
[ai_agent_form id="123"] - Switch back to "Visual" tab
- Click "Update" or "Publish"
Add to Page Builder (Elementor/Divi/Beaver)
- Add a Shortcode widget/module
- Paste:
[ai_agent_form id="123"] - Save and publish
View Your Page
- Visit your published page
- You should see your agent form
- Fill it out and test a real submission
- Verify response displays correctly
Complete Examples
Example 1: AI Content Writer
Form fields:
- Topic (text)
- Tone (select: Professional, Casual, Humorous)
- Length (number: 100-2000 words)
- Email (email)
n8n workflow:
[Webhook] → [OpenAI Chat] → [Format Response] → [Respond]
Example 2: Image Generator
Form fields:
- Description (textarea)
- Art Style (select: Realistic, Digital Art, Oil Painting)
- Image Size (radio: Square, Portrait, Landscape)
- Email (email)
n8n workflow:
[Webhook] → [OpenAI Image] → [Format HTML] → [Respond]
Example 3: Document Analyzer
Form fields:
- Upload Document (file: PDF only)
- What to extract (select: Summary, Key Points, Action Items)
- Email (email)
n8n workflow:
[Webhook] → [Decode File] → [Extract Text] → [OpenAI Analyze] → [Email + Respond]
Next Steps
Learn Advanced Features
Get Inspiration
- AI Chatbot: Natural conversation with context
- Content Generator: Blog posts, social media, emails
- Image Creator: DALL-E, Stable Diffusion, Midjourney
- Code Helper: Debug, explain, optimize code
- Data Analyzer: Extract insights from spreadsheets
- Translator: Multi-language translation
- Summarizer: TL;DR for long documents
- SEO Optimizer: Meta descriptions, titles, keywords
Join the Community
- 💬 WordPress.org Forum - Ask questions, share tips
- 📧 Email Support - Direct help from our team
- 🐛 GitHub Issues - Report bugs, request features
Quick Troubleshooting
Agent not showing on page
- Check shortcode syntax:
[ai_agent_form id="123"] - Verify agent is published (not draft)
- Clear cache (browser + WordPress)
Form submits but no response
- Check webhook is active in n8n/Make/Zapier
- Verify webhook URL is correct
- Test webhook separately with cURL
Webhook error 500
- Check n8n execution log for error details
- Verify JSON response format is correct
- Test workflow with sample data