> ## Documentation Index
> Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Kết nối Make với CometAPI

> Sử dụng hướng dẫn này để kết nối Make với CometAPI bằng cách thiết lập base URL, API key và các tùy chọn model hoặc provider.

Make (trước đây là Integromat) là một nền tảng tự động hóa trực quan. Kết nối CometAPI để xây dựng các quy trình làm việc ứng dụng AI trên hàng trăm ứng dụng — không cần viết mã.

## Điều kiện tiên quyết

* Một tài khoản CometAPI với API key đang hoạt động — [lấy tại đây](https://www.cometapi.com/console/token)
* Một tài khoản Make — [đăng ký tại đây](https://www.make.com/en/register)

<Steps>
  <Step title="Lấy CometAPI API key của bạn">
    Đăng nhập vào [bảng điều khiển CometAPI](https://www.cometapi.com/console/token). Nhấp vào **Add API Key** và sao chép CometAPI API key của bạn.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/overview/810968_364191.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=aef81a83f29f8eb16655ed4060425f50" alt="Bảng điều khiển CometAPI hiển thị nút Add API Key" width="3824" height="1892" data-path="images/overview/810968_364191.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/HhtmQffktazbxUvS/images/overview/810968_364193.png?fit=max&auto=format&n=HhtmQffktazbxUvS&q=85&s=d893f659267150d0faf45f99eb5dffc1" alt="Chi tiết CometAPI API key kèm base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Thêm CometAPI vào một scenario">
    Trong Make, nhấp vào **Create scenario**. Trong trình chỉnh sửa scenario, nhấp vào biểu tượng **+** và tìm kiếm **CometAPI**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360356.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=9a7600888fe9833ac94ab3dc1df47434" alt="Trình chỉnh sửa scenario của Make với phần tìm kiếm module đang mở" width="1885" height="953" data-path="images/integrations/810968_360356.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360357.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=45186c2db38fa62e2a1592ec722b044a" alt="Kết quả tìm kiếm trong Make hiển thị module CometAPI" width="1895" height="935" data-path="images/integrations/810968_360357.png" />
    </Frame>
  </Step>

  <Step title="Kết nối tài khoản CometAPI của bạn">
    Chọn **Make an API Call** làm hành động. Khi được nhắc thêm kết nối, dán CometAPI API key của bạn và nhấp vào **Save**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_360358.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=260de8318fa33dc6100ac98b8a2c9c34" alt="Hộp thoại kết nối trong Make với trường API key" width="1311" height="891" data-path="images/integrations/810968_360358.png" />
    </Frame>
  </Step>

  <Step title="Cấu hình lệnh gọi API">
    Điền các cài đặt của module:

    * **URL**: `/v1/chat/completions`
    * **Method**: `POST`
    * **Body** (JSON):

    ```json theme={null}
    {
      "model": "your-model-id",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ],
      "stream": false
    }
    ```

    Nhấp vào **Save**. Thay `your-model-id` bằng một model ID hiện tại từ [trang Models của CometAPI](/vi/overview/models).

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_360359.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=951565cb41ecc00937654a7c418a9ec3" alt="Module Make với endpoint và phần thân JSON đã được cấu hình" width="1740" height="925" data-path="images/integrations/810968_360359.png" />
    </Frame>
  </Step>

  <Step title="Kiểm tra và xuất bản">
    Nhấp vào **Run once** để thực thi scenario. Phản hồi AI thành công trong đầu ra xác nhận rằng tích hợp đang hoạt động.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_360369.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=4bc0c56e0e80a8d9b60af213a5f7ecf3" alt="Đầu ra scenario của Make hiển thị phản hồi CometAPI thành công" width="1885" height="976" data-path="images/integrations/810968_360369.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_360370.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=c2193af570a299525216ec10bd0ee008" alt="Lịch sử chạy scenario trong Make hiển thị thành công" width="1855" height="990" data-path="images/integrations/810968_360370.png" />
    </Frame>

    Nếu lệnh gọi thất bại, hãy xác minh API key và URL endpoint của bạn hoặc liên hệ [bộ phận hỗ trợ CometAPI](https://www.cometapi.com).
  </Step>
</Steps>

<Tip>
  Bạn có thể thay endpoint `/v1/chat/completions` bằng bất kỳ endpoint CometAPI nào — ví dụ `/v1/images/generations` để tạo ảnh. Điều chỉnh phần thân JSON cho phù hợp với các tham số của endpoint đích.
</Tip>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/make#howto",
        "name": "Kết nối Make với CometAPI",
        "description": "Sử dụng hướng dẫn này để kết nối Make với CometAPI bằng cách thiết lập base URL, API key và các tùy chọn model hoặc provider.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/make#step-1",
            "position": 1,
            "name": "Lấy CometAPI API key của bạn",
            "text": "Tạo hoặc mở tài khoản CometAPI của bạn, sau đó sao chép một API key đang hoạt động từ bảng điều khiển."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/make#step-2",
            "position": 2,
            "name": "Thêm CometAPI vào một scenario",
            "text": "Hoàn thành bước Thêm CometAPI vào một scenario trong hướng dẫn Kết nối Make với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/make#step-3",
            "position": 3,
            "name": "Kết nối tài khoản CometAPI của bạn",
            "text": "Hoàn thành bước Kết nối tài khoản CometAPI của bạn trong hướng dẫn Kết nối Make với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/make#step-4",
            "position": 4,
            "name": "Cấu hình lệnh gọi API",
            "text": "Hoàn thành bước Cấu hình lệnh gọi API trong hướng dẫn Kết nối Make với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/make#step-5",
            "position": 5,
            "name": "Kiểm tra và xuất bản",
            "text": "Hoàn thành bước Kiểm tra và xuất bản trong hướng dẫn Kết nối Make với CometAPI."
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Tài liệu CometAPI",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Tích hợp",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Kết nối Make với CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/make"
          }
        ]
      }
    ]
    }
    `}
</script>
