显示/隐藏 Pieces

如果您只想向嵌入用户显示特定的 Pieces,建议您按以下步骤操作:

前往**平台管理 → 设置 → Pieces**,选择您想要标记的 Pieces,然后点击**应用标签**,为想要显示给用户的 Pieces 打上标签。
<img src="https://mintcdn.com/activepieces/uHZ35vXyxX7goNO-/resources/screenshots/tag-pieces.png?fit=max&auto=format&n=uHZ35vXyxX7goNO-&q=85&s=c29f36ab63e2a3165877f29f600f5634" alt="批量标记" width="1420" height="900" data-path="resources/screenshots/tag-pieces.png" />
您需要在令牌中指定 Pieces 的标签,查看[配置用户](/docs/activepieces/embedding/provision-users)了解如何生成令牌。
应该像这样指定 `pieces` 声明:

```json theme={null}
{
    /// 其他声明
    "piecesFilterType": "ALLOWED",
    "piecesTags": [ "free" ]
}
```

每次嵌入 SDK 使用该令牌时,它会将带有这些标签的所有 Pieces 同步到令牌的项目中。
该项目将只包含带有这些标签的 Pieces。