{"_id":"@224industries/webflow-ai-sdk","_rev":"4-5a03659b7eafaf4a283c83a7b5ac7893","name":"@224industries/webflow-ai-sdk","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.0":{"name":"@224industries/webflow-ai-sdk","version":"0.0.0","keywords":["ai","ai-sdk","webflow","cms","tools"],"author":{"url":"https://bensabic.dev","name":"Ben Sabic"},"license":"MIT","_id":"@224industries/webflow-ai-sdk@0.0.0","maintainers":[{"name":"bensabic","email":"ben@bensabic.ca"}],"homepage":"https://github.com/224-Industries/webflow-ai-sdk","bugs":{"url":"https://github.com/224-Industries/webflow-ai-sdk/issues"},"dist":{"shasum":"a7ac02562cefd2f970361db033a351e6e5f379d9","tarball":"https://registry.npmjs.org/@224industries/webflow-ai-sdk/-/webflow-ai-sdk-0.0.0.tgz","fileCount":5,"integrity":"sha512-OGhp6vnWE/RNL/8/YKZ3+Qlb8PooiEF/+tRc8qyhRxSmBU1Ay8ZDkOx7HMLNiBMsumeKttT2Mqv21R0OH5RhyQ==","signatures":[{"sig":"MEQCIGEoBHY8WT35bhFLYqI/IGROalGlgHtzjndUMZ8hlZOYAiAO5Gb1Fi2twOjYOzitDcuvKf14SpJfH1Vp/UXtZVBkEA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35771},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"c6e40a2ce302b10b4d5ed2bde1458e1f614692ff","scripts":{"fix":"ultracite fix","test":"vitest run","build":"tsup src/index.ts --format esm --dts","check":"ultracite check","bump-deps":"npx npm-check-updates -u -p pnpm && pnpm install","type-check":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"bensabic","email":"ben@bensabic.ca"},"repository":{"url":"git+https://github.com/224-Industries/webflow-ai-sdk.git","type":"git"},"_npmVersion":"11.1.0","description":"Webflow tools for the AI SDK","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","ultracite":"7.1.5","typescript":"^5.9.3","@types/node":"^25.2.3","@biomejs/biome":"2.3.15"},"peerDependencies":{"ai":"^6.0.67","zod":"^4.3.6"},"_npmOperationalInternal":{"tmp":"tmp/webflow-ai-sdk_0.0.0_1770958047256_0.3413889588913712","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@224industries/webflow-ai-sdk","version":"1.0.0","keywords":["ai","ai-sdk","webflow","cms","tools"],"author":{"url":"https://bensabic.dev","name":"Ben Sabic"},"license":"MIT","_id":"@224industries/webflow-ai-sdk@1.0.0","maintainers":[{"name":"bensabic","email":"ben@bensabic.ca"}],"homepage":"https://github.com/224-Industries/webflow-ai-sdk","bugs":{"url":"https://github.com/224-Industries/webflow-ai-sdk/issues"},"dist":{"shasum":"52ebe07e2a089d88cba06405b0b0176b3a4c0402","tarball":"https://registry.npmjs.org/@224industries/webflow-ai-sdk/-/webflow-ai-sdk-1.0.0.tgz","fileCount":5,"integrity":"sha512-iZm9MKdUsTP5jPCarAaU4TufhQQREBQlVuP6GjmzRQVgKCMVFbkKDjgVbNARa6548gygWKvybbM5ns/N2fgfaA==","signatures":[{"sig":"MEYCIQCiv8aowSxirhueBfwY27q/awdrP1yR5IWISqiisQsURwIhAP51sA9lBBnJD3kB0scf+CbMPZhjatWYbO/SJhXqdxj7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@224industries%2fwebflow-ai-sdk@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":35771},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"75a04ec8656ac635b9eda8d699e5525754a4fa8c","scripts":{"fix":"ultracite fix","test":"vitest run","build":"tsup src/index.ts --format esm --dts","check":"ultracite check","bump-deps":"npx npm-check-updates -u -p pnpm && pnpm install","type-check":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7fab745c-e162-48b3-869f-2e6190729500"}},"repository":{"url":"git+https://github.com/224-Industries/webflow-ai-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"Webflow tools for the AI SDK","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","ultracite":"7.1.5","typescript":"^5.9.3","@types/node":"^25.2.3","@biomejs/biome":"2.3.15"},"peerDependencies":{"ai":"^6.0.67","zod":"^4.3.6"},"_npmOperationalInternal":{"tmp":"tmp/webflow-ai-sdk_1.0.0_1770959202727_0.3516417121526729","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@224industries/webflow-ai-sdk","version":"2.0.0","keywords":["ai","ai-sdk","webflow","cms","tools"],"author":{"url":"https://bensabic.dev","name":"Ben Sabic"},"license":"MIT","_id":"@224industries/webflow-ai-sdk@2.0.0","maintainers":[{"name":"bensabic","email":"ben@bensabic.ca"}],"homepage":"https://github.com/224-Industries/webflow-ai-sdk","bugs":{"url":"https://github.com/224-Industries/webflow-ai-sdk/issues"},"dist":{"shasum":"cb18c01a343e02503a2b1be79531935eba9e6bc0","tarball":"https://registry.npmjs.org/@224industries/webflow-ai-sdk/-/webflow-ai-sdk-2.0.0.tgz","fileCount":8,"integrity":"sha512-bDKTgA1iHtywcEK8hxFOUt/W8XqZr2uVKnZBZXd8eVmuibUXtYIG0PgwZphan+EWkETDEvcrLMV4OvUWGBLIww==","signatures":[{"sig":"MEUCIDjzhqSVmOlqYeMjILMUbnVMcm8U1A2Ee/XA8kUBQid1AiEA9EA3VSxz7IRzs+K+gi5qfS/JUbJjn7BG6hj/qqTKy/g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@224industries%2fwebflow-ai-sdk@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":49773},"type":"module","engines":{"node":">=20"},"exports":{"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js"},"./agents":{"types":"./dist/agents/index.d.ts","import":"./dist/agents/index.js"}},"gitHead":"21ea5ea9462e4f51f8c4babff83f19dc64cda6e2","scripts":{"fix":"ultracite fix","test":"vitest run","build":"tsup src/tools/index.ts src/agents/index.ts --format esm --dts","check":"ultracite check","bump-deps":"npx npm-check-updates -u -p pnpm && pnpm install","type-check":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:7fab745c-e162-48b3-869f-2e6190729500"}},"repository":{"url":"git+https://github.com/224-Industries/webflow-ai-sdk.git","type":"git"},"_npmVersion":"11.8.0","description":"Webflow tools for the AI SDK","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"packageManager":"pnpm@10.29.3","devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","ultracite":"7.2.1","typescript":"^5.9.3","@types/node":"^25.2.3","@biomejs/biome":"2.3.15"},"peerDependencies":{"ai":"^6.0.67","zod":"^4.3.6","resend-ai-sdk":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/webflow-ai-sdk_2.0.0_1771141137361_0.6602414069491505","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-02-13T04:47:27.141Z","modified":"2026-02-17T06:31:37.988Z","0.0.0":"2026-02-13T04:47:27.412Z","1.0.0":"2026-02-13T05:06:42.919Z","2.0.0":"2026-02-15T07:38:57.530Z"},"bugs":{"url":"https://github.com/224-Industries/webflow-ai-sdk/issues"},"author":{"url":"https://bensabic.dev","name":"Ben Sabic"},"license":"MIT","homepage":"https://github.com/224-Industries/webflow-ai-sdk","keywords":["ai","ai-sdk","webflow","cms","tools"],"repository":{"url":"git+https://github.com/224-Industries/webflow-ai-sdk.git","type":"git"},"description":"Webflow tools for the AI SDK","maintainers":[{"email":"ben@bensabic.ca","name":"bensabic"},{"email":"kirk@224industries.com.au","name":"kirk224"}],"readme":"# Webflow - AI SDK Tools and Agents\n\n![224 Industries OSS](https://img.shields.io/badge/224_Industries-OSS-111212?style=for-the-badge&labelColor=6AFFDC)\n![MIT License](https://img.shields.io/badge/License-MIT-111212?style=for-the-badge&labelColor=6AFFDC)\n[![Webflow Premium Partner](https://img.shields.io/badge/Premium_Partner-146EF5?style=for-the-badge&logo=webflow&logoColor=white)](https://webflow.com/@224-industries)\n![Vercel AI SDK](https://img.shields.io/badge/Vercel-AI%20SDK-000000?style=for-the-badge&logo=vercel&logoColor=white)\n\nGive your AI agents the power to list and publish sites, manage pages, retrieve form submissions, and even add custom code to your Webflow projects. Pre-built agents like the `LeadResponseAgent` can automatically process form submissions and send response emails using [Resend](https://resend.com) templates.\n\n## Installation\n\n```bash\nnpm install @224industries/webflow-ai-sdk\n```\n\n## Setup\n\nSet the following environment variables:\n\n```bash\nWEBFLOW_API_KEY=\"your_webflow_api_key\"\nWEBFLOW_SITE_ID=\"your_default_site_id\"\n\n# Required for LeadResponseAgent (uses Resend via `resend-ai-sdk` tools)\nRESEND_API_KEY=\"your_resend_api_key\"\nRESEND_EMAIL_DOMAIN=\"your_verified_domain\"\n```\n\nGet your Webflow API key from the [Webflow Dashboard](https://webflow.com/dashboard) and your Resend API key from the [Resend Dashboard](https://resend.com/api-keys) (optional).\n\n## Usage\n\n```ts\n// Import individual tools\nimport { generateText, stepCountIs } from \"ai\";\nimport { listSites, listPages, updatePage, publishSite } from \"@224industries/webflow-ai-sdk/tools\";\n\nconst { text } = await generateText({\n  model: 'openai/gpt-5.2',\n  tools: { listSites, listPages, updatePage, publishSite },\n  prompt: \"List all my sites and their pages\",\n  stopWhen: stepCountIs(5),\n});\n```\n\n```ts\n// Or use a pre-configured agent\nimport { LeadResponseAgent } from \"@224industries/webflow-ai-sdk/agents\";\nimport { anthropic } from \"@ai-sdk/anthropic\";\n\nconst agent = new LeadResponseAgent({\n  model: anthropic(\"claude-sonnet-4-20250514\"),\n});\n\nconst { text } = await agent.generate({\n  prompt: \"Check my Webflow site for new form submissions and respond to any new leads using the New Lead template in Resend.\",\n});\n```\n\n## Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `listSites` | List all Webflow sites accessible with the current API token |\n| `publishSite` | Publish a site to custom domains or the Webflow subdomain |\n| `listPages` | List all pages for a site with pagination |\n| `updatePage` | Update a page's title, slug, SEO, and Open Graph metadata |\n| `listForms` | List all forms for a site with field definitions |\n| `listFormSubmissions` | Retrieve submitted form data, optionally filtered by form |\n| `listCustomCode` | List all custom code scripts applied to a site and its pages |\n| `addCustomCode` | Register and apply an inline script to a site or page |\n\n## Available Agents\n\n| Agent | Description |\n|-------|-------------|\n| `LeadResponseAgent` | Processes Webflow form submissions, creates Resend contacts, and sends template-based response emails |\n\n## AI SDK Library\n\nFind other AI SDK agents and tools in the [AI SDK Library](https://aisdklibrary.com).\n\n## Resources\n\n- [Vercel AI SDK documentation](https://ai-sdk.dev/docs/introduction)\n- [Webflow API documentation](https://developers.webflow.com)\n- [Resend AI SDK tools](https://github.com/Flash-Brew-Digital/resend-ai-sdk)\n- [Resend API documentation](https://resend.com/docs/api-reference/introduction)\n\n## Contributing\n\nContributions are welcome! Please read our [Contributing Guide](.github/CONTRIBUTING.md) for more information.\n\n## License\n\n[MIT License](LICENSE)\n\n## Creator\n\n[Ben Sabic](https://bensabic.dev) (Fractional CTO) at [224 Industries](https://224industries.com.au)\n","readmeFilename":"README.md"}