---
name: queek-site
description: Move an existing website or app onto Queek, so its products live in a Queek store and the site keeps its design. Use after connecting Queek OS, when the user has a project with hard-coded products to move onto Queek.
---

# Move a site or app onto Queek

The result: the user's products live in a Queek store, and their site reads them from Queek instead of from files in the project. The site keeps its design. Queek OS must already be connected. If tools like `get_store_overview` are not in this session, go back to https://usequeek.com/skill.md and connect first.

Work through the steps in order. Each step ends with what you must see before moving on.

## 1. Inventory the project

Find where the products live (a JSON, TypeScript or Markdown file, a data folder, a CMS export), which fields each product has, whether the images are local files or remote links, and any cart or checkout code.

Show the user a table: one row per product source, with the file, how many products, the fields, and where the images are. If you find no products, ask the user where they are and stop.

You are done with this step when the user has seen the table and agreed it is right.

## 2. Choose the store

Build on a dev store. It is free, and a "Testing on my computer" connection on a dev store always allows localhost, so the site can run on the user's own computer. (A Website connection in Development mode works from any address. Server code uses a Server or backend connection.) The user creates the dev store in the Queek dashboard under Developers, then Dev stores, and picks it on the connect page when connecting Queek OS. If Queek OS is already connected to a different store, ask the user to connect again and pick the dev store.

Launching to a live store later needs a paid plan, or a trial on that store.

You are done with this step when `get_store_overview` returns the dev store. Note its `currency`: every price you write is in that currency.

## 3. Write the products file

Call `import_products` with action `template`. It returns the columns and example rows for this store. Write `queek-products.csv` in the project with exactly those columns.

- One row per product. Variants such as size or colour go in the template's variant columns (`option_N_type` and `option_N_value`, or `variation_N_*`, whichever the template returned), filled the way its example rows show. If the template has `variant_prices` and a variant's price differs from the product's (a bigger size costs more), put it in `variant_prices` as `options: price` entries split by `|`, the options in column order joined by ` / ` (for example `XL / Black: 9000 | S / White: 7000`). `variant_skus` and `variant_stock` take each variant's SKU and stock the same way. A variant you leave out takes the product's price, so never drop a price difference the site has.
- Image columns hold https URLs. A remote image keeps its URL. For an image that is a local file, call `request_photo_upload`: it returns an `upload_url` and a `curl` command. Push each file with that command yourself, then call `check_photo_upload`: it returns each file's `media_id` and `url`. Use the `url`. If you have no shell or network access, ask the user to host the images, or to give you https links, instead.
- Never guess a URL or a price. If a product has no price or no image in the project, leave it empty and tell the user.
- Prices are in the store's currency, as `get_store_overview` returned it.
- A file holds at most 500 rows. Split a bigger catalogue into several files.

You are done with this step when `queek-products.csv` exists, and you have told the user how many rows it has and which fields are empty.

## 4. Import as drafts, then publish

1. `import_products` with action `upload`, passing the CSV text and the filename. It returns a `file_id`. Use that `file_id` for the rest of this step.
2. Action `preview`. Show the user the counts and a sample of the products. If the counts look wrong, fix the CSV and upload it again.
3. Action `start`. Then action `status`, again and again, until it reports the import is done.
4. Action `publish` only after the user says yes. Until then the imported products are drafts.

You are done with this step when the user can see the products in the dashboard under Products, and has said whether to publish them.

## 5. Connect the site

Read https://docs.usequeek.com/docs/storefront/rules-for-ai-builders and https://docs.usequeek.com/docs/storefront, and follow them. Do not restate them or work from memory.

The user creates the connection in the Queek dashboard under Channels, then Headless API. An AI tool cannot create it. Ask the user to open the connection and use its "Copy for AI" button, and to paste that text to you.

You are done with this step when the user has pasted the connection text and you have read the two pages above.

## 6. Rewire the site

Replace the project's static product source with calls to the Headless API, following those docs. Keep the design as it is. Keep the old product data file until the user confirms the site shows the right products from Queek.

You are done with this step when the site runs locally and shows the products from the dev store, and the user has confirmed it.

## 7. Launch

1. Connect Queek OS to the live store (the user picks it on the connect page).
2. Import the same `queek-products.csv` into the live store: repeat step 4 with Queek OS, or use the dashboard under Products, then Import.
3. Deploy the site by following https://docs.usequeek.com/docs/storefront/deploy, then do step 7 of https://usequeek.com/skills/headless.md: it covers the live store's connection, the production address and the return link. Do not restate them here.
4. Remove the old data file only after the user confirms the live site is right.

You are done with this step when the live site shows the live store's products.

## Rules

- Never put a secret key in frontend code, in the chat or in git. A secret key is for servers only.
- Products stay drafts until the user says yes.
- Never invent a link, command or tool name. Use only what is written here, in the linked docs, or what the connector returns.
