Salesforce Integration
Connect Salesforce to Lead Warmer to automatically generate personalized videos for your leads.
Overview
This integration sends leads from Salesforce to Lead Warmer when:
- A new Lead is created
- A new Contact is created
- An Opportunity stage changes
Setup Instructions
Step 1: Get Your Webhook URL
- Log in to Lead Warmer
- Go to Settings > Webhooks
- Copy your webhook URL
Step 2: Create Salesforce Flow
- In Salesforce, go to Setup > Flows
- Click New Flow
- Select Record-Triggered Flow
- Choose the Lead or Contact object
Step 3: Add HTTP Callout
- Add an Action element
- Select HTTP Callout
- Configure the POST request to Lead Warmer
Payload Mapping
Map Salesforce fields to Lead Warmer fields:
| Salesforce Field | Lead Warmer Field |
|---|---|
Id | lead_id |
Email | email |
FirstName | first_name |
LastName | last_name |
Company | company_name |
Title | job_title |
OwnerId | external_system_id |
Example Payload
{
"lead_id": "{!$Record.Id}",
"email": "{!$Record.Email}",
"first_name": "{!$Record.FirstName}",
"last_name": "{!$Record.LastName}",
"company_name": "{!$Record.Company}",
"job_title": "{!$Record.Title}",
"source": "salesforce",
"external_system_id": "{!$Record.OwnerId}"
}Using Process Builder (Legacy)
If using Process Builder:
- Create a new Process on Lead object
- Set criteria (e.g., “Lead is created”)
- Add action: Call Apex or use Webhooks app
Authentication
Include signature in headers:
X-Signature-Key: your-webhook-secretNamed Credentials
For production, use Named Credentials:
- Setup > Named Credentials
- Create credential for Lead Warmer API
- Include authentication headers
Testing
- Create a test Lead in Salesforce
- Check Lead Warmer Leads page
- Verify video generation starts
Troubleshooting
Flow not triggering:
- Check Flow is activated
- Verify trigger conditions
- Review Flow debug logs
Callout errors:
- Ensure Remote Site Settings include Lead Warmer URL
- Check Named Credential configuration
Need help? Contact support@leadwarmer.net