Contact Form Integration
Overview
The Contact Form feature allows your chatbot to collect and process user inquiries efficiently through an integrated contact form system. This premium feature provides a seamless way for visitors to get in touch while maintaining security and spam protection.
Features
- Easy Integration: Contact form directly integrated into the chatbot interface
- File Attachments: Support for image uploads (up to 3 files)
- Category Dropdown: Customizable dropdown menu for inquiry categorization
- Google reCAPTCHA: Built-in spam protection using reCAPTCHA v3
- Responsive Design: Works seamlessly on both desktop and mobile devices
- Email Notifications: Automatic email notifications to admin with form submissions
Configuration Steps
1. Enable Contact Form
- Navigate to WPiko Chatbot → Contact Form Settings
- Toggle “Enable Contact Form” to activate the feature
- Click “Save Changes”
2. Configure Optional Features
Category Dropdown (Optional)
- Enable “Form Dropdown” option
- Add dropdown options in the text area (one option per line)
- Save changes
Example dropdown options:
General Inquiry
Technical Support
Billing Question
Feature Request
File Attachments (Optional)
- Enable “File Attachments” option
- Users can attach up to 3 images
- Supported formats: JPG, PNG, GIF
- Maximum file size: 3MB per image
Google reCAPTCHA Integration (Recommended)
- Enable “Google reCAPTCHA”
- Create reCAPTCHA v3 keys
- Enter Site Key and Secret Key
- Optionally hide reCAPTCHA badge
- Save changes
Accessing the Contact Form
There are multiple ways to make the contact form accessible to users:
1. Chatbot Menu Option
- The contact form appears as an option in the chatbot menu automatically when enabled
2. Custom URL Parameter
Add ?wpiko_contact=open
to any page URL to automatically open the chatbot with contact form:
https://yourwebsite.com/page/?wpiko_contact=open
3. Custom Menu Link
Add a contact form link to your website menu:
- Go to Appearance → Menus
- Add a Custom Link
- Set URL to
?wpiko_contact=open
- Set Link Text (e.g., “Contact Us”)
4. AI Assistant Integration
Configure your chatbot to provide contact form access in conversations:
Method 1: Direct Form Opening
Add to Assistant Instructions:
For support inquiries, provide only: Wpiko Form
Method 2: URL Redirect
Add to Assistant Instructions:
For support inquiries, direct users to https://yoursite.com/page/?wpiko_contact=open
Contact Form Fields
The form includes the following fields:
- Name (required)
- Email (required)
- Category (if dropdown enabled)
- Message (required)
- File Attachments (if enabled)
Security Features
- Form Validation
- Required field validation
- Email format validation
- File type verification
- File size limits
- reCAPTCHA Protection
- Spam prevention using reCAPTCHA v3
- Invisible verification process
- Configurable badge visibility
- File Upload Security
- Restricted file types (images only)
- File size limits (3MB per file)
- Secure file handling and cleanup
Email Notifications
When a form is submitted:
- Admin receives an email notification
- Email includes:
- User’s name and email
- Selected category (if enabled)
- Message content
- Any attached files
- Timestamp and site information
Best Practices
- reCAPTCHA Implementation
- Always use reCAPTCHA to prevent spam
- Keep keys secure and never share them
- Include privacy policy links when using reCAPTCHA
- Dropdown Categories
- Keep categories clear and concise
- Use 4-8 categories maximum
- Order from most to least common
- File Attachments
- Enable if visual context is important
- Inform users about file restrictions
Troubleshooting
Common Issues and Solutions
- Form Not Displaying
- Verify premium license is active
- Check if contact form is enabled
- Clear browser cache and reload
- File Upload Issues
- Verify file type (JPG, PNG, GIF only)
- Check file size (max 3MB)
- Ensure proper server permissions
- reCAPTCHA Problems
- Verify correct API keys
- Check for JavaScript errors
- Ensure proper domain registration
- Email Delivery Issues
- Check admin email settings
- Verify server can send emails
- Check spam folders