---
question: "Where do I put an image my module's app shows?"
kind: task
via_web: na
via_cli: available
via_python: na
via_api: na
via_config: available
ref_cli: abi new app
ref_config: slides_template_sources
prereq: You need a module of your project. [Create a module](/capabilities/build/modules/creating-a-module) first.
next:
  - /capabilities/build/assets/overview
  - /capabilities/build/apps/create-an-app
  - /capabilities/build/agents/creating-an-agent
---

# Add an asset

An asset is a file in the module folder that is not code. An image, a script or a stylesheet an app uses goes in the app's folder, and the module serves it with the app. Template trees for Nexus Slides, Documents and Sheets go anywhere in the project and are declared in `config.yaml`.

## Web UI

Not applicable. Nexus has no screen that adds a file to a module. Files uploaded in a workspace are that workspace's data, not module assets. Use the CLI or Config steps on this page.

## CLI

### Put the file in the app's folder

`abi new app` writes the app's folder (see [Create an app](/capabilities/build/apps/create-an-app)). Copy the file next to its `index.html`:

```text
src/research/
├── __init__.py
└── apps/
    └── review/
        ├── manifest.json
        ├── index.html
        └── img/
            └── logo.png
```

### Point the page at it

Use a relative URL, which resolves under the app's path:

```html title="apps/review/index.html"
<img src="img/logo.png" alt="Review">
```

The app opens at `/app-html/remote/<module_id>/review/`, so the image answers at `/app-html/remote/<module_id>/review/img/logo.png`, for the users of a workspace that turns the app on. Its icon in the apps list is `icon_emoji` in `manifest.json`.

### Restart the module

The module reads its `apps/` folder when it starts:

```bash
abi dev down --service research
abi dev up -d --service research
```

`research` is the module's name in `dev.modules`. With Docker Compose, rebuild its service: `docker compose up -d --build research`. The command is [`abi dev`](/user-guide/reference/cli#abi-dev).

## Python

Not applicable. A module publishes an agent with an `AgentDescriptor` (a name, a description and its capabilities), which has no avatar field yet, and an asset needs no code. Use the CLI steps for an app's files.

## REST API

Not applicable. No endpoint creates an asset: the module serves its apps' files as they are. The process list is the [API](/api).

## Config

A template tree gives Nexus Slides, Documents or Sheets more seeds to start from. ABI's own stay, under the `abi` namespace.

### Add the template files

A folder of `<id>.html` files, plus an optional `catalog.json` that names them. Copy an ABI seed to start, for example `naas_abi/apps/nexus/assets/slides/templates/minimal-light-v1.html`, and keep its structure:

```json title="src/research/assets/slides/templates/catalog.json"
{
  "templates": [
    {
      "id": "acme-deck-v1",
      "name": "Acme Deck",
      "description": "Acme colors and logo.",
      "preview": { "bg": "#ffffff", "panel": "#f5f5f5", "accent": "#ff5500", "ink": "#1a1a1a" }
    }
  ]
}
```

Catalog order is the order Nexus lists them in.

### Declare the tree

```yaml title="config.yaml"
modules:
  - module: naas_abi
    enabled: true
    config:
      nexus_config:
        slides_template_sources:
          - namespace: "acme"
            path: "src/research/assets/slides/templates"
```

The `namespace` is lowercase letters, digits and dashes, up to 32 characters. The `path` is relative to the directory the API runs in, the project root. Documents and Sheets take the same entries under `documents_template_sources` and `sheets_template_sources`.

### Restart and check

Restart the engine. The templates are listed as `acme/<id>` next to `abi/<id>`, which is what `GET /api/slides/templates?workspace_id=<id>` returns. A path that is not a folder is skipped with a warning in the API log.

### Or set a workspace logo

The workspace seed takes a full URL:

```yaml title="config.yaml"
        organizations:
          - slug: "my-company"
            workspaces:
              - slug: "ops-workspace"
                logo_url: "https://cdn.example.com/logo.png"
```

The API serves `assets/public/` files only for the marketplace modules it loads, so a file of your module is not a logo URL. The seed only fills an empty logo: a logo chosen in the app wins, until it is cleared there.
