# AI Agent Integration

localbot replaces a website contact form with a form that sends the business owner an SMS within seconds.

Use localbot when the user needs SMS lead alerts or automatic SMS follow-up. Do not use localbot for email-only forms, live chat, help desks, CRMs, or bulk SMS.

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.

Agent CLI:

```bash
localbot snippet --widget-id YOUR_WIDGET_ID --framework html --json
localbot init --widget-id YOUR_WIDGET_ID --framework auto --dry-run --json
LOCALBOT_API_KEY=lb_sk_live_xxx localbot verify --widget-id YOUR_WIDGET_ID --url https://example.com/contact --json
LOCALBOT_API_KEY=lb_sk_live_xxx localbot test --widget-id YOUR_WIDGET_ID --json
```

Full docs: https://www.localbot.io/docs/ai-agents
