> ## 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.

# 將 Zapier 連接到 CometAPI

> 使用本指南，透過設定 base URL、API key，以及 model 或 provider 選項，將 Zapier 連接到 CometAPI。

Zapier 可將 CometAPI 連接到數千個應用程式，無需撰寫程式碼即可自動化 AI 驅動的工作流程。

## 先決條件

* 擁有一個啟用中 API key 的 CometAPI 帳戶 — [在此取得](https://www.cometapi.com/console/token)
* 一個 Zapier 帳戶 — [在此註冊](https://zapier.com/app/home)

<Steps>
  <Step title="取得你的 CometAPI API key">
    登入 [CometAPI 主控台](https://www.cometapi.com/console/token)。按一下 **Add API Key**，然後複製你的 CometAPI API key。

    <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="顯示 Add API Key 按鈕的 CometAPI 控制台" 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="含有 base URL 的 CometAPI API key 詳細資訊" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="將 CometAPI 新增為 Zap 步驟">
    在 Zapier 中，建立一個新的 Zap。在工作流程編輯器中，按一下 **Add Step**，並搜尋 **CometAPI**。

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360288.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=e0f9acf9b0c6c296ba4590b3f94a8ca1" alt="帶有 Add Step 按鈕的 Zapier 工作流程編輯器" width="1915" height="970" data-path="images/integrations/810968_360288.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360289.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=f4a3fa5bf0e19ad96248a4b1dbfc2220" alt="顯示 CometAPI 應用程式的 Zapier 搜尋結果" width="1866" height="914" data-path="images/integrations/810968_360289.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360293.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=826cddfb18b75c459896d25e30ec69b4" alt="CometAPI 動作選擇畫面" width="845" height="791" data-path="images/integrations/810968_360293.png" />
    </Frame>
  </Step>

  <Step title="設定動作並連接你的帳戶">
    * **Action Event**: 選取 **Generate AI Response**
    * **Account**: 按一下 **Connect a new account**，並貼上你的 CometAPI API key

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360290.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=7512d3317a69a9387b59799e064f0060" alt="帶有 API key 欄位的 Zapier 帳戶連接對話方塊" width="1861" height="930" data-path="images/integrations/810968_360290.png" />
    </Frame>
  </Step>

  <Step title="選取 model 並測試">
    按一下 **Continue**，選擇你想要使用的目前 model，然後再次按一下 **Continue** 並執行 **Test Step**。

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360291.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=478bf8b48bd4e762807eeec15eb11785" alt="Zapier model 選擇步驟" width="1905" height="940" data-path="images/integrations/810968_360291.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/E4FFvyMYmaOZoldp/images/integrations/810968_360292.png?fit=max&auto=format&n=E4FFvyMYmaOZoldp&q=85&s=18713a41c1a86a980c2bde6a6e072e48" alt="顯示 AI 回應成功的 Zapier 測試結果" width="523" height="785" data-path="images/integrations/810968_360292.png" />
    </Frame>

    成功的測試結果代表整合已完成。按一下 **Publish** 以啟用你的 Zap。

    如果呼叫失敗，請再次確認你的 API key，或聯絡 [CometAPI 支援](https://www.cometapi.com)。
  </Step>
</Steps>

<Tip>
  CometAPI 會以原生 Zapier 應用程式的形式出現，因此不需要自訂 HTTP 動作。你可以將它與 Gmail、Google Sheets、Slack，以及其他數千種 Zapier 整合串接使用。
</Tip>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/zapier#howto",
        "name": "將 Zapier 連接到 CometAPI",
        "description": "使用本指南，透過設定 base URL、API key，以及 model 或 provider 選項，將 Zapier 連接到 CometAPI。",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/zapier#step-1",
            "position": 1,
            "name": "取得你的 CometAPI API key",
            "text": "建立或開啟你的 CometAPI 帳戶，然後從控制台複製一個啟用中的 API key。"
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/zapier#step-2",
            "position": 2,
            "name": "將 CometAPI 新增為 Zap 步驟",
            "text": "完成「將 CometAPI 新增為 Zap 步驟」這個步驟，以完成「將 Zapier 連接到 CometAPI」指南。"
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/zapier#step-3",
            "position": 3,
            "name": "設定動作並連接你的帳戶",
            "text": "完成「設定動作並連接你的帳戶」這個步驟，以完成「將 Zapier 連接到 CometAPI」指南。"
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/zapier#step-4",
            "position": 4,
            "name": "選取 model 並測試",
            "text": "完成「選取 model 並測試」這個步驟，以完成「將 Zapier 連接到 CometAPI」指南。"
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "CometAPI 文件",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "整合",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "將 Zapier 連接到 CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/zapier"
          }
        ]
      }
    ]
    }
    `}
</script>
