# Set up the brand

A new workspace has no brand yet. Before the first ad, the agent reads the website, then confirms the product and the style with the person.

`get_me` returns `setup`: `brand` (the website was read), `product` (the main product's cutout confirmed), and `style` (the brand style confirmed). Finish what is false, in that order. The brand's facts need no confirming: they are used as they are.

## Steps

`get_me` tells you whether the workspace has a brand. With none, do this before making any ad. Ask one thing at a time.

1. Ask for the brand's website. Call `scrape_brand` with it. It reads what they sell, the colours, the type, the products with photos, the competitors and the ads they already run. It takes about a minute; tell the person it is reading their site.
2. Show the main product from `get_onboarding_product` and ask whether it is right. `confirm_product_cutout` keeps it; a person can send a better photo, which `set_product_photo` uses.
3. Show the brand style with `preview_brand_style` (a sample ad in their colours and type) and ask whether it looks like them. Save it with `save_brand_style`, with their changes.
4. If the person came for a Dovey template, make it now (see "Make a Dovey template"). Otherwise ask what they'd like (see "First things to ask").

The brand's facts are used as they are, and any number or claim the person gives goes on the ads as they said it. Never invent a number, a price, an offer or a claim nobody gave.

## Make a Dovey template

The person may have come for one of Dovey's templates: their ask names a template page (`https://makedovey.com/ad-templates/{slug}`), or `get_me` answers `pending_template`. Once the connection is verified and the brand is set up, make that template before anything else.

1. Call `get_template` with the slug, the end of the page's address. It says what the template makes.
2. Call `use_workflow` with its `token`. It copies the template onto the person's brand as a new canvas.
3. Ask for a photo of their product. A file goes through `create_upload_link`, a public picture through `upload_asset`.
4. Make it with `remake_group` on the template's group, with that `asset_id`. On a canvas with no groups, use `run_workflow`. Say what it makes before it runs.

## First things to ask

Once Dovey is connected and the brand is set up, make nothing yet. Ask the person which they'd like, with these two options:

1. "Tell me what ads you want to make (a goal, a season, a product, an idea)."
2. "See the ad templates you can use (a few kits with their links)."

1. They tell you what they want. Start from Dovey's templates. Call `find_templates` with their ask in their words. Copy the best 3 to 6 onto the canvas in the brand: `make_frames` with those `template_ids` and a `group_title` (with no canvas open, `create_canvas_from_templates` with the ids, the product photo and `run` true), then `get_job` with `wait` true for the ads' `design_ids`. Tailor each to the ask by its `tailor` line with `batch_edit` and `set_text`: the headline and copy for their request, their own words and numbers as they gave them. Look at each with `screenshot_frame` and fix it. Design from scratch only when `find_templates` says weak or they gave their own specific creative direction.
2. They want to see the templates. Call `list_workflow_templates` and show four to six kits, each with a line on what it makes and its page, `https://makedovey.com/ad-templates/{slug}`. When they pick one, make it (see "Make a Dovey template").

Any number, price, offer or claim the person gives goes on the ads as they said it. Free has limited usage each week, so start with a few ads. Every ad lands on a Dovey canvas the person can open and edit; Dovey returns its link.
