# Webflow
> Give your AI agents the power to list and publish sites, manage pages, retrieve form submissions, and add custom code to your Webflow projects.

- **Package:** @224industries/webflow-ai-sdk
- **Author:** 224 Industries
- **Tags:** webflow, cms, forms, websites

## Environment Variables
- `WEBFLOW_API_KEY`
- `WEBFLOW_SITE_ID`

## Included Tools
- **listSites:** List all Webflow sites accessible with the current API token
- **publishSite:** Publish a site to custom domains or the Webflow subdomain
- **listPages:** List all pages for a site with pagination
- **updatePage:** Update a page's title, slug, SEO, and Open Graph metadata
- **listForms:** List all forms for a site with field definitions
- **listFormSubmissions:** Retrieve submitted form data, optionally filtered by form
- **listCustomCode:** List all custom code scripts applied to a site and its pages
- **addCustomCode:** Register and apply an inline script to a site or page

## Installation
```bash
npm install @224industries/webflow-ai-sdk
```

## Usage
```typescript
import { generateText, stepCountIs } from "ai";
import { listSites, listPages, updatePage, publishSite } from "@224industries/webflow-ai-sdk/tools";

const { text } = await generateText({
  model: 'openai/gpt-5.2',
  tools: { listSites, listPages, updatePage, publishSite },
  prompt: "List all my sites and their pages",
  stopWhen: stepCountIs(5),
});
```

## Links
- [Documentation](https://github.com/224-Industries/webflow-ai-sdk)
- [npm](https://www.npmjs.com/package/@224industries/webflow-ai-sdk)
- [GitHub](https://github.com/224-Industries/webflow-ai-sdk)

---
[Full Library Index](/library.md)