Configuration Guide
Learn how to configure the FB Lead Addon to capture leads from Facebook and automatically send them to WhatsApp.
Overview
Configuration involves three main steps:
- Select Facebook Lead Forms
- Create WhatsApp message templates
- Map form fields to message variables
Step 1: Select Lead Forms
Connect Your Lead Forms
- Navigate to Addons > FB Lead Addon > Lead Forms
- Click Add New Form
- Select the Facebook Page containing your lead ad
- Choose the Lead Form you want to integrate
- Click Connect Form
Review Form Fields
After connecting a form:
- The addon automatically detects all form fields
- Review the field list to understand available data
- Common fields include: name, email, phone, company, message
Step 2: Create WhatsApp Templates
Message Template Structure
WhatsApp Business requires pre-approved message templates for initial contact. Create templates that will be sent to new leads.
- Go to WhatsApp Templates in the addon settings
- Click Create New Template
- Design your template with these components:
Template Example:
Hello {{name}}!
Thank you for your interest in {{product_name}}. We received your inquiry and a team member will contact you shortly.
Your Details:
- Email: {{email}}
- Phone: {{phone}}
We typically respond within 24 hours. For urgent inquiries, call us at +1-555-0123.
Best regards,
Team WhatsMarkSubmit Template for Approval
- Click Submit for WhatsApp Review
- Wait for approval (typically 24-48 hours)
- Check approval status in the Templates section
Step 3: Map Form Fields to Template Variables
Create Field Mappings
Field mapping connects Facebook form data to WhatsApp template variables.
- Navigate to Field Mappings tab
- Click Create Mapping
- Select the Lead Form and WhatsApp Template
- Map each variable:
| Template Variable | Facebook Field |
|---|---|
| Full Name |
| Email Address |
| Phone Number |
| Static Text or Form Field |
Static Values
You can also use static values for variables that don't come from the form:
- Product Name: Enter fixed text
- Company Name: Your business name
- Support Contact: Your support phone/email
Default Values
Set default values for optional fields:
{{company_name|Default: Not Provided}}If the lead doesn't provide a company name, "Not Provided" will be used.
Step 4: Configure Automation Rules
Set Delivery Preferences
- Go to Automation Settings
- Configure these options:
Send Timing:
- Immediate (recommended)
- Delayed by X minutes
- Business hours only
Retry Logic:
- Retry failed messages: Yes/No
- Max retry attempts: 1-5
- Retry interval: 5-60 minutes
Lead Filtering
Filter which leads receive automated messages:
- Enable Lead Filters
- Add conditions:
- Phone number contains country code
- Email is not empty
- Custom field equals specific value
Example Filter:
- Only send if phone number starts with "+1"
- And email contains "@"
Step 5: Test the Configuration
Send Test Lead
- Click Test Configuration
- Enter sample lead data
- Click Send Test Message
- Verify message delivery in WhatsApp
Review Test Results
Check the test results panel:
- Message sent successfully
- Template variables populated correctly
- Message received on WhatsApp
- No errors in delivery log
Step 6: Activate Automation
Once testing is complete:
- Toggle Automation Status to Active
- Confirm activation in the popup dialog
- Monitor the dashboard for incoming leads
Advanced Configuration
Multiple Templates Per Form
You can send different templates based on lead characteristics:
- Create multiple templates
- Set up conditional rules:
- If lead source = "Facebook Ad A" → Send Template 1
- If lead source = "Facebook Ad B" → Send Template 2
Follow-up Sequences
Configure automated follow-up messages:
- Enable Follow-up Messages
- Create sequence:
- Day 1: Welcome message
- Day 3: Check-in message
- Day 7: Offer/promotion message
Webhook Integration
For advanced users, integrate with external systems:
- Enable Webhooks in settings
- Enter your webhook URL
- Select events to trigger webhook:
- New lead received
- Message sent
- Message delivered
- Lead responded
Configuration Checklist
Before going live, verify:
- [ ] Lead form(s) connected successfully
- [ ] WhatsApp template approved
- [ ] Field mappings configured correctly
- [ ] Test message sent and received
- [ ] Automation rules set appropriately
- [ ] Filters configured (if needed)
- [ ] Automation status set to Active