> For the complete documentation index, see [llms.txt](https://docs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.akinon.com/tutorials/akinon-theme-editor.md). Agents can also search and read this documentation through its [MCP server](https://docs.akinon.com/~gitbook/mcp).

# Akinon Theme Editor

The Theme Editor is where you build what shoppers see on your web storefront: the homepage, product list and product detail pages, basket, checkout, account and sign-in pages, your own campaign pages, the header and footer, and modals.

You assemble a page from **sections** and **blocks**, see it in your real storefront as you go, and publish it when it is ready. No developer is needed to change a layout, a text, an image or a color.

This tutorial explains how to design, check and publish your storefront in the Theme Editor.

## <mark style="color:red;">Opening the Editor</mark>

{% stepper %}
{% step %}

#### Open the editor

Open the Theme Editor. The **Channel Selection** window opens first.
{% endstep %}

{% step %}

#### Pick a channel

Pick a channel under **Channel Selection**. Only active web channels are listed.
{% endstep %}

{% step %}

#### Pick a site

Pick a site under **Site Selection**. A channel with a single site picks it for you, and the editor remembers the site you last used for each channel.
{% endstep %}

{% step %}

#### Continue

Click **CONTINUE**. The editor opens on the homepage of that site.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
There is no channel switcher inside the editor. To work on another channel, reload the page and pick it in the window that opens.
{% endhint %}

{% hint style="warning" %}
**A full-screen error instead of the editor.** *The theme editor cannot start* means the editor’s server is missing a setting. *The storefront cannot be edited from here* means the storefront in the preview is not set up for this editor. Neither can be fixed from inside the editor. Pass the variable names shown on the screen to your technical team.
{% endhint %}

## <mark style="color:red;">The Three Areas</mark>

* **Left panel:** The page’s structure: its areas (header, page body, footer…), the sections in each area and the blocks inside them. You add, reorder, hide and duplicate here.
* **Canvas:** Your real storefront, in a frame. Click anything on it to select it. What you change in the panels appears here straight away.
* **Right panel:** The settings of what you selected, on three tabs: **Behaviour**, **Design** and **Advanced**. With nothing selected, it shows Code Import, Theme QA and the AI tools.

## <mark style="color:red;">Editor Tour</mark>

The top of the editor has two rows. The first row only tells you where you are and how the page is doing: the page’s name in the middle, with the QA findings and the save state next to it. The second row holds the controls, in three groups.

### <mark style="color:red;">Left: What You Are Editing</mark>

| Control          | What it does                                                                                                                                                                                                                   |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Language (flag)  | The content language you are editing. The list comes from your storefront. Until the storefront reports its languages, **Save draft** and **Publish** stay disabled. This does not change the editor’s own interface language. |
| Web / Mobile App | Shown only where the mobile app target is enabled. See [Mobile App](#mobile-app).                                                                                                                                              |
| Editing          | The page or modal on the canvas, with a search box. The **+** next to it adds a page of your own. See [Pages and Modals](#pages-and-modals).                                                                                   |
| Preview size     | **Desktop**, **Tablet**, **Mobile** and your custom breakpoints. The size you pick is also the breakpoint your design changes are written to. See [Breakpoints and Responsive Design](#breakpoints-and-responsive-design).     |

### <mark style="color:red;">Center: How You Look at the Canvas</mark>

| Control                | What it does                                                                                                                                                                                                   |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Edit mode (pencil)     | A click on the canvas selects what you clicked.                                                                                                                                                                |
| Navigate mode (cursor) | The canvas behaves as it does for a shopper: links navigate and buttons open their modals. The **Editing** picker follows the page you land on. Use it to try anything a click in edit mode would only select. |

### <mark style="color:red;">Right: Act on It</mark>

| Control                | What it does                                                                                                                                  |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Working copy           | **Live**, **Draft** or a named preview, with a **⋮** menu next to it. See [Drafts, Previews and Publishing](#drafts-previews-and-publishing). |
| Undo / Redo            | Up to 50 steps back. The history is cleared when you publish or change page.                                                                  |
| Save draft / Publish   | **Save draft** writes into the working copy you are editing. **Publish** puts the page on the live site.                                      |
| Gear (Editor settings) | **Themes** (the theme library), **Theme settings**, **Breakpoints** and **User guide**.                                                       |

### <mark style="color:red;">Zoom</mark>

The pill at the bottom right of the canvas zooms between 50% and 150% in steps of 5%. Clicking the percentage fits the page to the width again. The first button on the pill opens the **Media gallery**.

## <mark style="color:red;">Pages and Modals</mark>

The **Editing** picker lists everything you can design, in two groups: **Pages** and **Modals**. Picking one opens it on the canvas. Changing page clears the selection and the undo history, and takes you back to the **Draft** if you were editing a named preview.

### <mark style="color:red;">Available Pages</mark>

* Homepage, PLP (product list), PDP (product detail), Basket, Checkout and Order Success.
* Sign-in pages (login, register, guest login, forgot password) and account pages (orders, order detail, addresses, profile, favourites, coupons and more).
* Stores, FAQ, Contact, Order Tracking, Brands / Sitemap, 404 and 500.
* Pages your storefront’s developers registered for your brand, under their own names.
* Pages you added yourself, under `/pages/<slug>`.

{% hint style="info" %}
The list follows the preview’s sign-in state: while signed in, the sign-in pages are hidden; while signed out, the account pages are hidden. The PDP shows the first product of your catalog, so it is missing while the catalog is empty.
{% endhint %}

### <mark style="color:red;">Adding a Page of Your Own</mark>

{% stepper %}
{% step %}

#### Click Add Page

Click the **+** (**Add Page**) next to the **Editing** picker.
{% endstep %}

{% step %}

#### Name the page

Type a **Name**. The **Slug** is filled in from it, and you can change it.
{% endstep %}

{% step %}

#### Add the page

Click **Add**. The page opens at `/pages/<slug>` and is empty until you add sections.
{% endstep %}
{% endstepper %}

A slug takes lowercase letters, numbers and single hyphens between them, up to 48 characters. It cannot repeat another page’s slug or one your storefront already uses. The same window lists your pages under **CUSTOM PAGES**, each with a **Delete Page** button.

{% hint style="danger" %}
**Adding and deleting pages saves immediately.** A page is created or deleted the moment you confirm, without Save. Deleting a page also deletes everything on it.
{% endhint %}

### <mark style="color:red;">Modals</mark>

**+ New modal** at the bottom of the **Modals** group creates a modal and opens it. You design it like a page. Its settings open in the right panel when nothing inside it is selected. A button or link opens a modal through its on-click setting.

{% hint style="info" %}
Modals and pages of your own are edited from the **Draft** or **Live**. While a named preview is open, switch to the Draft first.
{% endhint %}

## <mark style="color:red;">Areas, Sections and Blocks</mark>

A page is built from three layers:

| Layer   | Description                                                                                                                                                                                      |
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Area    | A region of the page: the header, the page body, the footer, and a few more on account and checkout pages. The header and footer are the same on every page, so a change there shows everywhere. |
| Section | A horizontal band inside an area, such as a hero, a product slider or a text block. Sections are stacked top to bottom in their area.                                                            |
| Block   | A piece inside a section: a text, an image, a button, or a group of other blocks. Blocks can be nested inside groups and containers without a limit.                                             |

### <mark style="color:red;">Moving Around the Tree</mark>

The left panel first lists the page’s areas with their sections. Click a section, or anything on the canvas, and the panel opens that area and shows its sections with their full block trees. While a section is selected, only that section is listed. **All sections** at the top brings the rest back. Selecting something on the canvas also finds and scrolls to it in the tree.

An empty header or footer says **Currently rendered from the project code**. The storefront draws its coded header or footer until you add a section there.

### <mark style="color:red;">Row Actions</mark>

Hover over a row to see its buttons: **Duplicate**, **Hide** / **Show** and **Add block inside**. The handle at the left of the row is for dragging. Rename, lock, copy and remove are in the right panel, behind the **⋮** next to the name.

* **Hidden items:** Left out of the tree. The **Show N hidden** pill brings them back. A hidden section or block is not rendered on the storefront.
* **Renaming:** Double-click the name at the top of the right panel. Names are for you; shoppers do not see them.
* **Remove:** Deletes without asking. **Ctrl/⌘+Z** brings it back.
* **Locked items:** A **LOCKED** item cannot be moved, duplicated or removed, and its controls are disabled. Unlock it from the **⋮** menu. Items inside a locked item are locked by it.

### <mark style="color:red;">Reordering</mark>

Drag a row by its handle. Sections move only within their own area. Blocks can move anywhere: drop on a row’s top or bottom edge to place it before or after, or on the middle of a group or container to put it inside.

### <mark style="color:red;">Elements of a Block</mark>

Some blocks, such as a product gallery, a mini basket or a form, draw elements of their own. Selecting such a block lists them under **Elements**. You can select and style an element, but you cannot move, duplicate or remove it. See [States and Inner Elements](#states-and-inner-elements).

{% hint style="info" %}
**Sections that come from the storefront.** Some sections are supplied by your storefront rather than built in the editor, for example the header and footer frames or the product page’s add-to-basket area. You can select, style, hide, lock and rename them, but they cannot be copied or exported as JSON, and the header and footer frames cannot be moved.
{% endhint %}

## <mark style="color:red;">Adding Sections</mark>

{% stepper %}
{% step %}

#### Add an empty section

Open the area you want in the left panel and click **Add section**. An empty section is added at the end of the area and selected.
{% endstep %}

{% step %}

#### Open the picker

Click the section’s own add button. The picker opens on the **Templates** tab.
{% endstep %}

{% step %}

#### Pick a template

Pick a template. In an empty section, the template becomes the section itself.
{% endstep %}
{% endstepper %}

Opened on a section that already has content, the picker adds templates inside it as a group of blocks. Templates marked **Section** are added as a section of their own, right below the one you are on.

### <mark style="color:red;">Ready-Made Sections</mark>

The table below lists the ready-made sections on the picker’s **Templates** tab. Your own saved templates and your brand’s sections are listed there too.

| Category         | Count | Templates                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ---------------- | ----: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Pages            |    39 | Product Detail — Standard, Product Detail — Split Gallery, Product Detail — Immersive, Product Detail — Scrolling Gallery, Product Listing — Sidebar Filters, Product Listing — Top Filter Bar, Product Listing — Pills + Load More, Basket — Two Column, Basket — Single Column, Basket — Express, Basket — Editorial Split, Account — Overview, Auth — Centered Form, Auth — Tabbed, Auth — Side by Side, Auth — Stacked, Order Success — Recap, Checkout — Trust Header, Checkout — Reassurance Footer, Checkout — Step by Step, Checkout — Step by Step Split, Checkout — One Page, Checkout — One Page Split, Account — Orders, Account — Orders — With Images, Account — Order Detail, Account — Profile, Account — Addresses, Account — Favourites, Account — Favourites (Card Grid), Account — Coupons, Account — MyGANT Loyalty, Auth — Register, Auth — Forgot Password, Auth — Reset Password, 404 — Not Found, 500 — Server Error, Stores — Locator, FAQ — Accordion |
| Header           |     6 | Header — Classic, Header — Two Row, Header — Minimal Centered, Header — Nav + Icons, Header — Utility Bar + Nav, Header — Transparent Mega                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Footer           |     6 | Footer — Columns, Footer — Simple, Footer — Newsletter, Footer — Centered Social, Footer — Contact Light, Footer — Link Directory                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Containers       |     5 | Container — Small (640px), Container — Medium (768px), Container — Large (1024px), Container — Extra Large (1280px), Container — Extra Extra Large (1536px)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Forms            |     4 | Newsletter Signup Banner, Contact Form, Order Tracking Lookup, Search Accordion                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Auth             |     6 | Login Form, Register Form, Login / Register Tabs, Step-by-Step Journey, Forgot Password Form, Reset Password Form                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Banners          |    23 | Hero, Hero Slider, Promo Banner, Countdown Campaign Banner, Coupon Banner, Pre-order Launch Banner, Split Showcase, Featured Showcase, Center Showcase, Featured Brand Collection, Featured Collection Carousel, Story Banners, Marquee, Triple Banner, Category Mosaic (Left Hero), Category Mosaic (Right Hero), Category Mosaic (Equal Tiles), Four Tiles (2×2, Swipe on Mobile), Parallax Image, Notification Banner, Lookbook Banner, Hover Showcase, Staggered Collection                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Content          |    23 | Custom Heading, Feature Cards, Stats Counter, Step Timeline, Text Block, Single Image, Icon, Image Gallery, Before / After, Image Carousel, Video Player, Lottie Animation, Map, Embed, Button, FAQ, Tabs, Accordion, Divider, Separator, Image Hotspot, Team Members, Pricing Table                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Social           |     4 | Instagram Feed, Social Links, Testimonial Slider, Share Buttons                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Portfolio / Blog |     8 | Interactive Quad, Posts Slider, Category Tabs Posts, Featured Post + List, Media Grid, Post Masonry Grid, Post Grid, Quote                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| E-Commerce       |    14 | Brand Tiles, Flash Deals Slider, Product Slider, Product Cards (attach a collection, repeats per product), Featured Product Spotlight, Frequently Bought Together, Product Recommendation, Related + Upsell Split, Product Comparison Cards, Shipping Threshold Progress, Size Guide, Campaign Grid, USP Bar, Payment Methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |

* **Page, Header and Footer templates:** Offered only on the page or area each one is built for. Page templates (a whole product page, basket, account page…) appear only on their own page. Header and footer templates appear only in the header and footer, and those areas take only layout and content pieces.
* **Saved Templates and Saved Block Templates:** The ones you or your team saved, from **Reusable Templates** on the **Advanced** tab or from **Code Import**.
* **Brand sections:** Sections your storefront’s developers built for your brand, listed at the end. Their regions are placed by code: you fill them, but cannot move or remove them.

## <mark style="color:red;">Adding Blocks</mark>

{% stepper %}
{% step %}

#### Open the Add block picker

Hover over the section or group you want to add to and click **Add block inside**.
{% endstep %}

{% step %}

#### Find the block

Find the block in its band, or type its name in **Search blocks**.
{% endstep %}

{% step %}

#### Add the block

Click it. It is added at the end of that section or group, and you can drag it into place.
{% endstep %}
{% endstepper %}

The picker has up to three tabs: **Blocks**, **Templates** (ready-made arrangements and column layouts) and **Custom Blocks** (your storefront’s own). The bands at the top filter the list to one category.

### <mark style="color:red;">Block Reference</mark>

The table below lists the blocks the **Add block** picker offers on the web.

| Category            | Count | Blocks                                                                                                                                                                                                                        |
| ------------------- | ----: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Layout              |    10 | Group, Container, Panel, Accordion, Collapsible, Tab, Slider, Carousel Item, Hover Showcase Item, Divider                                                                                                                     |
| Text & media        |    11 | Text, Image, Image Gallery, Video, Lottie Animation, Icon, Icon Group, Icon Group, Hotspot, Counter, Countdown                                                                                                                |
| Actions & inputs    |     4 | Button, Link, Icon Button, Input                                                                                                                                                                                              |
| Header & navigation |    10 | Navigation Menu, Mega Menu, Hamburger Menu, Search, Mini Basket, Account Button, Wishlist, Language Selector, Currency Selector, Announcement Bar                                                                             |
| Footer & trust      |     5 | Social Links, Social Icons, Value Propositions, Payment Badges, Newsletter Form                                                                                                                                               |
| Product page        |    12 | Product Gallery, Product Title, Product Price, Product Description, Product Attributes, Variant Selector, Stock Status, Add to Cart, Favorite Button, Product Breadcrumb, Product Recommendations, Share                      |
| Product listing     |     9 | Product Grid, Listing Title, Breadcrumb, Filters, Applied Filters, Sort Dropdown, Density Switcher, Result Count, Pagination                                                                                                  |
| Basket & checkout   |     9 | Basket Items, Basket Summary, Checkout Summary, Checkout Steps, Checkout Flow Outlet, Checkout Steps Outlet, Checkout Summary Outlet, Order Success, Order Tracking                                                           |
| Account             |     9 | Account Menu, Order List, Order Detail, Address List, Profile Form, Change Password Form, Coupon List, Coupon Wallet, Favourites Grid                                                                                         |
| Auth & login        |    17 | Auth Flow, Auth Step, Step Title, Auth Form, Auth Field, Form Error, Form Success, Form State, Consent Row, Register Form, OTP Form, OTP Phase, OTP Code Boxes, Security Check, Forgot Password, Reset Password, Social Login |
| Embeds & extras     |     4 | Map, Embed, Store Locator, FAQ Accordion                                                                                                                                                                                      |

* **Blocks that narrow the list:** Inside some blocks, the picker offers only what that block takes. An **Accordion** takes accordion items, a **Slider** takes groups, texts, images, links and icons, and a form takes its fields.
* **Checkout outlets:** **Checkout Flow Outlet** and its companions are offered only in the checkout body.
* **Column layouts:** **Column layouts** on the Templates tab add a grid of empty columns in one step.

### <mark style="color:red;">Your Brand’s Blocks</mark>

Blocks your storefront’s developers declared appear on the **Custom Blocks** tab and in the **Brand blocks** band, listed last. They are announced by the storefront in the preview, so a new one appears once the preview reloads.

Some of them keep their content in regions of their own, listed under them in the tree. Add blocks into those regions rather than onto the block itself.

{% hint style="info" %}
Custom blocks are not offered in the checkout body.
{% endhint %}

## <mark style="color:red;">The Right Panel</mark>

Select a section or block and its settings open on the right. At the top you will find its name (double-click to rename), whether it is a **Section** or a **Block**, **Duplicate**, the **⋮** menu (**Copy**, **Paste**, **Lock**, **Rename**, **Hide**, **Remove**) and **Close**.

| Tab       | What it holds                                                                                                                                                                                                                                         |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Behaviour | What the item says and does: its text, image, link and options. On a section that shows data, its **Source** (data source) is at the top. When there is nothing to fill in, the panel opens on Design.                                                |
| Design    | How it looks: spacing, borders, layout, width, background, states, inner elements and **More properties**. See [The Design Tab](#the-design-tab).                                                                                                     |
| Advanced  | HTML attributes, **Custom CSS**, **Style Presets**, **Conditional Visibility**, **Publish Window**, **Responsive Visibility**, reusable templates, data bindings, **Page data**, **Section JSON**, **Code Import**, **Theme QA** and the danger zone. |

{% hint style="info" %}
**Panels and dropdowns that stay closed.** For a block that opens something, such as a dropdown, a mini basket or a panel, **Hold open in canvas** above the tabs keeps it open while you style it. It affects only the canvas.
{% endhint %}

With nothing selected, the right panel shows **Code Import**, **Theme QA**, **Unsaved Changes** and the AI tools. While a modal is open, it shows the modal’s settings instead.

## <mark style="color:red;">The Design Tab</mark>

The Design tab shows the controls the selected item uses most, one row each. Every value you set is written to the breakpoint on screen. See [Breakpoints and Responsive Design](#breakpoints-and-responsive-design).

| Control          | What it does                                                                                                                                                                                                                          |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Spacing          | A box diagram: the outer ring is margin, the inner ring is padding. Pick a side, or the **Margin** / **Padding** chip for all four. A plain number means px; any CSS length works.                                                    |
| Border & radius  | Pick an edge, a corner or the middle (**ALL**) and set width, radius, style and color.                                                                                                                                                |
| Layout           | For sections and blocks that hold others: display (Flex, Grid…), direction, justify, align items, wrap and gap.                                                                                                                       |
| Width            | **Fill** (100%), **Hug** (as wide as the content) or **Fixed**.                                                                                                                                                                       |
| Align            | How the item sits inside its parent: left, center, right, stretch or baseline.                                                                                                                                                        |
| Background       | One of the theme colors (**Primary**, **Secondary**, **Color 3**, **Color 4**, **Background**) or **Custom…** with an opacity of 0–100%. A theme color stays linked: change it in Theme settings and every item that uses it follows. |
| Image fit / Size | Image blocks only: how the image fills its box (**Fill** crops, **Fit** shows it whole) and its width and height.                                                                                                                     |

### <mark style="color:red;">More Properties</mark>

**More properties** at the bottom lists every other CSS property, by category, with a search box. Clicking one adds it to the selected item only. The pin (**Pin to panel**) shows that property on every item instead, which is handy for the few you use all the time.

* A property that already has a value is always shown, so nothing you set is hidden from you.
* Added fields and pins belong to your browser, not to the theme. The values you type into them are saved with the theme as usual.
* `content` and selectors are not here. They belong in [Custom CSS](#custom-css).

{% hint style="info" %}
**Text styles.** The typography style picker applies one of the variants from **Theme settings > Typography** (Heading 01, Heading 02, Subheading, Body). Change the variant there and every text that uses it follows.
{% endhint %}

## <mark style="color:red;">States and Inner Elements</mark>

The **State** row at the top of the Design tab lets you style an item for a moment in its life: **Hover**, **Focus**, **Pressed**, **Selected**, **Open**, **Disabled** and more. Only the states the item really has are offered.

### <mark style="color:red;">Styling a State</mark>

{% stepper %}
{% step %}

#### Add a state

Select the item and click **Add state** in the **State** row.
{% endstep %}

{% step %}

#### Pick the state

Pick the state. The row now shows **Editing** with its name, and the controls below belong to that state.
{% endstep %}

{% step %}

#### Set the values

Set the colors, border, shadow and the rest. Go back to **Default** to style the item at rest again.
{% endstep %}
{% endstepper %}

* A state starts with no values. Whatever you do not set stays as in **Default**.
* **Opacity** and **Transform** are offered only for Hover, Focus and Pressed, so a lasting state cannot make an item invisible for good.
* **Scrolled**, **While a panel is open** and **Docked** describe the whole page. On a header or footer, they let it change once the shopper scrolls.
* **Remove** on a state deletes every value set in it.

{% hint style="info" %}
The canvas holds most states for you while you edit them (**held in the canvas**). Where it says **not held in the canvas**, the values still apply on the storefront; the canvas just cannot show them.
{% endhint %}

### <mark style="color:red;">Inner Elements</mark>

A block that draws parts of its own, such as a close button, a dropdown or a price line, lists them under **Elements** in the tree and **Inner elements** on the Design tab. Selecting one opens its own panel, with a help text, its states, all CSS and its own Custom CSS. **Back to block** returns to the block. While an element is selected, actions that apply to the whole block are disabled.

## <mark style="color:red;">Breakpoints and Responsive Design</mark>

Every design value belongs to a breakpoint. Pick a size under **Preview size**, and whatever you change from then on is written for that size only.

| Breakpoint | Range         | Canvas and inheritance                                                 |
| ---------- | ------------- | ---------------------------------------------------------------------- |
| Desktop    | 1024px and up | The canvas is at least 1280px wide, scaled to fit.                     |
| Tablet     | 768–1023px    | The canvas is 768px wide. Unset values come from Mobile, then Desktop. |
| Mobile     | Up to 767px   | The canvas is 390px wide. Unset values come from Desktop.              |

A value taken from another breakpoint is marked **Inherited from …**. The reset button next to a field removes the value set for this breakpoint only, so it inherits again.

### <mark style="color:red;">Adding Your Own Breakpoints</mark>

{% stepper %}
{% step %}

#### Open breakpoint settings

Choose **Edit…** at the bottom of **Preview size**, or **Gear > Breakpoints**.
{% endstep %}

{% step %}

#### Add a breakpoint

Click **Add breakpoint** and enter a **Name** and a **Min width (px)**, a **Max width (px)** or both.
{% endstep %}

{% step %}

#### Save

Click **SAVE**. The new breakpoint is selected, and the canvas is shown at its width.
{% endstep %}
{% endstepper %}

* Custom ranges cannot overlap each other, but they may sit inside a built-in band.
* Values not set on a custom breakpoint come from the built-in band its width falls in (**Unset values: …**).
* Deleting a breakpoint deletes the values made for it.
* Breakpoint changes are saved with your next save or publish.

### <mark style="color:red;">Showing a Section on One Size Only</mark>

**Responsive Visibility** on a section’s **Advanced** tab has **Hide on Mobile** and **Hide on Desktop**. For other combinations, use the breakpoints of **Conditional Visibility**. **Responsive Diff** on the same tab lists what differs between sizes, with **Sync from desktop** and **Reset mobile** buttons.

## <mark style="color:red;">Reusing Styles and Templates</mark>

| Feature                  | What it does                                                                                                                                                                                                                                                                 |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Style Presets            | On the **Advanced** tab. Save the selected item’s styles under a name, then **Apply** them to another item, choosing which properties to take. Presets are saved with the theme, so your whole team sees them. **Export** and **Import** move them between themes as a file. |
| Copy Style / Paste Style | Takes one item’s styles to another directly, without saving a preset.                                                                                                                                                                                                        |
| Reusable Templates       | Also on the **Advanced** tab. Save a section (or a block) as a template with a name and category. It then appears under **Saved Templates** in the picker, on this channel and on your other channels too once you publish.                                                  |

{% hint style="info" %}
Saved templates reach your other channels when you publish. If a channel has no theme saved yet, or already has a template with the same name and category, the editor warns you and that channel is skipped.
{% endhint %}

## <mark style="color:red;">Images, Fonts and Colors</mark>

### <mark style="color:red;">Media Gallery</mark>

Open the gallery from the zoom pill at the bottom right of the canvas, or with **Select from gallery** next to an image field. Drop files onto it or use **Upload images**; you can upload several at once. Each image has **Select**, **Copy URL** and **Delete** actions. The gallery is shared across the channel.

* An image field takes an upload, a gallery pick or a URL. Images can differ per language.
* Videos can be uploaded up to 20 MB.

{% hint style="warning" %}
**PNG, JPG, WEBP and GIF only.** The gallery does not accept SVG files, and other files are skipped without a message. Upload SVG icons from **Theme settings > Icons**.
{% endhint %}

### <mark style="color:red;">Fonts</mark>

The font picker lists Google Fonts by category, with a search box, and the fonts you uploaded under **Custom Fonts**. **Inherit (System Default)** leaves the font to the parent. Upload fonts of your own in **Theme settings > Typography**.

### <mark style="color:red;">Colors</mark>

The color picker takes a hex value and an alpha. **Theme Colors** links to the theme’s colors (**Linked: …**), so changing them in Theme settings updates every linked item. **save color** keeps up to 10 colors of your own in your browser.

## <mark style="color:red;">Data Sources and Bindings</mark>

A section that shows products or other data reads them from a **data source**. You pick it on the section’s **Behaviour** tab, under **Source > Select Data Source**. The blocks inside the section read the section’s source.

| Source type  | Description                                                                                                                                                 |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Collection   | Products from a collection in your catalog, up to a **Product Limit**.                                                                                      |
| API          | Data from an address you give, with GET or POST.                                                                                                            |
| Static       | Data you enter yourself.                                                                                                                                    |
| Page Context | The data of the page the section is on: the product on a product page, the basket on the basket page, the signed-in customer on an account page, and so on. |

{% hint style="warning" %}
**A source used by several sections.** When you edit a source that other sections on the page also use, the editor asks whether the change is for **Only this section** (it gets its own copy) or **All sections using it**.
{% endhint %}

### <mark style="color:red;">Binding Blocks to Data</mark>

{% stepper %}
{% step %}

#### Repeat a group for each item

Select a group inside the section. Under **Dynamic Bindings > Repeat From Array**, set the **Iterator path** to a list, such as `plp.products` or `basket.items`. The group now repeats once per item and is marked **ITERATOR**.
{% endstep %}

{% step %}

#### Bind a block

Select a block inside the group. Under **Block Binding**, pick what to fill (text, image source, link…) and set the **Binding path**. Inside a repeat, this is `item.` followed by the field, such as `item.name`.
{% endstep %}

{% step %}

#### Check the canvas

Check the canvas. A path that resolves to nothing falls back to the block’s own content.
{% endstep %}
{% endstepper %}

**Page data** on the **Advanced** tab lists the fields the page on the canvas really carries, with their values. Click one to copy its path, or use **Bind to …** to bind it to the selected block.

{% hint style="info" %}
**Theme QA** reports a section that expects a source and has none, a source that no longer exists or is empty, and a repeat that resolves to no items.
{% endhint %}

## <mark style="color:red;">Visibility and Scheduling</mark>

**Hide** in the tree or the **⋮** menu takes an item off the storefront for everyone. The panels below, on the **Advanced** tab, show the item only when their conditions hold.

| Panel                  | Description                                                                                                                                                                                                                                                            |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Conditional Visibility | Off by default. Narrows by audience (**All visitors**, **Authenticated only**, **Guest only**), breakpoint, language, currency, page address (equals, contains, starts with), a query parameter in the address, and **Page data** conditions on the page’s own fields. |
| Publish Window         | A start and end time. Before the start the item is **Scheduled**, after the end it is **Expired**, and in between it is **Live**.                                                                                                                                      |
| Per-row visibility     | For blocks inside a repeat: show the block only on rows where a field has a value, equals something, is above a number and so on.                                                                                                                                      |

{% hint style="warning" %}
**The canvas still shows it.** Page data conditions are ignored on the canvas, and scheduled or expired items stay visible there so that you can still edit them. Check them on the storefront, for example with **View on site** from the working copy’s **⋮** menu.
{% endhint %}

## <mark style="color:red;">Drafts, Previews and Publishing</mark>

What you change on the canvas is kept in a **working copy** until you publish it. The **Working copy** picker on the right of the toolbar shows which one you are editing.

| Working copy  | Description                                                                                                                                                                                                                                |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Draft         | Where the editor opens. **Save draft** keeps your work here without publishing it.                                                                                                                                                         |
| Named preview | A copy of the page with a name, for a campaign or to show someone. **+ New preview** creates one, and **View on site** opens it on your storefront in a new tab. A preview belongs to one page: changing page takes you back to the Draft. |
| Live          | The live site itself. Nothing is kept on the side here: your changes reach the site only when you publish.                                                                                                                                 |

### <mark style="color:red;">Publishing a Page</mark>

{% stepper %}
{% step %}

#### Click Publish

Click **Publish** in the toolbar.
{% endstep %}

{% step %}

#### Confirm

Confirm with **Publish to live**. The page and your theme changes (settings, breakpoints, data sources…) go to the live site.
{% endstep %}

{% step %}

#### Continue working

If you published from the Draft or a preview, you are back on the Draft. If you published from Live, you stay on Live. The undo history starts afresh.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
**Someone else saved this page.** Before publishing, the editor checks whether anyone else published the same page since you opened it. If so, nothing is written: the window lists what changed and offers **Overwrite** (your version replaces theirs). To take their version instead, refresh the page. Your unpublished changes are then lost.
{% endhint %}

### <mark style="color:red;">The ⋮ Menu of the Working Copy</mark>

* **View on site:** Opens the copy on your storefront. Preview links last a day.
* **Save a copy into…:** Writes the page into another preview (or the Draft) and gives you a link to share, while you keep editing where you are.
* **Reset page to live:** Removes this page from the copy you are in. Other pages and previews are not affected.
* **Delete:** Deletes a named preview and the pages it holds. The live site is not affected.

### <mark style="color:red;">Auto Save</mark>

Auto save is off by default. Turn it on under **Theme settings > Auto Save** and choose an interval between 10 and 3600 seconds. It writes into the Draft or the preview you are editing, never to Live, and stops after three failures in a row (**Auto save failed**). The setting belongs to your browser.

{% hint style="info" %}
**“Unsaved changes” after saving a draft.** The indicator next to the page title compares the page with the live site, so after **Save draft** it can still say **Unsaved changes** until you publish. Your draft is saved. For the same reason, the browser asks before you close the tab.
{% endhint %}

When you open a page that a named preview also holds, **Saved preview found** lists those previews: **Continue from this** switches to one, **Discard** deletes its copy of the page, and **Keep live version** carries on as you are.

## <mark style="color:red;">Theme QA</mark>

The editor checks the whole page as you work. The badge next to the page title shows the number of errors and warnings. Click it to open **Theme QA** in the right panel, where you can filter by **Errors**, **Warnings** and **Info** and jump to each finding.

| Severity | Description                                                                                                                                                                                                                                        |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Errors   | Something that will not work: a publish window with an invalid or reversed date, a button that opens no modal or a modal that no longer exists, a data source that is missing.                                                                     |
| Warnings | Something that will probably look wrong: text with too little contrast, an item that may be invisible, missing mobile styles, an empty image, a button with no link or no text, a section with no or an empty data source, a repeat with no items. |
| Info     | Worth knowing: an item is hidden, scheduled or expired, or a text block is empty. Info is not counted on the badge.                                                                                                                                |

{% hint style="info" %}
QA does not stop you from publishing. Clear the errors first, then read the warnings with the canvas in front of you.
{% endhint %}

## <mark style="color:red;">Theme Settings</mark>

Open the settings with **Gear > Theme settings**. **Close theme settings** takes you back to the canvas. Changes here are kept with the theme and published with your next **Publish**, except where a tab has a **SAVE** button of its own.

| Tab              | Description                                                                                                                                                                                   |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| General Settings | Logo (200 × 200 px, svg), plain header, and the site-wide font family, backup font, weight, subsets, size and color. This tab has its own **SAVE** button, which saves straight away.         |
| Primary Styling  | The theme colors (**Primary**, **Secondary**, **Color 3**, **Color 4** and **Background Color**), the sticky main menu and the breadcrumb separator. Items linked to a theme color follow it. |
| Typography       | The text variants (Heading 01, Heading 02, Subheading, Body), each with font, weight, size, style and color, and **Custom Fonts**.                                                            |
| Social Networks  | Links and 32 × 32 px SVG icons for Facebook, Instagram, Twitter and LinkedIn.                                                                                                                 |
| Icons            | The site’s SVG icons by category. **Upload All** takes several files, named after the icon they replace.                                                                                      |
| Checkout         | The checkout layout (multi-step, one page, or basket and checkout together), its behavior switches and the agreement texts. It has its own **SAVE** button.                                   |
| Auto Save        | Turns auto save on and sets its interval. See [Auto Save](#auto-save).                                                                                                                        |
| Reset            | Empties chosen parts of the theme. See the warning below.                                                                                                                                     |

### <mark style="color:red;">Custom Fonts</mark>

Under **Custom Fonts**, **Add Font** takes .woff2, .woff, .ttf and .otf files, several at once. The font is named after the file, and files with the same name become one font in several formats. Upload WOFF2 + WOFF for full browser support; a font missing them is marked **Missing recommended formats**. Large files get a warning but are not refused.

### <mark style="color:red;">Icons</mark>

Icons take SVG only. **SVG Preparation Guidelines** next to them lists the rules:

* Convert strokes and text to outlines.
* Merge shapes.
* Do not cut holes with white fills.
* Do not use embedded images.
* Use one grid size.
* Follow the file naming convention.

{% hint style="danger" %}
**Reset cannot be undone.** **Reset** writes straight to the live site, takes no backup and has no undo. Resetting a page body deletes every section in it. Resetting **Theme Configuration** clears all theme settings, breakpoints, data sources, your own pages and saved templates. Export the theme from **Themes > Export Current** first.
{% endhint %}

## <mark style="color:red;">Themes</mark>

**Gear > Themes** opens the theme library: ready-made themes (marked **Preset**) and the themes your team saved. The library is shared by everyone working on the project. You can search by name or tag, and sort by date or name.

### <mark style="color:red;">Applying a Theme</mark>

{% stepper %}
{% step %}

#### Preview the theme

Open a theme to see it on your own storefront with **Preview**, page by page and on each device, or check its **Contents**.
{% endstep %}

{% step %}

#### Choose the pages

Click **Apply**. The window lists the pages the theme carries. Untick any page you want to keep, or single sections on a page.
{% endstep %}

{% step %}

#### Choose what else applies

Under **Also applies**, untick what you do not want: settings, breakpoints, your own pages, style presets, saved templates.
{% endstep %}

{% step %}

#### Apply

Click **Apply selected** and keep the page open until it finishes.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
**Applying publishes.** The selected pages are published straight away, and unpublished changes from the editor go out with them. Sections supplied by your storefront and locked sections are never touched. If you are working in a Draft or preview, the theme goes into that copy instead.
{% endhint %}

Before anything changes, a backup of everything the theme replaces is taken. **Undo** in the banner that follows restores it in one click. The last five backups are kept under **Backups**, where **Restore** brings any of them back.

### <mark style="color:red;">Saving and Sharing Themes</mark>

| Action          | Description                                                                                                |
| --------------- | ---------------------------------------------------------------------------------------------------------- |
| Save to Library | Saves the current site as a theme in the shared library, with a name, description, version and tags.       |
| Export Current  | Downloads the current site as a `.theme.json` file: every page, the settings and the data sources it uses. |
| Upload Theme    | Adds a `.theme.json` file to the library. A theme with the same name can be updated or kept alongside.     |

{% hint style="info" %}
Applying a theme saves itself, so there is no Save button on the Themes page. Themes are for the web; the mobile app has none.
{% endhint %}

## <mark style="color:red;">Mobile App</mark>

Where your project has it enabled, a **Web / Mobile App** switch appears on the left of the toolbar. **Mobile App** designs the pages of your mobile app instead of the website.

* The canvas is a phone drawn by the editor, with its own zoom, instead of your website.
* There is one size only, so there is no preview size and no breakpoints.
* The page picker lists the app’s pages, and the blocks are the app’s own.
* The left panel is a layer list with search and filters.
* Themes, the media gallery button, navigate mode, Custom CSS and Code Import are web-only.
* **Theme settings** gains **Mobile Navigation** (bottom tabs and the drawer) and **Native App Config** (app icon, splash, fonts, sounds; these need a new app build).

### <mark style="color:red;">Previewing on a Device</mark>

{% stepper %}
{% step %}

#### Save the page

Save a draft or a preview of the page.
{% endstep %}

{% step %}

#### Click Preview on device

Click **Preview on device** in the toolbar.
{% endstep %}

{% step %}

#### Scan the QR code

Scan the QR code with a phone that has the app. The app shows your copy until you leave the preview.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
**Switching discards unsaved changes.** Switching between Web and Mobile App clears the canvas and the undo history without asking. Save first.
{% endhint %}

## <mark style="color:red;">Custom CSS</mark>

The **Custom CSS** box on the **Advanced** tab takes CSS for the selected item, for what the controls cannot do. It is limited to that item, so it cannot affect the rest of the page. `&` stands for the item itself.

```css
& { clip-path: inset(0 0 20% 0); }
& [data-part="dropdown"] { border-radius: 0; }
&:hover > li { gap: 8px; }
```

* Like every design value, Custom CSS is kept per breakpoint.
* Elements have a box of their own on their panel.
* Where the block draws an inline style, add `!important` to win over it.

{% hint style="danger" %}
**CSS that is dropped as a whole.** The storefront discards an item’s whole Custom CSS, without a message, if it contains `@import`, `@charset`, `javascript:`, `expression(`, `behavior:` (including `scroll-behavior:` and `overscroll-behavior:`), `-moz-binding`, `<style` or `<script`, or if its braces do not balance. If nothing you wrote applies, look for one of these first.
{% endhint %}

## <mark style="color:red;">Copying Sections as JSON</mark>

A section can be taken out as JSON text and put back elsewhere: on another page, another channel or another project.

{% stepper %}
{% step %}

#### Export the section

Select the section (not a block inside it). Open **Advanced > Section JSON > Export JSON**. The JSON is copied; **Copy JSON** copies it again.
{% endstep %}

{% step %}

#### Open the target page

Open the page you want it on and select a section there.
{% endstep %}

{% step %}

#### Import the section

Choose **Import JSON**, paste the text and click **Import after current**. The section is added after the selected one and selected.
{% endstep %}
{% endstepper %}

With a section selected, **Ctrl/⌘+C** and **Ctrl/⌘+V**, or **Copy** and **Paste** in the **⋮** menu, do the same through the clipboard.

* An imported section gets new IDs, so it is a new section. To replace one, import the new one after it and remove the old one.
* The section keeps its data source reference. The data source must exist where you import it.
* Sections supplied by your storefront cannot be exported.

## <mark style="color:red;">Code Import</mark>

**Code Import** in the right panel (with nothing selected, or on a section’s **Advanced** tab) turns HTML or React markup into sections and blocks you can then edit like any other.

{% stepper %}
{% step %}

#### Choose the source and target

Choose the **Source type** (HTML or React) and the **Target placeholder** (the area the section goes into).
{% endstep %}

{% step %}

#### Paste the code

Paste the code, and the CSS if there is any.
{% endstep %}

{% step %}

#### Save as a template (optional)

Tick **Save as reusable template** if you want it in the picker later.
{% endstep %}

{% step %}

#### Convert and insert

Click **Convert**, read **Diagnostics**, then click **Insert section**, or **Update current section** for a section you imported earlier.
{% endstep %}
{% endstepper %}

* Code and CSS together can be up to 100 KB and 300 elements.
* React has to be static JSX: HTML tags, text and inline styles. Components, hooks, events, variables and other JavaScript are skipped, with a warning.

{% hint style="info" %}
To fill an imported section with page data, give it a **Page Context** data source and bind its blocks. See [Data Sources and Bindings](#data-sources-and-bindings).
{% endhint %}

## <mark style="color:red;">AI Sections from Zeplin</mark>

With nothing selected, the right panel offers to turn a Zeplin screen into sections for the page.

{% stepper %}
{% step %}

#### Select a placeholder

Choose the page body under **Select a placeholder**.
{% endstep %}

{% step %}

#### Paste the Zeplin link

Paste the screen’s zeplin.io link under **Enter your Zeplin link**.
{% endstep %}

{% step %}

#### Generate the sections

Click **DOWNLOAD FROM ZEPLIN**. The editor is locked while the sections are generated; **Cancel Generation** stops it.
{% endstep %}
{% endstepper %}

Generated sections are named **Zeplin Import** with the date. Check them on every size before publishing.

{% hint style="info" %}
**Omnitron AI is required.** This feature needs the **Omnitron AI** application to be active in your Omnitron. Without it, you see **AI application not found**. Generation gives up after about ten minutes.
{% endhint %}

## <mark style="color:red;">Keyboard Shortcuts</mark>

| Shortcut                 | Action                                                                   |
| ------------------------ | ------------------------------------------------------------------------ |
| `Ctrl/⌘` + `S`           | Save draft into the working copy you are editing. On Live, it publishes. |
| `Ctrl/⌘` + `Z`           | Undo the last change                                                     |
| `Ctrl/⌘` + `Shift` + `Z` | Redo                                                                     |
| `Delete`                 | Delete the selected block, or the section when no block is selected      |
| `Ctrl/⌘` + `C`           | Copy the selected section as JSON                                        |
| `Ctrl/⌘` + `V`           | Paste a copied section after the selected one                            |
| `Ctrl/⌘` + `B`           | Bold, in a rich text field                                               |
| `Ctrl/⌘` + `I`           | Italic, in a rich text field                                             |
| `Esc`                    | Close the open dialog, menu or the user guide                            |

* Undo, redo, delete, copy and paste do nothing while you are typing in a field; there they act on the text.
* Copy and paste work when a section is selected.
* In rich text fields, **Ctrl/⌘+Z** and **Ctrl/⌘+Y** undo and redo inside the text.

{% hint style="danger" %}
**Ctrl/⌘+S on Live publishes.** While you are editing **Live**, **Ctrl/⌘+S** publishes straight away, without the confirmation **Publish** asks for. It still checks whether someone else published the page in the meantime.
{% endhint %}

## <mark style="color:red;">FAQ</mark>

<details>

<summary>I changed something but the storefront does not show it.</summary>

Your change is in a working copy until you **Publish**. Check the **Working copy** picker: on **Draft** or a preview, the live site has not changed yet. Use **View on site** from the **⋮** menu to see the copy on the storefront.

</details>

<details>

<summary>Save draft and Publish are greyed out.</summary>

The editor waits until the storefront in the preview has reported its languages. Wait for the canvas to load. If it never does, reload the page.

</details>

<details>

<summary>It says “Someone else saved this page”.</summary>

Someone published the same page after you opened it. **Overwrite** replaces their work with yours. To keep theirs, refresh the page and make your change again.

</details>

<details>

<summary>I removed a section by mistake.</summary>

Press **Ctrl/⌘+Z**. If you have published since, the section is gone from the live site too. If a theme was applied, its **Undo** or a backup under **Themes > Backups** may bring it back.

</details>

<details>

<summary>A section I hid with a condition still shows on the canvas.</summary>

Page data conditions and publish windows are not applied on the canvas, so that you can keep editing the item. Check it on the storefront.

</details>

<details>

<summary>My Custom CSS does nothing.</summary>

Check for a forbidden word such as `behavior:` (also inside `scroll-behavior:`) or unbalanced braces; either drops the whole box. If the block sets an inline style, add `!important`.

</details>

<details>

<summary>My brand’s new block or page is not in the editor.</summary>

Your storefront announces them to the editor. Once the new storefront version is deployed, reload the editor.

</details>

<details>

<summary>The SVG I upload to the gallery does not appear.</summary>

The media gallery takes PNG, JPG, WEBP and GIF only. Upload SVG icons under **Theme settings > Icons**.

</details>

## <mark style="color:red;">Related Pages</mark>

* [How to Manage Custom/Campaign Pages in Omnitron?](https://docs.akinon.com/tutorials/omnitron/sales-channels/content-management/how-to-manage-custom-campaign-pages-in-omnitron)
* [How to Manage Widgets in Omnitron?](https://docs.akinon.com/tutorials/omnitron/sales-channels/content-management/how-to-manage-widgets-in-omnitron)
* [Akinon Template Studio](https://docs.akinon.com/tutorials/akinon-ai-features/akinon-template-studio)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.akinon.com/tutorials/akinon-theme-editor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
