How to Set Up Automated Lead Capture in DenchClaw
Set up automated lead capture in DenchClaw using webhooks, form integrations, and browser automation. New leads flow straight into your local CRM the moment they arrive.
Lead capture is only as good as what happens immediately after. If new leads land in an email inbox and then someone manually copies them into a CRM two days later, you've already lost the moment. DenchClaw lets you automate the entire path from "lead arrives" to "lead is in your CRM, enriched, and assigned"—without any manual data entry.
The Lead Capture Stack#
There are three ways leads typically arrive:
- Web forms — Contact forms, demo request forms, trial signups on your website
- Marketing tools — Email marketing platforms, ad platforms with lead forms (LinkedIn Ads, Facebook)
- Manual sources — Business cards, LinkedIn connections, event sign-ups, referrals
DenchClaw can automate all three paths. Here's how to set up each one.
Path 1: Web Form to CRM via Webhook#
If your website form submits to an endpoint, you can point that endpoint at DenchClaw's webhook system and have every form submission automatically create a lead entry.
Step 1: Get your DenchClaw webhook URL.
Ask: "Give me a webhook endpoint I can use to receive new leads from my website form."
DenchClaw creates a webhook handler and gives you a URL like:
http://localhost:19001/webhooks/leads/inbound
(Or your Dench Cloud URL if you're using the hosted version.)
Step 2: Connect your form.
For popular form tools:
- Typeform: Connect via Typeform's webhook feature → Webhooks → add the DenchClaw endpoint
- Tally.so: Settings → Integrations → Webhooks → paste the endpoint
- Custom HTML form: Change your form's
actionattribute to POST to the DenchClaw endpoint - Webflow: Forms → Email Notifications → Add Webhook
Step 3: Map the incoming fields.
Ask DenchClaw to set up the mapping:
"When my website contact form webhook fires, create a new lead entry.
The form sends: name, email, company, message.
Map name → Full Name, email → Email, company → Company,
message → Notes. Set Source = Website, Status = New Lead,
Created At = now."
Step 4: Test it.
Submit a test form entry and verify it appears in your leads object. Ask: "Show me the most recently created lead."
Path 2: Lead Form Ads (LinkedIn, Facebook)#
LinkedIn Lead Gen Forms and Facebook Lead Ads are high-converting but notoriously bad at getting lead data into your CRM. Usually you download a CSV weekly. With DenchClaw, you can automate this.
Via browser agent (periodic sync):
"Check my LinkedIn Campaign Manager for new lead form submissions
since yesterday. Add any new leads to my leads object with
Source = LinkedIn Ads."
Set this as a daily cron job at 9am. The browser agent logs into LinkedIn using your existing session, navigates to Campaign Manager, downloads the latest leads, and syncs them to DuckDB.
Via native API (if available):
LinkedIn and Facebook both have Marketing APIs. If you have API credentials, you can create an action field script that calls the API directly. Ask DenchClaw to help set this up.
Path 3: Manual Lead Capture (Quick Entry)#
For leads that come from conversations, business cards, or LinkedIn:
From Telegram: "Add a new lead: Marcus Chen, VP Engineering at Stripe, marcus@stripe.com. Met at SaaStr. Very interested in our product."
From web chat: Type it directly. DenchClaw parses the natural language and creates the entry.
From the UI: Click the + button in your leads kanban and fill in the inline form.
The manual path should be fast enough that you do it in the moment—while still on the call, while at the event, while browsing LinkedIn. The friction to add a lead should be close to zero.
Setting Up Automatic Enrichment#
A lead with just a name and email is minimally useful. Set up automatic enrichment to trigger whenever a new lead is created:
"Whenever a new lead is created in my leads object, automatically:
1. Look up their LinkedIn profile to find their title and company size
2. Find their company's website and check if they're a good fit
3. Assign them to me (Mark) as owner
4. Set Priority to High if company size > 200, Medium otherwise"
This runs as an automation trigger. The moment a lead enters DuckDB, the enrichment workflow fires. By the time you look at your leads kanban in the morning, new leads are already enriched and prioritized.
Lead Scoring at Capture#
Not all leads are equal. Set up scoring rules that run automatically:
"When a new lead is created, calculate a score:
+30 if Title contains 'VP', 'Director', or 'Head of'
+20 if Company Size > 200
+15 if Source = Website (high intent)
+10 if Source = Referral
+5 if they filled out the 'Tell us about your use case' field
Save the score as Lead Score field and set Priority based on score."
Your leads arrive pre-sorted. You always work the highest-score leads first without having to manually evaluate each one.
Setting Up Lead Assignment#
If you have a sales team or different owners for different lead types:
"When a new lead arrives:
- If Company Size > 500, assign to Enterprise team (owner = 'sarah')
- If Source = Website, assign to SDR team (owner = 'james')
- Otherwise, assign to me"
Combine with a Telegram notification:
"After assigning a new lead, send a Telegram message to the assigned
owner with the lead's name, company, title, and score."
The owner gets a Telegram notification the moment a new lead is assigned to them—no checking dashboards, no email delays.
Building a Lead Capture Dashboard#
Get a real-time view of your lead flow:
"Build a lead capture dashboard showing:
leads captured today (number),
leads this week vs last week (comparison card),
leads by source this month (pie chart),
average lead score this month (number),
new leads in the last 24 hours (table with name, company, score)."
Open this each morning for a 30-second pipeline health check.
Testing Your Capture Setup#
Before going live, test every path:
- Form webhook: Submit a test form, verify the lead appears in DuckDB with correct field mapping
- Browser sync: Trigger the LinkedIn ad sync manually, verify new leads appear
- Manual entry: Add a test lead via Telegram, verify it's created correctly
- Enrichment: Check that the enrichment ran on the test lead
- Notifications: Verify Telegram alert arrived for the assigned owner
Fix any issues before your real leads start flowing.
Frequently Asked Questions#
Does the webhook work when my Mac is sleeping?#
No—DenchClaw requires the gateway process to be running. For 24/7 lead capture, deploy DenchClaw on a VPS or use Dench Cloud. For typical business hours capture, sleeping your Mac overnight is fine.
Can I capture leads from Calendly or HubSpot forms?#
Yes. Calendly supports webhooks for new bookings. HubSpot forms can be configured to trigger a Zapier/Make zap that hits your DenchClaw endpoint. Any tool that supports webhooks can send to DenchClaw.
What if I get spam through my form?#
Add a filter to your lead creation logic: "If the Notes field contains links or typical spam patterns, mark the lead as Spam and skip enrichment." You can also add a honeypot field on your form.
How do I handle duplicate leads?#
Set up deduplication by email: "Before creating a new lead, check if a contact with that email already exists. If so, update their record instead of creating a duplicate."
Can I route leads to different pipelines based on the source?#
Yes. In your automation logic, specify: "If Source = LinkedIn Ads, add to outreach_leads object. If Source = Website, add to inbound_leads object." Different sources can map to entirely different objects with different stages.
Ready to try DenchClaw? Install in one command: npx denchclaw. Full setup guide →
