コンテンツにスキップ

ダッシュボード

Cloudflareダッシュボードを使用してWorkers AIアプリケーションを作成するためのガイドに従ってください。

前提条件

まだの場合は、Cloudflareアカウントにサインアップしてください。

セットアップ

Workers AIアプリケーションを作成するには:

  1. Cloudflareダッシュボードにログインし、アカウントを選択します。
  2. Workers & Pagesに移動します。
  3. アプリケーションを作成を選択します。
  4. テンプレートを使用して作成の下で、LLM Appを選択します。テンプレートを選択すると、ダッシュボードにAIバインディングが作成されます。
  5. 提供されたコードを確認し、デプロイを選択します。
  6. 提供されたworkers.devサブドメインでWorkerをプレビューします。

開発

Dashboard

Editing in the dashboard is helpful for simpler use cases.

Once you have created your Worker script, you can edit and deploy your Worker using the Cloudflare dashboard:

  1. Log in to the Cloudflare dashboard and select your account.
  2. Select Workers & Pages.
  3. Select your application.
  4. Select Edit Code.

Edit code directly within the Cloudflare dashboard

Wrangler CLI

To develop more advanced applications or implement tests, start working in the Wrangler CLI.

  1. Install npm.
  2. Install Node.js.
  1. Run the following command, replacing the value of [<DIRECTORY>] which the location you want to put your Worker Script.
Terminal window
npm create cloudflare@latest [<DIRECTORY>] -- --type=pre-existing

After you run this command - and work through the prompts - your local changes will not automatically sync with dashboard. So, once you download your script, continue using the CLI.