- Home
- Skills
- APIs & Backend
- widget lead capture
widget lead capture
by Tuhin
Deploy, configure, and manage embeddable lead capture form widgets with automated spam filtering and geo-enrichment.
Free
widget lead capture
Example session with this skill installed
Set up the lead capture platform on localhost:3000 and create a contact widget with name, email, and message fields.
- Read your context and instructions
- Compiled the widget lead capture
The lead capture platform is deployed and the contact widget is ready. I have configured the environment, started the Docker containers, and initialized the API server.
Widget Deployment Details
The following widget has been created and is ready for embedding:
| Property | Value |
|---|---|
| Widget ID | 550e8400-e29b-41d4-a716-446655440000 |
| Type | contact |
| Title | Contact Our Team |
| Theme | light |
| Primary Color | #4F46E5 |
| Fields | name (text), email (email), message (textarea) |
Embed Code
<!-- Copy and paste this snippet into your HTML where you want the form to appear -->
<script src="http://localhost:3000/widget.js?id=550e8400-e29b-41d4-a716-446655440000"></script>
Next steps
- Verify Installation: Open your website and confirm the form renders after the script tag.
- Test Submission: Submit a test entry to verify the "Sending..." state and success message.
- Check Leads: Run the
submissionscommand viawidget_api.pyto view your captured data.
Connects securely to your tools. The creator never sees your data.
About this skill
Self-hosting a lead capture system often requires juggling database configurations, environment secrets, and complex API integrations. This skill automates the deployment and management of a private lead-capture platform, giving you full control over your data without third-party subscription fees.
What it does
- Platform Deployment automated setup of the Node.js API server, PostgreSQL database, and Mailpit via Docker Compose.
- Widget Generation creates customizable contact and newsletter forms with specific fields, themes, and primary branding colors.
- Embedded Integration provides single-line script tags that inject forms into any HTML document with automatic DOM placement.
- Lead Management retrieves paginated form submissions and geographic analytics through a secure CLI interface.
- Spam Protection implements invisible honeypot filters to drop bot traffic while returning decoy success responses.
How it works
- Initialize Environment clones the platform repository, configures
.envfiles, and starts the containerized infrastructure. - Account Provisioning registers a new administrative user with encrypted credentials to manage the private API.
- Widget Configuration defines form fields (text, email, textarea) and visual styles via the
widget_api.pyutility. - Site Integration embeds the generated
<script>tag into the target website to begin collecting leads.
Frameworks & tools
Built with Node.js, Express, and PostgreSQL. Infrastructure is managed via Docker and Docker Compose. Local mail testing is handled by Mailpit. API interactions are driven by a Python-based CLI wrapper.
Why this beats prompting it yourself
Manual setup often leads to broken database migrations or exposed credentials in shell history. This skill enforces secure authentication patterns using --password-stdin and ensures proper CORS and environment variable mapping out of the box.
Use cases
- Deploying a private lead capture backend for a portfolio or agency site.
- Building custom newsletter signup forms that bypass standard ad-blockers.
- Collecting structured feedback from clients without using external SaaS forms.
- Monitoring submission trends and geographic data for local marketing campaigns.
Known limitations
This is for local or private self-hosted environments and is not a production-ready cloud deployment guide. API payloads are strictly limited to 10 KB, and form data must be under 5,000 characters.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 18 days ago
- Free with an Agensi account
- Software
Pythonserve
Node.js
Git
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.