> ## 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 Activepieces với CometAPI

> Sử dụng hướng dẫn này để kết nối Activepieces 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.

[Activepieces](https://cloud.activepieces.com/) là một nền tảng tự động hóa mã nguồn mở. Với connector CometAPI tích hợp sẵn, bạn có thể thêm các bước AI vào bất kỳ workflow nào chỉ trong vài giây.

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

* Một tài khoản [Activepieces](https://cloud.activepieces.com/)
* Một tài khoản [CometAPI](https://www.cometapi.com) với API key đang hoạt động

## Thiết lập

<Steps>
  <Step title="Lấy khóa API CometAPI của bạn">
    Đăng nhập vào [bảng điều khiển CometAPI](https://www.cometapi.com/console). Nhấp vào **Add API Key** và sao chép khóa 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 — 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 khóa API CometAPI và base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Tạo một flow và thêm bước CometAPI">
    Trong dự án Activepieces của bạn, nhấp vào **Create Flow** → **From Scratch**. Nhấp vào nút **+** trên canvas, tìm kiếm `cometapi`, rồi chọn **Ask CometAPI**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_361326.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=20fd998714bb23dc7c28dbad4315c152" alt="Canvas Activepieces với nút + để thêm một bước" width="1920" height="956" data-path="images/integrations/810968_361326.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_361327.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=084735cca2fbbb0b5e49672c029ff34c" alt="Kết quả tìm kiếm hiển thị connector CometAPI" width="1920" height="974" data-path="images/integrations/810968_361327.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_361328.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=a68000d40dcdfdd14af3a0954ab0c34b" alt="Bước Ask CometAPI được chọn trong danh sách connector" width="1920" height="909" data-path="images/integrations/810968_361328.png" />
    </Frame>
  </Step>

  <Step title="Cấu hình bước CometAPI">
    Dán khóa API của bạn vào trường **API Key**. Chọn model hiện tại bạn muốn sử dụng và điền prompt của bạn.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_361329.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=b3ea4a155f705dfb8cd0956a3cfc7fc8" alt="Bước CometAPI — khóa API và lựa chọn model" width="1900" height="915" data-path="images/integrations/810968_361329.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/integrations/810968_361330.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=344e62888e22f3ef1d34109e95ee8baf" alt="Cấu hình prompt cho bước Ask CometAPI" width="1920" height="925" data-path="images/integrations/810968_361330.png" />
    </Frame>
  </Step>

  <Step title="Kiểm tra flow">
    Nhấp vào **Test** để chạy bước. Phản hồi thành công 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_361331.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=92fd6c62bcf33f681b053668a9ac6687" alt="Phản hồi kiểm tra thành công từ bước CometAPI" width="1874" height="939" data-path="images/integrations/810968_361331.png" />
    </Frame>
  </Step>
</Steps>

<Note>
  Nếu kiểm tra thất bại, hãy xác minh khóa API của bạn là chính xác và tài khoản của bạn còn số dư khả dụng. Liên hệ [bộ phận hỗ trợ CometAPI](https://www.cometapi.com) nếu sự cố vẫn tiếp diễn.
</Note>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/activepieces#howto",
        "name": "Kết nối Activepieces với CometAPI",
        "description": "Sử dụng hướng dẫn này để kết nối Activepieces với CometAPI bằng cách thiết lập base URL, khóa API và các tùy chọn model hoặc provider.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/activepieces#step-1",
            "position": 1,
            "name": "Lấy khóa API CometAPI 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 khóa API đang hoạt động từ bảng điều khiển."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/activepieces#step-2",
            "position": 2,
            "name": "Tạo một flow và thêm bước CometAPI",
            "text": "Hoàn thành bước Tạo một flow và thêm bước CometAPI trong hướng dẫn Kết nối Activepieces với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/activepieces#step-3",
            "position": 3,
            "name": "Cấu hình bước CometAPI",
            "text": "Hoàn thành bước Cấu hình bước CometAPI trong hướng dẫn Kết nối Activepieces với CometAPI."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/activepieces#step-4",
            "position": 4,
            "name": "Kiểm tra flow",
            "text": "Hoàn thành bước Kiểm tra flow trong hướng dẫn Kết nối Activepieces 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 Activepieces với CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/activepieces"
          }
        ]
      }
    ]
    }
    `}
</script>
