页面管理
- “列出我页面上的所有区块”
- “添加一个指向我 Instagram 主页的新链接”
- “删除标题区块”
- “把我的页面标题改成「我的链接」”
打造一个 GPT,把 Bink 的 REST API 用作 Actions,来管理你的 Bink 页面。
前往 在你的助手中使用 Bink 页面,点击「生成密钥」。把它复制下来:身份验证时会用到。
前往 ChatGPT → 探索 GPT → 创建。给它起个名字,比如「我的 Bink 管家」,然后添加以下指令:
你是 Bink 页面管理员。你帮助用户管理他们的 Bink 页面(一个 link-in-bio 平台)。你可以添加、编辑、删除和重新排序区块(链接、标题、社交图标)。你可以查看数据分析,管理表单和表单回复,处理收件箱消息,并管理预约。执行具有破坏性的操作之前,务必先请用户确认。在 GPT 编辑器中,点击「创建新操作」(Create new action)。将身份验证(Authentication)设为「API 密钥」(API Key),请求头名称填写「Authorization」,值为:
Bearer bink_your_token_here然后把下面的 OpenAPI schema 粘贴到 schema 字段中。
{
"openapi": "3.1.0",
"info": {
"title": "Bink API",
"version": "1.0.0",
"description": "Manage your Bink page"
},
"servers": [
{ "url": "https://bink4.me" }
],
"paths": {
"/api/blocks": {
"get": {
"operationId": "listBlocks",
"summary": "List all blocks on the page",
"responses": { "200": { "description": "Array of blocks" } }
},
"post": {
"operationId": "createBlock",
"summary": "Create a new block",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"type": { "type": "string", "enum": ["link", "header", "social", "text", "image", "video", "divider"] },
"title": { "type": "string" },
"url": { "type": "string" },
"active": { "type": "boolean" }
},
"required": ["type"]
}
}
}
},
"responses": { "200": { "description": "Created block" } }
}
},
"/api/blocks/{id}": {
"put": {
"operationId": "updateBlock",
"summary": "Update a block",
"parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"title": { "type": "string" },
"url": { "type": "string" },
"active": { "type": "boolean" }
}
}
}
}
},
"responses": { "200": { "description": "Updated block" } }
},
"delete": {
"operationId": "deleteBlock",
"summary": "Delete a block",
"parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
"responses": { "200": { "description": "Deleted" } }
}
},
"/api/analytics": {
"get": {
"operationId": "getAnalytics",
"summary": "Get page analytics (views, clicks, top blocks)",
"responses": { "200": { "description": "Analytics data" } }
}
},
"/api/bookings": {
"get": {
"operationId": "listBookings",
"summary": "List bookings",
"responses": { "200": { "description": "Array of bookings" } }
}
},
"/api/bookings/{id}": {
"put": {
"operationId": "updateBookingStatus",
"summary": "Confirm or cancel a booking",
"parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": { "type": "string", "enum": ["confirmed", "cancelled"] }
}
}
}
}
},
"responses": { "200": { "description": "Updated booking" } }
}
},
"/api/page/settings": {
"get": {
"operationId": "getPageSettings",
"summary": "Get page settings",
"responses": { "200": { "description": "Page settings" } }
},
"put": {
"operationId": "updatePageSettings",
"summary": "Update page title, description, SEO",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"title": { "type": "string" },
"description": { "type": "string" }
}
}
}
}
},
"responses": { "200": { "description": "Updated settings" } }
}
},
"/api/forms": {
"get": {
"operationId": "listForms",
"summary": "List all forms",
"responses": { "200": { "description": "Array of forms" } }
}
},
"/api/forms/{id}/responses": {
"get": {
"operationId": "getFormResponses",
"summary": "Get form responses",
"parameters": [{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }],
"responses": { "200": { "description": "Array of responses" } }
}
}
}
}在预览面板中测试命令,例如「列出我的区块」或「显示我的数据分析」。满意后,可以发布给自己使用,也可以分享给别人。
以下是你的自定义 GPT 可以调用的主要 API 端点。所有端点都需要在 Authorization 请求头中提供 Bearer 令牌。
/api/blocksList all blocks/api/blocksCreate a new block/api/blocks/{id}Update a block/api/blocks/{id}Delete a block/api/blocks/reorderReorder blocks/api/page/settingsGet page settings/api/page/settingsUpdate page settings/api/page/themeGet page theme/api/page/themeUpdate page theme/api/page/publishToggle page publish/api/formsList forms/api/forms/{id}Get form details/api/formsCreate a form/api/forms/{id}Update a form/api/forms/{id}/responsesGet form responses/api/analyticsGet page analytics/api/bookingsList bookings/api/bookings/{id}Update booking status自定义 GPT 配置好之后,试试这些提示词。