Skip to content

Dashboard

Follow this guide to create a Workers AI application using the Cloudflare dashboard.

Prerequisites

Sign up for a Cloudflare account if you have not already.

Setup

To create a Workers AI application:

  1. Log in to the Cloudflare dashboard and select your account.
  2. Go to Workers & Pages.
  3. Select Create application.
  4. Under Create using a template, select LLM App. After you select your template, an AI binding will be created for you in the dashboard.
  5. Review the provided code and select Deploy.
  6. Preview your Worker at its provided workers.dev subdomain.

Development

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.