cms-collection-setup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCMS Collection Setup
CMS集合创建指南
Create a new CMS collection with custom fields, relationships, and proper configuration.
创建带有自定义字段、关联关系和正确配置的新CMS集合。
Important Note
重要说明
ALWAYS use Webflow MCP tools for all operations:
- Use Webflow MCP's to get best practices before starting
webflow_guide_tool - Use Webflow MCP's with action
data_sites_toolto identify available siteslist_sites - Use Webflow MCP's with action
data_sites_toolto retrieve site details and plan limitsget_site - Use Webflow MCP's with action
data_cms_toolto check for naming conflictsget_collection_list - Use Webflow MCP's with action
data_cms_toolto create the collectioncreate_collection - Use Webflow MCP's with action
data_cms_toolto create static fieldscreate_collection_static_field - Use Webflow MCP's with action
data_cms_toolto create option fieldscreate_collection_option_field - Use Webflow MCP's with action
data_cms_toolto create reference/multi-reference fieldscreate_collection_reference_field - Use Webflow MCP's with action
data_cms_toolto verify collection was created correctlyget_collection_details - DO NOT use any other tools or methods for Webflow operations
- All tool calls must include the required parameter (15-25 words, third-person perspective)
context
所有操作必须使用Webflow MCP工具:
- 开始前使用Webflow MCP的获取最佳实践
webflow_guide_tool - 使用Webflow MCP的并指定动作
data_sites_tool来识别可用站点list_sites - 使用Webflow MCP的并指定动作
data_sites_tool来获取站点详情和套餐限制get_site - 使用Webflow MCP的并指定动作
data_cms_tool来检查命名冲突get_collection_list - 使用Webflow MCP的并指定动作
data_cms_tool来创建集合create_collection - 使用Webflow MCP的并指定动作
data_cms_tool来创建静态字段create_collection_static_field - 使用Webflow MCP的并指定动作
data_cms_tool来创建选项字段create_collection_option_field - 使用Webflow MCP的并指定动作
data_cms_tool来创建引用/多引用字段create_collection_reference_field - 使用Webflow MCP的并指定动作
data_cms_tool来验证集合是否创建正确get_collection_details - 请勿使用任何其他工具或方法进行Webflow操作
- 所有工具调用必须包含必填的参数(15-25个单词,第三人称视角)
context
Instructions
操作步骤
Phase 1: Site Selection & Discovery
阶段1:站点选择与探查
- Get site information: Use Webflow MCP's with action
data_sites_toolto identify target sitelist_sites - Confirm site: Ask user to select site if multiple available
- Check plan limits: Use Webflow MCP's with action
data_sites_toolto verify collection limitsget_site - List existing collections: Use Webflow MCP's with action
data_cms_toolto check for conflictsget_collection_list - Validate naming: Ensure new collection name doesn't conflict with existing
- 获取站点信息:使用Webflow MCP的并指定动作
data_sites_tool来识别目标站点list_sites - 确认站点:如果有多个可用站点,请让用户选择
- 检查套餐限制:使用Webflow MCP的并指定动作
data_sites_tool来验证集合数量限制get_site - 列出现有集合:使用Webflow MCP的并指定动作
data_cms_tool来检查冲突get_collection_list - 验证命名:确保新集合名称与现有集合无冲突
Phase 2: Requirements Gathering
阶段2:需求收集
- Get collection details: Ask user for:
- Collection display name (e.g., "Blog Posts")
- Singular name (e.g., "Blog Post")
- Optional: Custom slug (default: auto-generated from display name)
- Get field definitions: For each field, gather:
- Field name (e.g., "Author Name", "Publish Date")
- Field type (Text, Rich Text, Image, Option, Reference, etc.)
- Required vs optional
- Any validation rules or help text
- Identify relationships: Determine if collection needs:
- Reference fields (one-to-many relationships)
- Multi-reference fields (many-to-many relationships)
- Option fields (controlled vocabulary)
- 获取集合详情:向用户收集以下信息:
- 集合显示名称(例如:“博客文章”)
- 单数名称(例如:“博客文章”)
- 可选:自定义slug(默认:从显示名称自动生成)
- 获取字段定义:针对每个字段,收集:
- 字段名称(例如:“作者姓名”、“发布日期”)
- 字段类型(Text、Rich Text、Image、Option、Reference等)
- 必填/可选
- 任何验证规则或帮助文本
- 识别关联关系:确定集合是否需要:
- 引用字段(一对多关联)
- 多引用字段(多对多关联)
- 选项字段(受控词汇)
Phase 3: Schema Validation & Planning
阶段3:架构验证与规划
- Validate field types: Check all field types are supported
- Check field limits: Ensure within Webflow limits:
- Max fields per collection: varies by plan
- Max 5 multi-reference fields per collection
- Plan creation order: Organize fields by dependency:
- Create collections in order if references exist
- Create referenced collections first
- Create option fields before reference fields
- Generate preview: Show complete schema with all fields
- 验证字段类型:检查所有字段类型均受支持
- 检查字段限制:确保符合Webflow限制:
- 每个集合的最大字段数:因套餐而异
- 每个集合最多5个多引用字段
- 规划创建顺序:按依赖关系组织字段:
- 如果存在引用关系,按顺序创建集合
- 先创建被引用的集合
- 先创建选项字段,再创建引用字段
- 生成预览:展示包含所有字段的完整架构
Phase 4: User Approval
阶段4:用户确认
- Show complete preview: Display:
- Collection name and slug
- All fields with types and properties
- Any relationships to other collections
- Plan limit verification
- Validate schema: Check for common issues:
- Missing required fields (name, slug always required)
- Invalid field types
- Reference to non-existent collections
- Exceeding plan limits
- Request confirmation: Wait for explicit "create" approval
- 展示完整预览:显示以下内容:
- 集合名称和slug
- 所有字段及其类型和属性
- 与其他集合的任何关联关系
- 套餐限制验证结果
- 验证架构:检查常见问题:
- 缺少必填字段(名称、slug始终为必填)
- 无效字段类型
- 引用不存在的集合
- 超出套餐限制
- 请求确认:等待用户明确的“创建”指令
Phase 5: Collection Creation
阶段5:集合创建
- Create collection: Use Webflow MCP's with action
data_cms_toolwith:create_collection- Display name
- Singular name
- Optional slug
- Capture collection ID: Save for field creation
- Show progress: Report collection created successfully
- 创建集合:使用Webflow MCP的并指定动作
data_cms_tool,传入以下参数:create_collection- 显示名称
- 单数名称
- 可选slug
- 记录集合ID:保存ID用于后续字段创建
- 展示进度:告知用户集合创建成功
Phase 6: Field Creation
阶段6:字段创建
- Create fields in order: For each field:
- Use appropriate creation tool based on type
- Static fields: with action
data_cms_toolcreate_collection_static_field - Option fields: with action
data_cms_toolcreate_collection_option_field - Reference fields: with action
data_cms_toolcreate_collection_reference_field
- Set field properties:
- Display name
- Required flag
- Help text (if provided)
- Validation rules (if applicable)
- Show progress: Report each field created
- Handle errors: If field creation fails, report and continue
- 按顺序创建字段:针对每个字段:
- 根据类型使用对应的创建工具
- 静态字段:使用并指定动作
data_cms_toolcreate_collection_static_field - 选项字段:使用并指定动作
data_cms_toolcreate_collection_option_field - 引用字段:使用并指定动作
data_cms_toolcreate_collection_reference_field
- 设置字段属性:
- 显示名称
- 必填标记
- 帮助文本(如果提供)
- 验证规则(如适用)
- 展示进度:告知用户每个字段创建完成
- 处理错误:如果字段创建失败,报告错误并继续创建其他字段
Phase 7: Verification & Reporting
阶段7:验证与报告
- Verify collection: Use Webflow MCP's with action
data_cms_toolto retrieve full schemaget_collection_details - Confirm all fields: Check that all requested fields were created
- Generate report: Show:
- Collection ID
- Collection name and slug
- All fields created with IDs
- Any failures or warnings
- Provide next steps: Suggest:
- Use bulk-cms-update to add initial items
- Create collection pages in Designer
- Set up relationships if applicable
- 验证集合:使用Webflow MCP的并指定动作
data_cms_tool来获取完整架构get_collection_details - 确认所有字段:检查所有请求的字段均已创建
- 生成报告:展示以下内容:
- 集合ID
- 集合名称和slug
- 所有已创建字段及其ID
- 任何失败或警告信息
- 提供后续步骤建议:
- 使用bulk-cms-update添加初始内容
- 在Designer中创建集合页面
- 如适用,设置关联关系
Field Type Reference
字段类型参考
Static Field Types
静态字段类型
PlainText - Short text (max 256 chars) or long text
- Use for: Titles, names, descriptions, excerpts
- Properties: maxLength validation (256 for short)
- Example: "Title", "Author Name", "Excerpt"
RichText - Formatted text with HTML
- Use for: Blog content, bios, articles, long descriptions
- Properties: No length limit
- Example: "Post Content", "Bio", "Description"
Email - Email address
- Use for: Contact emails, author emails
- Properties: Email format validation
- Example: "Contact Email", "Author Email"
Phone - Phone number
- Use for: Contact numbers
- Properties: E.164 format
- Example: "Phone Number", "Mobile"
Link - External URL or internal link
- Use for: Website links, social media, external resources
- Properties: URL validation
- Example: "Website", "LinkedIn Profile"
Number - Numeric values
- Use for: Prices, ratings, counts, order numbers
- Properties: Integer or decimal
- Example: "Price", "Rating", "Order"
Image - Single image
- Use for: Featured images, photos, thumbnails
- Properties: Max 4MB per image
- Example: "Featured Image", "Photo", "Thumbnail"
MultiImage - Multiple images (up to 25)
- Use for: Galleries, product photos
- Properties: Max 25 images, 4MB each
- Example: "Gallery", "Product Photos"
File - File upload
- Use for: PDFs, documents, downloads
- Properties: Max 4MB per file
- Example: "Resume PDF", "Brochure", "Manual"
Video - Video embed (YouTube/Vimeo)
- Use for: Video content
- Properties: Embed URL
- Example: "Tutorial Video", "Demo"
DateTime - Date and/or time
- Use for: Publish dates, event dates, deadlines
- Properties: ISO 8601 format
- Example: "Publish Date", "Event Date"
Switch - Boolean (true/false)
- Use for: Featured flags, visibility toggles
- Properties: Boolean value
- Example: "Featured", "Published", "Active"
Color - Color value
- Use for: Theme colors, accents, brand colors
- Properties: Hex format
- Example: "Brand Color", "Accent Color"
PlainText - 短文本(最多256字符)或长文本
- 适用场景:标题、名称、描述、摘要
- 属性:最大长度验证(短文本为256字符)
- 示例:“标题”、“作者姓名”、“摘要”
RichText - 带HTML的格式化文本
- 适用场景:博客内容、个人简介、文章、长描述
- 属性:无长度限制
- 示例:“文章内容”、“个人简介”、“描述”
Email - 电子邮件地址
- 适用场景:联系邮箱、作者邮箱
- 属性:邮箱格式验证
- 示例:“联系邮箱”、“作者邮箱”
Phone - 电话号码
- 适用场景:联系电话
- 属性:E.164格式
- 示例:“电话号码”、“手机号”
Link - 外部URL或内部链接
- 适用场景:网站链接、社交媒体、外部资源
- 属性:URL格式验证
- 示例:“网站”、“LinkedIn主页”
Number - 数值
- 适用场景:价格、评分、计数、订单号
- 属性:整数或小数
- 示例:“价格”、“评分”、“订单号”
Image - 单张图片
- 适用场景:特色图片、照片、缩略图
- 属性:单张图片最大4MB
- 示例:“特色图片”、“照片”、“缩略图”
MultiImage - 多张图片(最多25张)
- 适用场景:相册、产品图片
- 属性:最多25张图片,单张最大4MB
- 示例:“相册”、“产品图片”
File - 文件上传
- 适用场景:PDF、文档、下载资源
- 属性:单个文件最大4MB
- 示例:“简历PDF”、“手册”、“指南”
Video - 视频嵌入(YouTube/Vimeo)
- 适用场景:视频内容
- 属性:嵌入URL
- 示例:“教程视频”、“演示视频”
DateTime - 日期和/或时间
- 适用场景:发布日期、活动日期、截止日期
- 属性:ISO 8601格式
- 示例:“发布日期”、“活动日期”
Switch - 布尔值(真/假)
- 适用场景:特色标记、可见性开关
- 属性:布尔值
- 示例:“特色”、“已发布”、“激活”
Color - 颜色值
- 适用场景:主题色、强调色、品牌色
- 属性:十六进制格式
- 示例:“品牌色”、“强调色”
Option Field Type
选项字段类型
Option - Single choice from predefined list
- Use for: Status, category, type, priority
- Properties: List of option names
- Example: "Status" (Draft, Review, Published)
- Creation: Use with action
data_cms_toolwith options arraycreate_collection_option_field
Example:
json
{
"type": "Option",
"displayName": "Status",
"metadata": {
"options": [
{"name": "Draft"},
{"name": "In Review"},
{"name": "Published"}
]
}
}Option - 从预定义列表中选择单个选项
- 适用场景:状态、分类、类型、优先级
- 属性:选项名称列表
- 示例:“状态”(草稿、审核中、已发布)
- 创建方式:使用并指定动作
data_cms_tool,传入options数组create_collection_option_field
示例:
json
{
"type": "Option",
"displayName": "Status",
"metadata": {
"options": [
{"name": "Draft"},
{"name": "In Review"},
{"name": "Published"}
]
}
}Reference Field Types
引用字段类型
Reference - Link to one item in another collection (one-to-many)
- Use for: Author → Post, Category → Post, Brand → Product
- Properties: Collection ID of referenced collection
- Example: "Author" (reference to Authors collection)
- Creation: Use with action
data_cms_toolwith collectionIdcreate_collection_reference_field
MultiReference - Link to multiple items in another collection (many-to-many)
- Use for: Post → Tags, Product → Features, Project → Technologies
- Properties: Collection ID of referenced collection
- Limit: Max 5 multi-reference fields per collection
- Example: "Tags" (reference to Tags collection)
- Creation: Use with action
data_cms_toolwith collectionIdcreate_collection_reference_field
Reference Field Example:
json
{
"type": "Reference",
"displayName": "Author",
"metadata": {
"collectionId": "abc123..."
}
}Multi-Reference Field Example:
json
{
"type": "MultiReference",
"displayName": "Tags",
"metadata": {
"collectionId": "xyz789..."
}
}Reference - 链接到另一个集合中的单个条目(一对多)
- 适用场景:作者 → 文章、分类 → 文章、品牌 → 产品
- 属性:被引用集合的ID
- 示例:“作者”(引用至Authors集合)
- 创建方式:使用并指定动作
data_cms_tool,传入collectionIdcreate_collection_reference_field
MultiReference - 链接到另一个集合中的多个条目(多对多)
- 适用场景:文章 → 标签、产品 → 特性、项目 → 技术栈
- 属性:被引用集合的ID
- 限制:每个集合最多5个多引用字段
- 示例:“标签”(引用至Tags集合)
- 创建方式:使用并指定动作
data_cms_tool,传入collectionIdcreate_collection_reference_field
引用字段示例:
json
{
"type": "Reference",
"displayName": "Author",
"metadata": {
"collectionId": "abc123..."
}
}多引用字段示例:
json
{
"type": "MultiReference",
"displayName": "Tags",
"metadata": {
"collectionId": "xyz789..."
}
}Examples
示例
Example 1: Simple Blog Collection
示例1:简单博客集合
User prompt:
Create a Blog Posts collection with title, content, author, and publish dateStep 1: Discovery
🔍 CMS Collection Setup
Available sites:
1. Company Website
2. Blog Site
Which site? (1/2)Step 2: After User Selects Site
📊 Existing Collections on Company Website:
Currently: 0 collections
Plan limit: 20 collections (CMS Plan)
✅ You have capacity to create new collections.
---
📋 Collection Requirements
Display Name: Blog Posts
Singular Name: Blog Post
Slug: blog-posts (auto-generated)
Fields to create:
1. Title - Text (required)
2. Content - Rich Text (required)
3. Author - Text
4. Publish Date - Date/Time (required)
Is this correct? (yes/no)
If you want to add/modify fields, describe the changes.Step 3: Preview
📋 Preview: Create "Blog Posts" Collection
Collection:
├── Display Name: Blog Posts
├── Singular Name: Blog Post
├── Slug: blog-posts
└── Site: Company Website
Fields (6 total):
├── name (PlainText, required) ← Auto-created
├── slug (PlainText, required) ← Auto-created
├── title (PlainText, required)
├── content (RichText, required)
├── author (PlainText)
└── publish-date (DateTime, required)
✅ Validation Passed:
- Collection name available
- Within plan limits (0/20 collections)
- All field types valid
- No dependency issues
⚠️ Type "create" to proceed.Step 4: Creation
🔄 Creating Collection...
✅ Collection created: Blog Posts (ID: 64f1a2b3...)
Adding fields...
├── ✅ title (PlainText)
├── ✅ content (RichText)
├── ✅ author (PlainText)
└── ✅ publish-date (DateTime)
Progress: ████████████████████ 100% (4/4 fields)
🎉 Collection Setup Complete!
Collection: Blog Posts
ID: 64f1a2b3...
Fields: 6 (2 auto-created + 4 custom)
---
💡 Next Steps:
1. Use bulk-cms-update to add initial blog posts
2. Create collection template page in Designer
3. Set up collection list page for blog index
4. Configure SEO settings for dynamic pages用户请求:
创建一个包含标题、内容、作者和发布日期的博客文章集合步骤1:探查
🔍 CMS集合创建
可用站点:
1. 公司官网
2. 博客站点
请选择站点?(1/2)步骤2:用户选择站点后
📊 公司官网现有集合:
当前:0个集合
套餐限制:20个集合(CMS套餐)
✅ 您有创建新集合的容量。
---
📋 集合需求
显示名称:博客文章
单数名称:博客文章
Slug:blog-posts(自动生成)
需创建的字段:
1. 标题 - Text(必填)
2. 内容 - Rich Text(必填)
3. 作者 - Text
4. 发布日期 - Date/Time(必填)
以上信息是否正确?(是/否)
如果需要添加/修改字段,请描述具体更改。步骤3:预览
📋 预览:创建“博客文章”集合
集合:
├── 显示名称:博客文章
├── 单数名称:博客文章
├── Slug:blog-posts
└── 站点:公司官网
字段(共6个):
├── name (PlainText, 必填) ← 自动创建
├── slug (PlainText, 必填) ← 自动创建
├── title (PlainText, 必填)
├── content (RichText, 必填)
├── author (PlainText)
└── publish-date (DateTime, 必填)
✅ 验证通过:
- 集合名称可用
- 在套餐限制内(0/20个集合)
- 所有字段类型有效
- 无依赖问题
⚠️ 输入“create”以继续。步骤4:创建
🔄 正在创建集合...
✅ 集合创建完成:博客文章(ID: 64f1a2b3...)
正在添加字段...
├── ✅ title (PlainText)
├── ✅ content (RichText)
├── ✅ author (PlainText)
└── ✅ publish-date (DateTime)
进度:████████████████████ 100% (4/4个字段)
🎉 集合创建完成!
集合:博客文章
ID: 64f1a2b3...
字段:6个(2个自动创建 + 4个自定义)
---
💡 后续步骤:
1. 使用bulk-cms-update添加初始博客文章
2. 在Designer中创建集合模板页面
3. 为博客首页创建集合列表页面
4. 配置动态页面的SEO设置Example 2: Collection with Relationships
示例2:带关联关系的集合
User prompt:
Create a Products collection with name, price, description, images, brand, and tagsStep 1: After Initial Gathering
📋 Collection Analysis
I see you want:
- Brand: This should be a reference field
- Tags: This should be a multi-reference field
This requires creating additional collections first:
1. Brands collection
2. Tags collection
Then we can create Products with references to them.
Would you like me to:
A) Create all three collections (Brands, Tags, Products)
B) Just create Products (you'll add relationships later)
C) Modify the requirements
Your choice? (A/B/C)Step 2: After User Selects "A"
📋 Preview: Create 3 Collections
---用户请求:
创建一个包含名称、价格、描述、图片、品牌和标签的产品集合步骤1:初始收集后
📋 集合分析
我了解到您需要:
- 品牌:这应该是一个引用字段
- 标签:这应该是一个多引用字段
这需要先创建额外的集合:
1. 品牌集合
2. 标签集合
之后我们才能创建带有引用关系的产品集合。
您希望我:
A) 创建所有三个集合(品牌、标签、产品)
B) 仅创建产品集合(您稍后自行添加关联关系)
C) 修改需求
请选择?(A/B/C)步骤2:用户选择“A”后
📋 预览:创建3个集合
---1. Brands Collection
1. 品牌集合
Fields (4 total):
├── name (PlainText, required) ← Auto
├── slug (PlainText, required) ← Auto
├── logo (Image)
└── description (PlainText)
字段(共4个):
├── name (PlainText, 必填) ← 自动创建
├── slug (PlainText, 必填) ← 自动创建
├── logo (Image)
└── description (PlainText)
2. Tags Collection
2. 标签集合
Fields (3 total):
├── name (PlainText, required) ← Auto
├── slug (PlainText, required) ← Auto
└── color (Color)
字段(共3个):
├── name (PlainText, 必填) ← 自动创建
├── slug (PlainText, 必填) ← 自动创建
└── color (Color)
3. Products Collection
3. 产品集合
Fields (9 total):
├── name (PlainText, required) ← Auto
├── slug (PlainText, required) ← Auto
├── price (Number, required)
├── description (RichText)
├── images (MultiImage)
├── brand (Reference → Brands)
└── tags (MultiReference → Tags)
Creation Order:
- Brands (no dependencies)
- Tags (no dependencies)
- Products (references 1 & 2)
✅ Validation:
- All collections available
- Within plan limits (0/20 collections)
- Multi-reference limit: 1/5 ✅
- All dependencies resolvable
⚠️ Type "create" to proceed with all 3 collections.
**Step 3: Creation**🔄 Creating Collections...
[1/3] Creating Brands...
✅ Brands collection created (ID: abc123...)
├── ✅ logo (Image)
└── ✅ description (PlainText)
[2/3] Creating Tags...
✅ Tags collection created (ID: def456...)
└── ✅ color (Color)
[3/3] Creating Products...
✅ Products collection created (ID: ghi789...)
├── ✅ price (Number)
├── ✅ description (RichText)
├── ✅ images (MultiImage)
├── ✅ brand (Reference → Brands)
└── ✅ tags (MultiReference → Tags)
Progress: ████████████████████ 100% (3/3 collections)
🎉 All Collections Created!
Summary:
├── Brands (ID: abc123...)
├── Tags (ID: def456...)
└── Products (ID: ghi789...)
💡 Next Steps:
- Add brand items first (use bulk-cms-update)
- Add tag items (use bulk-cms-update)
- Then add products with brand/tag references
- Create collection pages in Designer
undefined字段(共9个):
├── name (PlainText, 必填) ← 自动创建
├── slug (PlainText, 必填) ← 自动创建
├── price (Number, 必填)
├── description (RichText)
├── images (MultiImage)
├── brand (Reference → 品牌)
└── tags (MultiReference → 标签)
创建顺序:
- 品牌(无依赖)
- 标签(无依赖)
- 产品(引用1和2)
✅ 验证:
- 所有集合名称可用
- 在套餐限制内(0/20个集合)
- 多引用字段数量:1/5 ✅
- 所有依赖关系可解决
⚠️ 输入“create”以创建所有3个集合。
**步骤3:创建**🔄 正在创建集合...
[1/3] 创建品牌集合...
✅ 品牌集合创建完成(ID: abc123...)
├── ✅ logo (Image)
└── ✅ description (PlainText)
[2/3] 创建标签集合...
✅ 标签集合创建完成(ID: def456...)
└── ✅ color (Color)
[3/3] 创建产品集合...
✅ 产品集合创建完成(ID: ghi789...)
├── ✅ price (Number)
├── ✅ description (RichText)
├── ✅ images (MultiImage)
├── ✅ brand (Reference → 品牌)
└── ✅ tags (MultiReference → 标签)
进度:████████████████████ 100% (3/3个集合)
🎉 所有集合创建完成!
摘要:
├── 品牌(ID: abc123...)
├── 标签(ID: def456...)
└── 产品(ID: ghi789...)
💡 后续步骤:
- 先添加品牌条目(使用bulk-cms-update)
- 添加标签条目(使用bulk-cms-update)
- 然后添加带有品牌/标签引用的产品条目
- 在Designer中创建集合页面
undefinedExample 3: Team Members with Option Field
示例3:带选项字段的团队成员集合
User prompt:
Create a Team Members collection with name, role (dropdown: Designer, Developer, Manager), bio, photo, emailStep 1: Preview
📋 Preview: Create "Team Members" Collection
Collection:
├── Display Name: Team Members
├── Singular Name: Team Member
└── Slug: team-members
Fields (7 total):
├── name (PlainText, required) ← Auto
├── slug (PlainText, required) ← Auto
├── role (Option, required)
│ Options:
│ ├── Designer
│ ├── Developer
│ └── Manager
├── bio (RichText)
├── photo (Image)
└── email (Email)
✅ Validation Passed
⚠️ Type "create" to proceed.Step 2: Creation
🔄 Creating Collection...
✅ Collection created: Team Members (ID: jkl012...)
Adding fields...
├── ✅ role (Option: 3 options)
├── ✅ bio (RichText)
├── ✅ photo (Image)
└── ✅ email (Email)
Progress: ████████████████████ 100% (4/4 fields)
🎉 Collection Setup Complete!
Collection: Team Members
Fields: 6 (2 auto + 4 custom)
Field Details:
- role: Option field with 3 choices
• Designer
• Developer
• Manager
---
💡 Next Steps:
1. Add team member items
2. Create team page in Designer
3. Consider adding:
- LinkedIn profile (Link field)
- Years of experience (Number field)
- Specializations (MultiReference to Skills collection)用户请求:
创建一个包含姓名、职位(下拉选项:设计师、开发人员、经理)、个人简介、照片、邮箱的团队成员集合步骤1:预览
📋 预览:创建“团队成员”集合
集合:
├── 显示名称:团队成员
├── 单数名称:团队成员
└── Slug: team-members
字段(共7个):
├── name (PlainText, 必填) ← 自动创建
├── slug (PlainText, 必填) ← 自动创建
├── role (Option, 必填)
│ 选项:
│ ├── 设计师
│ ├── 开发人员
│ └── 经理
├── bio (RichText)
├── photo (Image)
└── email (Email)
✅ 验证通过
⚠️ 输入“create”以继续。步骤2:创建
🔄 正在创建集合...
✅ 集合创建完成:团队成员(ID: jkl012...)
正在添加字段...
├── ✅ role (Option: 3个选项)
├── ✅ bio (RichText)
├── ✅ photo (Image)
└── ✅ email (Email)
进度:████████████████████ 100% (4/4个字段)
🎉 集合创建完成!
集合:团队成员
字段:6个(2个自动创建 + 4个自定义)
字段详情:
- role: 包含3个选项的选项字段
• 设计师
• 开发人员
• 经理
---
💡 后续步骤:
1. 添加团队成员条目
2. 在Designer中创建团队页面
3. 考虑添加:
- LinkedIn主页(Link字段)
- 从业年限(Number字段)
- 专业领域(MultiReference至Skills集合)Example 4: Complex E-commerce Setup
示例4:复杂电商设置
User prompt:
Create an e-commerce setup with Products, Categories, Brands, and FeaturesStep 1: Requirements Clarification
📋 E-commerce Collection Planning
I'll create 4 collections:
1. **Categories** - Product categories
2. **Brands** - Product brands
3. **Features** - Product features (e.g., "Waterproof", "Wireless")
4. **Products** - Main product catalog
Relationships:
- Product → Category (Reference)
- Product → Brand (Reference)
- Product → Features (MultiReference)
Fields per collection:
**Categories:**
- Name, Slug (auto)
- Description
- Parent Category (self-reference for hierarchy)
- Icon
**Brands:**
- Name, Slug (auto)
- Logo
- Description
**Features:**
- Name, Slug (auto)
- Icon
- Description
**Products:**
- Name, Slug (auto)
- Price
- Sale Price
- Description
- Images (MultiImage)
- Category (Reference → Categories)
- Brand (Reference → Brands)
- Features (MultiReference → Features)
- In Stock (Switch)
- SKU (PlainText)
Is this structure good? (yes/modify/cancel)Step 2: Preview (User says "yes")
📋 Preview: Create E-commerce Collections
---用户请求:
创建包含产品、分类、品牌和特性的电商设置步骤1:需求澄清
📋 电商集合规划
我将创建4个集合:
1. **分类** - 产品分类
2. **品牌** - 产品品牌
3. **特性** - 产品特性(例如:“防水”、“无线”)
4. **产品** - 主产品目录
关联关系:
- 产品 → 分类(引用)
- 产品 → 品牌(引用)
- 产品 → 特性(多引用)
每个集合的字段:
**分类:**
- 名称、Slug(自动)
- 描述
- 父分类(自引用用于层级结构)
- 图标
**品牌:**
- 名称、Slug(自动)
- Logo
- 描述
**特性:**
- 名称、Slug(自动)
- 图标
- 描述
**产品:**
- 名称、Slug(自动)
- 价格
- 促销价
- 描述
- 图片(MultiImage)
- 分类(引用 → 分类)
- 品牌(引用 → 品牌)
- 特性(多引用 → 特性)
- 库存状态(Switch)
- SKU(PlainText)
以上结构是否合适?(是/修改/取消)步骤2:预览(用户选择“是”)
📋 预览:创建电商集合
---Collection 1: Categories
集合1:分类
Fields (5 total):
├── name (PlainText, required)
├── slug (PlainText, required)
├── description (PlainText)
├── parent-category (Reference → Categories) ← Self-reference
└── icon (Image)
字段(共5个):
├── name (PlainText, 必填)
├── slug (PlainText, 必填)
├── description (PlainText)
├── parent-category (Reference → 分类) ← 自引用
└── icon (Image)
Collection 2: Brands
集合2:品牌
Fields (4 total):
├── name (PlainText, required)
├── slug (PlainText, required)
├── logo (Image)
└── description (PlainText)
字段(共4个):
├── name (PlainText, 必填)
├── slug (PlainText, 必填)
├── logo (Image)
└── description (PlainText)
Collection 3: Features
集合3:特性
Fields (4 total):
├── name (PlainText, required)
├── slug (PlainText, required)
├── icon (Image)
└── description (PlainText)
字段(共4个):
├── name (PlainText, 必填)
├── slug (PlainText, 必填)
├── icon (Image)
└── description (PlainText)
Collection 4: Products
集合4:产品
Fields (12 total):
├── name (PlainText, required)
├── slug (PlainText, required)
├── price (Number, required)
├── sale-price (Number)
├── description (RichText)
├── images (MultiImage)
├── category (Reference → Categories)
├── brand (Reference → Brands)
├── features (MultiReference → Features)
├── in-stock (Switch)
└── sku (PlainText)
Creation Order:
- Categories (self-reference OK)
- Brands (no dependencies)
- Features (no dependencies)
- Products (references 1, 2, 3)
✅ Validation:
- Within plan limits (0/20 collections)
- Multi-reference count: 1/5 ✅
- All field types valid
- Self-reference supported
⚠️ Type "create" to proceed with all 4 collections.
**Step 3: Creation with Progress**🔄 Creating E-commerce Collections...
[1/4] Creating Categories...
✅ Categories created (ID: aaa111...)
Progress: ████████░░░░░░░░░░░░ 25%
[2/4] Creating Brands...
✅ Brands created (ID: bbb222...)
Progress: ████████████░░░░░░░░ 50%
[3/4] Creating Features...
✅ Features created (ID: ccc333...)
Progress: ████████████████░░░░ 75%
[4/4] Creating Products...
✅ Products created (ID: ddd444...)
Progress: ████████████████████ 100%
🎉 E-commerce Setup Complete!
Collections Created (4):
├── Categories (ID: aaa111..., 5 fields)
├── Brands (ID: bbb222..., 4 fields)
├── Features (ID: ccc333..., 4 fields)
└── Products (ID: ddd444..., 12 fields)
Relationships Configured:
- Products → Categories (one-to-many)
- Products → Brands (one-to-many)
- Products → Features (many-to-many)
- Categories → Parent Category (self-reference)
💡 Recommended Content Order:
- Add categories first (including parent relationships)
- Add brands
- Add features
- Finally add products (with all references)
💡 Next Steps:
- Use bulk-cms-update for initial data
- Create product template page
- Create product listing page with filters
- Set up category landing pages
- Configure e-commerce integration
undefined字段(共12个):
├── name (PlainText, 必填)
├── slug (PlainText, 必填)
├── price (Number, 必填)
├── sale-price (Number)
├── description (RichText)
├── images (MultiImage)
├── category (Reference → 分类)
├── brand (Reference → 品牌)
├── features (MultiReference → 特性)
├── in-stock (Switch)
└── sku (PlainText)
创建顺序:
- 分类(支持自引用)
- 品牌(无依赖)
- 特性(无依赖)
- 产品(引用1、2、3)
✅ 验证:
- 在套餐限制内(0/20个集合)
- 多引用字段数量:1/5 ✅
- 所有字段类型有效
- 自引用受支持
⚠️ 输入“create”以创建所有4个集合。
**步骤3:创建与进度**🔄 正在创建电商集合...
[1/4] 创建分类...
✅ 分类创建完成(ID: aaa111...)
进度:████████░░░░░░░░░░░░ 25%
[2/4] 创建品牌...
✅ 品牌创建完成(ID: bbb222...)
进度:████████████░░░░░░░░ 50%
[3/4] 创建特性...
✅ 特性创建完成(ID: ccc333...)
进度:████████████████░░░░ 75%
[4/4] 创建产品...
✅ 产品创建完成(ID: ddd444...)
进度:████████████████████ 100%
🎉 电商设置完成!
已创建集合(4个):
├── 分类(ID: aaa111..., 5个字段)
├── 品牌(ID: bbb222..., 4个字段)
├── 特性(ID: ccc333..., 4个字段)
└── 产品(ID: ddd444..., 12个字段)
已配置关联关系:
- 产品 → 分类(一对多)
- 产品 → 品牌(一对多)
- 产品 → 特性(多对多)
- 分类 → 父分类(自引用)
💡 推荐内容添加顺序:
- 先添加分类(包括父分类关联)
- 添加品牌
- 添加特性
- 最后添加产品(包含所有引用)
💡 后续步骤:
- 使用bulk-cms-update添加初始数据
- 创建产品模板页面
- 创建带筛选功能的产品列表页面
- 设置分类落地页
- 配置电商集成
undefinedGuidelines
指南
Phase 1: Discovery Best Practices
阶段1:探查最佳实践
Site Selection:
- Always use to get available sites
sites_list - Never assume site ID
- Verify user has correct site selected
Plan Limit Checking:
Check limits before creation:
- Starter: 1 collection, 50 items
- Basic: 2 collections, 200 items
- CMS: 20 collections, 2,000 items
- Business: 40 collections, 10,000 items
- Enterprise: Custom
Warn user if approaching limits.Naming Conflict Prevention:
- Check existing collection names
- Suggest alternative names if conflict
- Validate slug availability
站点选择:
- 始终使用获取可用站点
sites_list - 切勿假设站点ID
- 验证用户选择了正确的站点
套餐限制检查:
创建前检查限制:
- Starter:1个集合,50个条目
- Basic:2个集合,200个条目
- CMS:20个集合,2000个条目
- Business:40个集合,10000个条目
- Enterprise:自定义
如果用户接近限制,发出警告。命名冲突预防:
- 检查现有集合名称
- 如果存在冲突,建议替代名称
- 验证slug可用性
Phase 2: Requirements Gathering Best Practices
阶段2:需求收集最佳实践
Display Name vs Singular Name:
Display Name: Plural form shown in CMS
Singular Name: Singular form for individual items
Examples:
- Display: "Blog Posts" → Singular: "Blog Post"
- Display: "Team Members" → Singular: "Team Member"
- Display: "Products" → Singular: "Product"
- Display: "Categories" → Singular: "Category"Field Naming Conventions:
✅ Good names:
- author-name (descriptive, hyphenated)
- publish-date (clear purpose)
- featured-image (specifies which)
- main-content (explains use)
❌ Bad names:
- text1 (meaningless)
- field (too generic)
- data (unclear)
- img (which image?)Detecting Relationships:
If user says:
"... with author" → Likely reference field
"... with tags" → Likely multi-reference field
"... with category" → Likely reference field
"... with related products" → Likely multi-reference field
Ask clarifying questions:
- Is [author] the same across items? → Reference
- Can items have multiple [tags]? → Multi-reference
- Do you have a [Categories] collection? → Check existence显示名称 vs 单数名称:
显示名称:CMS中显示的复数形式
单数名称:单个条目的单数形式
示例:
- 显示:“博客文章” → 单数:“博客文章”
- 显示:“团队成员” → 单数:“团队成员”
- 显示:“产品” → 单数:“产品”
- 显示:“分类” → 单数:“分类”字段命名规范:
✅ 良好的名称:
- author-name(描述性,连字符分隔)
- publish-date(用途明确)
- featured-image(指定具体图片)
- main-content(说明用途)
❌ 不良的名称:
- text1(无意义)
- field(过于通用)
- data(不明确)
- img(哪张图片?)识别关联关系:
如果用户提到:
“...带有作者” → 可能是引用字段
“...带有标签” → 可能是多引用字段
“...带有分类” → 可能是引用字段
“...带有相关产品” → 可能是多引用字段
提出澄清问题:
- [作者]在不同条目间是否相同?→ 引用
- 条目是否可以有多个[标签]?→ 多引用
- 您是否已有[分类]集合?→ 检查是否存在Phase 3: Schema Validation Best Practices
阶段3:架构验证最佳实践
Field Type Validation:
Common field type mappings:
User says... → Field type:
"title", "name" → PlainText
"description", "summary" → PlainText (long)
"content", "bio", "article" → RichText
"photo", "image", "thumbnail" → Image
"gallery", "photos" → MultiImage
"document", "PDF", "file" → File
"video" → Video
"link", "URL", "website" → Link
"email" → Email
"phone", "mobile" → Phone
"price", "cost", "amount" → Number
"date", "published", "deadline" → DateTime
"featured", "active", "published" → Switch
"status", "type", "category" → Option (if fixed choices)
"color", "theme" → ColorMulti-Reference Limit Check:
Count multi-reference fields requested:
If > 5:
⚠️ Warning: Collection Limit Exceeded
Webflow allows max 5 multi-reference fields per collection.
You requested: 7 multi-reference fields
Options:
1. Choose 5 most important relationships
2. Convert some to reference fields (one-to-many)
3. Create bridging collections
4. Use option fields for simple categorization
Which would you prefer?Dependency Resolution:
For reference fields:
1. Check if referenced collection exists
2. If not, add to creation queue
3. Create in correct order
Example:
Products needs:
- Categories collection (create first)
- Brands collection (create first)
Then create Products字段类型验证:
常见字段类型映射:
用户提到... → 字段类型:
“标题”、“名称” → PlainText
“描述”、“摘要” → PlainText(长文本)
“内容”、“个人简介”、“文章” → RichText
“照片”、“图片”、“缩略图” → Image
“相册”、“照片集” → MultiImage
“文档”、“PDF”、“文件” → File
“视频” → Video
“链接”、“URL”、“网站” → Link
“邮箱” → Email
“电话”、“手机” → Phone
“价格”、“成本”、“金额” → Number
“日期”、“发布时间”、“截止日期” → DateTime
“特色”、“激活”、“已发布” → Switch
“状态”、“类型”、“分类” → Option(如果是固定选项)
“颜色”、“主题” → Color多引用字段限制检查:
统计请求的多引用字段数量:
如果>5:
⚠️ 警告:超出集合限制
Webflow允许每个集合最多5个多引用字段。
您请求了:7个多引用字段
选项:
1. 选择5个最重要的关联关系
2. 将部分转换为引用字段(一对多)
3. 创建桥接集合
4. 对简单分类使用选项字段
您倾向于哪种方案?依赖关系解决:
对于引用字段:
1. 检查被引用集合是否存在
2. 如果不存在,添加到创建队列
3. 按正确顺序创建
示例:
产品需要:
- 分类集合(先创建)
- 品牌集合(先创建)
然后创建产品集合Phase 4: Preview Best Practices
阶段4:预览最佳实践
Complete Preview Format:
📋 Preview: Create "[Collection Name]"
Collection Details:
├── Display Name: [Name]
├── Singular Name: [Singular]
├── Slug: [slug]
└── Site: [Site Name]
Fields ([X] total):
├── name (PlainText, required) ← Auto-created
├── slug (PlainText, required) ← Auto-created
├── [field-1] ([Type], [required/optional])
├── [field-2] ([Type], [required/optional])
│ [Additional info if Option or Reference]
└── [field-n] ([Type], [required/optional])
Relationships:
├── [field] → [Collection] (Reference)
└── [field] → [Collection] (MultiReference)
✅ Validation Results:
- Collection name available: Yes
- Within plan limits: X/Y collections
- Multi-reference count: X/5
- All field types valid: Yes
- Dependencies resolved: Yes
⚠️ Type "create" to proceed.Validation Checks:
Before showing preview:
1. ✅ Collection name available
2. ✅ Within plan collection limit
3. ✅ All field types supported
4. ✅ Multi-reference limit ≤ 5
5. ✅ Referenced collections exist or queued
6. ✅ No circular dependencies
7. ✅ Field names follow conventions完整预览格式:
📋 预览:创建“[集合名称]”
集合详情:
├── 显示名称:[名称]
├── 单数名称:[单数名称]
├── Slug:[slug]
└── 站点:[站点名称]
字段(共[X]个):
├── name (PlainText, 必填) ← 自动创建
├── slug (PlainText, 必填) ← 自动创建
├── [field-1] ([类型], [必填/可选])
├── [field-2] ([类型], [必填/可选])
│ [如果是Option或Reference,添加额外信息]
└── [field-n] ([类型], [必填/可选])
关联关系:
├── [field] → [集合] (Reference)
└── [field] → [集合] (MultiReference)
✅ 验证结果:
- 集合名称可用:是
- 在套餐限制内:X/Y个集合
- 多引用字段数量:X/5
- 所有字段类型有效:是
- 依赖关系已解决:是
⚠️ 输入“create”以继续。验证检查:
显示预览前:
1. ✅ 集合名称可用
2. ✅ 在套餐集合限制内
3. ✅ 所有字段类型受支持
4. ✅ 多引用字段数量≤5
5. ✅ 被引用集合已存在或已加入创建队列
6. ✅ 无循环依赖
7. ✅ 字段名称符合规范Phase 5: Creation Best Practices
阶段5:集合创建最佳实践
Collection Creation:
Required fields:
- displayName (required)
- singularName (required)
- slug (optional, auto-generated if omitted)
Always include both names for clarity:
✅ {"displayName": "Blog Posts", "singularName": "Blog Post"}
❌ {"displayName": "Blog Posts"} (missing singular)Error Handling:
If collection creation fails:
❌ Collection Creation Failed
Error: [Error message from API]
Common causes:
- Collection name already exists
- Invalid characters in name/slug
- Plan limit reached
- API authentication issue
Would you like to:
1. Try a different collection name
2. Check existing collections
3. Upgrade plan
4. Cancel operation集合创建:
必填字段:
- displayName(必填)
- singularName(必填)
- slug(可选,省略则自动生成)
始终同时包含两个名称以确保清晰:
✅ {"displayName": "博客文章", "singularName": "博客文章"}
❌ {"displayName": "博客文章"}(缺少单数名称)错误处理:
如果集合创建失败:
❌ 集合创建失败
错误:[API返回的错误信息]
常见原因:
- 集合名称已存在
- 名称/slug包含无效字符
- 已达套餐限制
- API认证问题
您希望:
1. 尝试其他集合名称
2. 检查现有集合
3. 升级套餐
4. 取消操作Phase 6: Field Creation Best Practices
阶段6:字段创建最佳实践
Field Creation Order:
Create fields in this order:
1. Static fields (Text, Rich Text, Number, etc.)
2. Option fields (with options defined)
3. Reference fields (after referenced collections exist)
For each field:
- Set displayName
- Set isRequired flag
- Add helpText if provided by user
- Set validation rules if applicableField Creation Tools:
Field Type → Tool to use:
PlainText, RichText, Email, Phone, Link, Number,
Image, MultiImage, File, Video, DateTime, Switch, Color
→ collection_fields_create_static
Option
→ collection_fields_create_option
(requires metadata.options array)
Reference, MultiReference
→ collection_fields_create_reference
(requires metadata.collectionId)Progress Reporting:
For each field created:
✅ [field-name] ([FieldType])
If field fails:
❌ [field-name] - [Error message]
Continue with remaining fields even if one fails.
Report all failures at end.Option Field Creation:
{
"type": "Option",
"displayName": "Status",
"isRequired": false,
"metadata": {
"options": [
{"name": "Draft"},
{"name": "Published"},
{"name": "Archived"}
]
}
}
Notes:
- Options have name property
- Options cannot have ID (auto-generated)
- Minimum 2 options required
- Maximum: unlimitedReference Field Creation:
{
"type": "Reference",
"displayName": "Author",
"isRequired": true,
"metadata": {
"collectionId": "abc123..."
}
}
For MultiReference:
{
"type": "MultiReference",
"displayName": "Tags",
"metadata": {
"collectionId": "def456..."
}
}
Notes:
- Must provide collectionId of referenced collection
- Referenced collection must already exist
- Max 5 MultiReference fields per collection字段创建顺序:
按以下顺序创建字段:
1. 静态字段(Text、Rich Text、Number等)
2. 选项字段(已定义选项)
3. 引用字段(被引用集合已创建后)
针对每个字段:
- 设置displayName
- 设置isRequired标记
- 如果用户提供了helpText,添加该文本
- 如适用,设置验证规则字段创建工具:
字段类型 → 使用的工具:
PlainText、RichText、Email、Phone、Link、Number、
Image、MultiImage、File、Video、DateTime、Switch、Color
→ collection_fields_create_static
Option
→ collection_fields_create_option
(需要metadata.options数组)
Reference、MultiReference
→ collection_fields_create_reference
(需要metadata.collectionId)进度报告:
每个字段创建完成后:
✅ [field-name] ([FieldType])
如果字段创建失败:
❌ [field-name] - [错误信息]
即使某个字段创建失败,仍继续创建剩余字段。
最后报告所有失败情况。选项字段创建:
{
"type": "Option",
"displayName": "Status",
"isRequired": false,
"metadata": {
"options": [
{"name": "Draft"},
{"name": "Published"},
{"name": "Archived"}
]
}
}
注意:
- 选项包含name属性
- 选项不能有ID(自动生成)
- 至少需要2个选项
- 最多:无限制引用字段创建:
{
"type": "Reference",
"displayName": "Author",
"isRequired": true,
"metadata": {
"collectionId": "abc123..."
}
}
对于MultiReference:
{
"type": "MultiReference",
"displayName": "Tags",
"metadata": {
"collectionId": "def456..."
}
}
注意:
- 必须提供被引用集合的collectionId
- 被引用集合必须已存在
- 每个集合最多5个MultiReference字段Phase 7: Verification Best Practices
阶段7:验证最佳实践
Post-Creation Verification:
After creating collection and fields:
1. Call data_cms_tool with action get_collection_details with collection ID
2. Verify all fields present
3. Check field properties match request
4. Confirm relationships configured correctlyFinal Report Format:
🎉 Collection Setup Complete!
Collection: [Name]
ID: [collection-id]
Slug: [slug]
Fields Created ([X]):
├── name (PlainText, required) ← Auto
├── slug (PlainText, required) ← Auto
├── [field-1] ([Type])
├── [field-2] ([Type])
└── [field-n] ([Type])
[If relationships exist]
Relationships:
├── [field] → [Collection]
└── [field] → [Collection]
[If any failures]
⚠️ Failed Fields ([Y]):
├── [field]: [error]
└── [field]: [error]
---
💡 Next Steps:
[Relevant suggestions based on collection type]Next Steps Suggestions:
For any collection:
1. Use bulk-cms-update to add initial items
2. Create collection template page in Designer
3. Create collection list page
4. Configure SEO settings
For collections with relationships:
5. Create referenced collections first
6. Add items in dependency order
7. Test relationship displays
For e-commerce:
5. Set up payment integration
6. Configure inventory management
7. Create checkout flow创建后验证:
创建集合和字段后:
1. 调用data_cms_tool并指定动作get_collection_details,传入集合ID
2. 验证所有字段均已存在
3. 检查字段属性是否与请求一致
4. 确认关联关系配置正确最终报告格式:
🎉 集合创建完成!
集合:[名称]
ID:[collection-id]
Slug:[slug]
已创建字段(共[X]个):
├── name (PlainText, 必填) ← 自动创建
├── slug (PlainText, 必填) ← 自动创建
├── [field-1] ([Type])
├── [field-2] ([Type])
└── [field-n] ([Type])
[如果存在关联关系]
关联关系:
├── [field] → [集合]
└── [field] → [集合]
[如果有失败情况]
⚠️ 创建失败的字段(共[Y]个):
├── [field]:[错误信息]
└── [field]:[错误信息]
---
💡 后续步骤:
[根据集合类型提供相关建议]后续步骤建议:
对于任何集合:
1. 使用bulk-cms-update添加初始条目
2. 在Designer中创建集合模板页面
3. 创建集合列表页面
4. 配置SEO设置
对于带有关联关系的集合:
5. 先创建被引用集合
6. 按依赖顺序添加条目
7. 测试关联关系显示
对于电商集合:
5. 设置支付集成
6. 配置库存管理
7. 创建结账流程Phase 8: Error Handling
阶段8:错误处理
Common Errors:
1. Collection Name Conflict:
❌ Collection Already Exists
A collection named "Blog Posts" already exists on this site.
Existing collection:
- Name: Blog Posts
- ID: xyz789...
- Created: 2025-12-15
Would you like to:
1. Choose a different name
2. View existing collection
3. Add fields to existing collection
4. Cancel2. Plan Limit Reached:
❌ Plan Limit Reached
Cannot create collection. You've reached your plan limit.
Current: 20/20 collections (CMS Plan)
Options:
1. Upgrade to Business Plan (40 collections)
2. Delete unused collections
3. Contact Webflow support
Would you like me to show your existing collections?3. Invalid Field Type:
❌ Invalid Field Type
Field type "dropdown" is not supported by Webflow.
Did you mean:
- "Option" - Single choice from list
- "Reference" - Link to another collection
- "MultiReference" - Link to multiple items
Which would you like to use?4. Referenced Collection Not Found:
❌ Referenced Collection Not Found
Cannot create reference field to "Authors" collection.
Issue: "Authors" collection doesn't exist yet.
Solutions:
1. Create "Authors" collection first
2. Remove reference field for now
3. Let me create both collections in order
Your choice? (1/2/3)5. Multi-Reference Limit Exceeded:
❌ Too Many Multi-Reference Fields
You requested 6 multi-reference fields.
Webflow limit: 5 per collection
Requested:
1. Tags
2. Categories
3. Related Products
4. Features
5. Certifications
6. Compatible Products ← Exceeds limit
Choose 5 to keep, or convert one to Reference field.常见错误:
1. 集合名称冲突:
❌ 集合已存在
名为“博客文章”的集合已存在于该站点。
现有集合:
- 名称:博客文章
- ID:xyz789...
- 创建时间:2025-12-15
您希望:
1. 选择其他名称
2. 查看现有集合
3. 向现有集合添加字段
4. 取消操作2. 套餐限制已达:
❌ 已达套餐限制
无法创建集合。您已达到套餐的集合数量上限。
当前:20/20个集合(CMS套餐)
选项:
1. 升级至Business套餐(40个集合)
2. 删除未使用的集合
3. 联系Webflow支持
您希望我显示现有集合吗?3. 无效字段类型:
❌ 无效字段类型
Webflow不支持“dropdown”字段类型。
您是否指:
- "Option" - 从列表中选择单个选项
- "Reference" - 链接到另一个集合
- "MultiReference" - 链接到多个条目
您希望使用哪种类型?4. 被引用集合未找到:
❌ 被引用集合未找到
无法创建指向“作者”集合的引用字段。
问题:“作者”集合尚未存在。
解决方案:
1. 先创建“作者”集合
2. 暂时移除该引用字段
3. 让我按顺序创建两个集合
您的选择?(1/2/3)5. 多引用字段数量超出限制:
❌ 多引用字段数量过多
您请求了6个多引用字段。
Webflow限制:每个集合最多5个。
您请求的字段:
1. 标签
2. 分类
3. 相关产品
4. 特性
5. 认证
6. 兼容产品 ← 超出限制
请选择保留5个,或将其中一个转换为引用字段。Phase 9: Advanced Scenarios
阶段9:高级场景
Self-Referencing Collections:
Example: Categories with parent categories
Collection: Categories
Fields:
├── name (PlainText, required)
├── slug (PlainText, required)
├── parent-category (Reference → Categories)
└── level (Number) - 1, 2, 3 for hierarchy
Implementation:
{
"type": "Reference",
"displayName": "Parent Category",
"isRequired": false,
"metadata": {
"collectionId": "[same-collection-id]"
}
}
Note: Must create collection first, then add self-reference fieldMulti-Collection Setup:
When creating multiple related collections:
1. Identify dependencies:
- Which collections reference others?
- What's the creation order?
2. Create in order:
- Independent collections first
- Dependent collections after
3. Show overall progress:
[1/4] Creating Categories...
[2/4] Creating Brands...
[3/4] Creating Tags...
[4/4] Creating Products...
4. Report collectively:
All 4 collections created successfully!Complex Option Fields:
For complex dropdowns:
User: "Create status field with Draft, In Review, Approved, Published, Archived"
Option field with 5 choices:
{
"type": "Option",
"displayName": "Status",
"isRequired": true,
"metadata": {
"options": [
{"name": "Draft"},
{"name": "In Review"},
{"name": "Approved"},
{"name": "Published"},
{"name": "Archived"}
]
}
}
Tip: Use workflow order for options自引用集合:
示例:带父分类的分类集合
集合:分类
字段:
├── name (PlainText, 必填)
├── slug (PlainText, 必填)
├── parent-category (Reference → 分类)
└── level (Number) - 1、2、3表示层级
实现方式:
{
"type": "Reference",
"displayName": "父分类",
"isRequired": false,
"metadata": {
"collectionId": "[同一集合ID]"
}
}
注意:必须先创建集合,再添加自引用字段多集合设置:
创建多个关联集合时:
1. 识别依赖关系:
- 哪些集合引用其他集合?
- 创建顺序是什么?
2. 按顺序创建:
- 先创建独立集合
- 后创建依赖集合
3. 展示整体进度:
[1/4] 正在创建分类...
[2/4] 正在创建品牌...
[3/4] 正在创建标签...
[4/4] 正在创建产品...
4. 统一报告:
所有4个集合创建成功!复杂选项字段:
对于复杂下拉菜单:
用户:“创建包含草稿、审核中、已批准、已发布、已归档的状态字段”
包含5个选项的选项字段:
{
"type": "Option",
"displayName": "Status",
"isRequired": true,
"metadata": {
"options": [
{"name": "Draft"},
{"name": "In Review"},
{"name": "Approved"},
{"name": "Published"},
{"name": "Archived"}
]
}
}
提示:按工作流顺序排列选项Production Checklist
生产环境检查清单
Before considering collection setup complete:
在确认集合设置完成前,请检查以下项:
✅ Discovery
✅ 探查
- Site selected and confirmed
- Plan limits checked
- Existing collections listed
- No naming conflicts
- User has appropriate permissions
- 站点已选择并确认
- 套餐限制已检查
- 现有集合已列出
- 无命名冲突
- 用户拥有适当权限
✅ Requirements
✅ 需求
- Display name gathered
- Singular name gathered
- All fields defined with types
- Required vs optional specified
- Relationships identified
- 已收集显示名称
- 已收集单数名称
- 所有字段已定义类型
- 已指定必填/可选
- 已识别关联关系
✅ Validation
✅ 验证
- All field types valid
- Multi-reference count ≤ 5
- Referenced collections exist or queued
- No circular dependencies
- Field names follow conventions
- Within plan limits
- 所有字段类型有效
- 多引用字段数量≤5
- 被引用集合已存在或已加入创建队列
- 无循环依赖
- 字段名称符合规范
- 在套餐限制内
✅ Preview
✅ 预览
- Complete schema shown
- All fields listed with properties
- Relationships displayed
- Validation results shown
- User confirmation obtained
- 已展示完整架构
- 已列出所有字段及其属性
- 已展示关联关系
- 已展示验证结果
- 已获得用户确认
✅ Creation
✅ 创建
- Collection created successfully
- Collection ID captured
- All fields created
- Field creation errors handled
- Progress shown to user
- 集合创建成功
- 已记录集合ID
- 所有字段已创建
- 已处理字段创建错误
- 已向用户展示进度
✅ Verification
✅ 验证
- Collection retrieved and verified
- All fields present
- Field properties correct
- Relationships configured
- Any errors reported
- 已检索并验证集合
- 所有字段均已存在
- 字段属性正确
- 关联关系已配置
- 已报告任何错误
✅ Reporting
✅ 报告
- Final summary provided
- Collection ID shared
- Fields listed
- Failures reported (if any)
- Next steps suggested
- 已提供最终摘要
- 已分享集合ID
- 已列出字段
- 已报告失败情况(如有)
- 已提供后续步骤建议
✅ Error Handling
✅ 错误处理
- Collection conflicts handled
- Plan limits checked
- Invalid field types caught
- Missing references detected
- Partial failures reported
- 已处理集合冲突
- 已检查套餐限制
- 已捕获无效字段类型
- 已检测到缺失引用
- 已报告部分失败情况