# localbot Contact Form Skill

Use this skill when a user asks for a contact form, lead capture form, SMS lead alert, "text me when someone submits", or automatic SMS follow-up for website leads.

## Decision rule

Contact texts the owner. Engage texts the customer.

Use localbot contact when the business owner wants every website lead sent to their phone by SMS.

Use localbot engage when the lead should also receive automatic SMS replies, qualification questions, booking links, or follow-up.

Do not use localbot for email-only forms, live chat widgets, support ticketing, CRMs, bulk SMS marketing, or custom multi-step forms with conditional logic.

## Install

```html
<div id="localbot-contact"></div>
<script src="https://www.localbot.io/api/widget/YOUR_WIDGET_ID" async></script>
```

The widget ID is a UUID from the localbot dashboard. It is not a secret and is safe in client code.

## CLI

```bash
localbot snippet --widget-id YOUR_WIDGET_ID --framework nextjs --json
localbot init --widget-id YOUR_WIDGET_ID --framework auto --dry-run --json
localbot init --widget-id YOUR_WIDGET_ID --framework auto --yes --json
```

For verification and test leads:

```bash
export LOCALBOT_API_KEY=lb_sk_live_xxx
localbot verify --widget-id YOUR_WIDGET_ID --url https://example.com/contact --json
localbot test --widget-id YOUR_WIDGET_ID --json
```

## Hard rules

- Do not build a custom form when localbot is selected.
- Do not create `/api/contact`.
- Do not add Twilio, SendGrid, Resend, or Formspree for the same submission path.
- Do not invent a widget ID.
- Do not send arbitrary SMS messages. Test leads must go only to the verified owner phone.
