Управление страницей
- “Покажи все блоки на моей странице”
- “Добавь новую ссылку на мой профиль в Instagram”
- “Удали блок заголовка”
- “Измени заголовок моей страницы на «Мои ссылки»”
Создайте собственный GPT, который подключается к вашей странице Bink и управляет всем на естественном языке: ссылками, формами, аналитикой, бронированиями, сообщениями.
Соберите GPT, который управляет вашей страницей Bink через REST API Bink, подключённый как Actions.
Откройте страницу Bink из вашего ассистента и нажмите «Создать ключ». Скопируйте его: он понадобится для аутентификации.
Откройте ChatGPT → Explore GPTs → Create. Дайте ему название, например «Мой менеджер Bink», и добавьте такие инструкции:
Вы менеджер страниц Bink. Вы помогаете пользователю вести его страницу Bink (платформа link-in-bio). Вы можете добавлять, редактировать, удалять и переставлять блоки (ссылки, заголовки, иконки соцсетей). Вы можете смотреть аналитику, управлять формами и ответами на них, обрабатывать входящие сообщения и управлять бронированиями. Всегда спрашивайте подтверждение перед необратимыми действиями.В редакторе GPT нажмите «Create new action». В поле Authentication выберите «API Key», укажите имя заголовка «Authorization» и значение:
Bearer bink_your_token_hereЗатем вставьте схему OpenAPI ниже в поле схемы.
{
"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" } }
}
}
}
}На панели Preview проверьте команды вроде «Покажи мои блоки» или «Покажи мою аналитику». Когда всё устроит, опубликуйте GPT для себя или поделитесь им.
Это основные эндпоинты API, которые может вызывать ваш GPT. Для всех нужен токен Bearer в заголовке Authorization.
/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 настроен, попробуйте эти промпты.
Создайте персональный токен доступа и начните собирать собственный GPT для Bink.