git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/big-roman123/leadklick" ~/.claude/skills/clawdbot-skills-leadklick && rm -rf "$T"
skills/big-roman123/leadklick/SKILL.mdLead Inbox Automator
Capture leads into a centralized Supabase database with automatic Make.com email automation.
Description
This skill provides a complete lead management system for Clawd agents. It stores leads in Supabase, triggers Make.com webhooks for auto-reply emails, and tracks the full conversation lifecycle from "new" to "qualified".
Configuration
{ "supabaseUrl": "https://your-project.supabase.co", "supabaseKey": "eyJ...your-service-role-key", "orgId": "550e8400-e29b-41d4-a716-446655440000", "defaultPriority": "medium" }
Important: Use the Service Role Key, not the Anon Key, for full database access.
Actions
createLead
Create a new lead and automatically trigger the automation workflow.
Parameters:
(string, required): Contact email addressemail
(string, optional): Contact person namename
(string, optional): Phone numberphone
(string, optional): Origin channel (default: "clawd_agent")source
(string, optional): "low", "medium", "high", "urgent"priority
(object, optional): Any additional datacustom_fields
Returns:
{ "success": true, "lead_id": "uuid", "status": "new", "automation_triggered": true, "message": "Lead captured. Auto-reply will be sent within 60 seconds." }
Example:
const result = await skill.createLead({ email: "customer@example.com", name: "Max Mustermann", source: "chat_bot", custom_fields: { product: "saas_basic" } });
getLead
Retrieve lead details including full conversation history.
Parameters:
(string, required): Lead UUIDid
Returns: Lead object with
conversations array and reply_pending boolean.
listLeads
List leads with filtering options.
Parameters:
(string, optional): Filter by statusstatus
(string, optional): Filter by prioritypriority
(number, optional): Max results (default: 50)limit
(string, optional): ISO date filterdateFrom
Returns: Array of leads and total count.
updateStatus
Update lead lifecycle status.
Parameters:
(string, required): Lead UUIDid
(string, required): "qualified", "won", "lost", etc.status
(string, optional): Qualification notesnotes
addConversation
Add a manual reply or note to the lead thread.
Parameters:
(string, required): Lead UUIDleadId
(string, required): Message textcontent
(string, optional): Subject linesubject
getAutomationStatus
Check if the auto-reply email was successfully sent.
Parameters:
(string, required): Lead UUIDleadId
Returns:
{ "auto_reply_sent": true, "minutes_since_creation": 2, "automation_ok": true }
Usage Flow
- Capture: When a user expresses interest, call
createLead() - Verify: After 60-120 seconds, call
to confirm auto-replygetAutomationStatus() - Qualify: During conversation, update status to "qualified" if interested
- Log: Use
to store your agent responsesaddConversation()
Error Handling
Common errors:
- Invalid email format
- Duplicate lead (within 24h)
- Missing Supabase credentials
- Automation timeout (>5min without reply)
Schema
Leads table:
- id, email, name, phone, source, status, priority
- custom_fields (JSON), metadata (JSON)
- first_reply_sent_at, created_at
Conversations table:
- id, lead_id, direction (inbound/outbound/automated)
- content, subject, channel, sent_at
Tags
lead, crm, sales, automation, email, supabase
Version
1.0.0