# widget lead capture

> Deploy, configure, and manage embeddable lead capture form widgets with automated spam filtering and geo-enrichment.

widget lead capture is a free AI agent skill on Agensi by Tuhin, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Tuhin](https://www.agensi.io/creators/ruhul-amin-1)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-11-17
- Security: scan passed (2026-11-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/widget-lead-capture
- Tags: widget, lead-capture, forms, embed, rest-api

## 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
1. **Initialize Environment** clones the platform repository, configures `.env` files, and starts the containerized infrastructure.
2. **Account Provisioning** registers a new administrative user with encrypted credentials to manage the private API.
3. **Widget Configuration** defines form fields (text, email, textarea) and visual styles via the `widget_api.py` utility.
4. **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.

## Requires

- Python
- serve
- Node.js
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the widget lead capture skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this self-hosted lead capture system differ from standard form-building services?

Unlike SaaS form builders that charge monthly fees and store your data externally, this skill deploys a private infrastructure where you own the database, ensuring complete data privacy and no recurring subscription costs.

### Which AI agents and technical environments are required to run this skill?

The skill requires an environment with Docker and Docker Compose installed; it is designed to work with any AI agent capable of executing shell commands and managing file systems to handle the container orchestration.

### Can I customize the look and feel of the forms to match my existing website branding?

Yes, the 'Widget Generation' feature allows you to define specific fields, themes, and branding colors, generating a single-line script tag that can be embedded into any HTML-based website.

### How does the platform handle spam and bot submissions?

It includes an invisible 'honeypot' filtering system that identifies and drops bot traffic automatically, while providing decoy success responses to prevent scrapers from identifying the filter.

### What specific components are included in the skill package?

The purchase includes the complete automated deployment scripts, the Node.js API server source, the PostgreSQL database configuration, and the Python-based CLI wrapper for managing leads.

### Is this skill suitable for high-traffic production environments?

While designed for private or local environments, the system is built on industry-standard Docker containers, making it portable for users who wish to transition it to a private cloud server later.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
