Интеграция с ChatGPT

Используйте Bink с ChatGPT

Создайте собственный GPT, который подключается к вашей странице Bink и управляет всем на естественном языке: ссылками, формами, аналитикой, бронированиями, сообщениями.

Собственный GPT

Создайте собственный GPT для Bink

Соберите GPT, который управляет вашей страницей Bink через REST API Bink, подключённый как Actions.

  1. Получите персональный токен доступа

    Откройте страницу Bink из вашего ассистента и нажмите «Создать ключ». Скопируйте его: он понадобится для аутентификации.

  2. Создайте новый GPT

    Откройте ChatGPT → Explore GPTs → Create. Дайте ему название, например «Мой менеджер Bink», и добавьте такие инструкции:

    Instructions
    Вы менеджер страниц Bink. Вы помогаете пользователю вести его страницу Bink (платформа link-in-bio). Вы можете добавлять, редактировать, удалять и переставлять блоки (ссылки, заголовки, иконки соцсетей). Вы можете смотреть аналитику, управлять формами и ответами на них, обрабатывать входящие сообщения и управлять бронированиями. Всегда спрашивайте подтверждение перед необратимыми действиями.
  3. Добавьте Actions

    В редакторе GPT нажмите «Create new action». В поле Authentication выберите «API Key», укажите имя заголовка «Authorization» и значение:

    Authorization
    Bearer bink_your_token_here

    Затем вставьте схему OpenAPI ниже в поле схемы.

    OpenAPI 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" } }
          }
        }
      }
    }
  4. Проверьте и опубликуйте

    На панели Preview проверьте команды вроде «Покажи мои блоки» или «Покажи мою аналитику». Когда всё устроит, опубликуйте GPT для себя или поделитесь им.

REST API

Доступные эндпоинты API

Это основные эндпоинты API, которые может вызывать ваш GPT. Для всех нужен токен Bearer в заголовке Authorization.

МетодPathОписание
GET/api/blocksList all blocks
POST/api/blocksCreate a new block
PUT/api/blocks/{id}Update a block
DELETE/api/blocks/{id}Delete a block
POST/api/blocks/reorderReorder blocks
GET/api/page/settingsGet page settings
PUT/api/page/settingsUpdate page settings
GET/api/page/themeGet page theme
PUT/api/page/themeUpdate page theme
POST/api/page/publishToggle page publish
GET/api/formsList forms
GET/api/forms/{id}Get form details
POST/api/formsCreate a form
PUT/api/forms/{id}Update a form
GET/api/forms/{id}/responsesGet form responses
GET/api/analyticsGet page analytics
GET/api/bookingsList bookings
PUT/api/bookings/{id}Update booking status
Примеры промптов

О чём попросить ваш GPT

Когда ваш GPT настроен, попробуйте эти промпты.

Управление страницей

  • “Покажи все блоки на моей странице”
  • “Добавь новую ссылку на мой профиль в Instagram”
  • “Удали блок заголовка”
  • “Измени заголовок моей страницы на «Мои ссылки»”

Analytics

  • “Покажи аналитику моей страницы”
  • “На какие ссылки кликают чаще всего?”

Формы и сообщения

  • “Покажи ответы на мою контактную форму”
  • “Сколько у меня непрочитанных сообщений?”

Бронирования

  • “Покажи все бронирования в ожидании”
  • “Подтверди бронирование на завтра”

Готовы создать свой GPT?

Создайте персональный токен доступа и начните собирать собственный GPT для Bink.