1. Creating an Org
  2. Organisation Branding

Creating an Org

Organisation Branding

How to access and use an organisation's branding — its style guide and brand assets — from templates and agents.

Stubber stores branding on each organisation. Branding includes a Markdown style guide (branding_guide_md) and brand assets (brand_assets) such as logos and favicons.

Branding is generated during onboarding and can be viewed or edited in Manage → Basic. Agents and templates can read branding in two ways: by running the get_org_branding task, or by interpolating the action context directly.

Branding structure

json
        {
  "branding_guide_md": "# Acme Corp style reference\n\n## Colors\n| Role | Value |...",
  "brand_assets": {
    "_logo": { "fileuuid": "50d88278-9ee2-5178-a3e9-a84d721d4d75" },
    "_favicon": { "fileuuid": "448a784f-cb53-5023-8360-de9b2055a8cb" }
  }
}

      
Field Type Description
branding_guide_md string The brand style guide in Markdown. Includes colours, typography, theme, and imagery guidance.
brand_assets object Named assets. Each value contains a fileuuid pointing to a file on the Stubber file server.

Method 1: The get_org_branding task

Use this in an action's tasks to fetch branding into the stubpost. The task runs against the stub's own org.

task
        {
  "tasktype": "get_org_branding",
  "name": "fetch_branding",
  "__key": "fetch_branding",
  "__order": 0,
  "params": {}
}

      

The task payload is returned in the stubpost:

        stubpost.tasks.fetch_branding.payload.branding.branding_guide_md
stubpost.tasks.fetch_branding.payload.branding.brand_assets._logo.fileuuid

      

You can interpolate these values in later tasks within the same action using the ~~ prefix:

        ~~stubpost.tasks.fetch_branding.payload.branding.branding_guide_md

      
TIP

Use get_org_branding when you need the full branding object in a stubpost — for example, to pass the style guide into a prompt or to inspect individual assets.

Task reference

        stubber explain task get_org_branding

      
        TASK: get_org_branding
SERVICE: core
DESCRIPTION: Gets the org's branding: its brand guide and brand assets.

PARAMS:
  No fields declared.

PAYLOAD:
  NAME      TYPE           REQUIRED  DESCRIPTION
  branding  object | null  yes       The org's branding, null when it has none.

      

Method 2: Action context interpolation

Branding is attached to the action context automatically when an action runs. You can reference it directly in any interpolated field (task params, notification templates, etc.) without running a task first.

The path is:

        ~~org.extensionConfigs.coreServices.branding.branding_guide_md
~~org.extensionConfigs.coreServices.branding.brand_assets._logo.fileuuid

      

For example, to pass the style guide into a GPT system prompt:

task
        {
  "tasktype": "gpt_chat_task",
  "name": "branded_chat",
  "__key": "branded_chat",
  "params": {
    "messages": [
      {
        "role": "system",
        "content": "You are a brand-aware assistant. Follow this style guide:\n\n~~org.extensionConfigs.coreServices.branding.branding_guide_md"
      }
    ]
  }
}

      
NOTE

The org object is loaded from the database at the start of every action execution. If branding was just updated by set_org_branding in the same action, the action context reflects the update for subsequent tasks.

WARNING

If the org has no branding, ~~org.extensionConfigs.coreServices.branding resolves to null. Guard against this in conditions or prompts when branding is optional.

Writing branding: set_org_branding

The set_org_branding task updates an org's branding. It performs a partial merge: branding_guide_md replaces the existing guide, and each key in brand_assets replaces the asset of that name — other assets are preserved.

task
        {
  "tasktype": "set_org_branding",
  "name": "update_branding",
  "__key": "update_branding",
  "params": {
    "branding": {
      "branding_guide_md": "# Updated style guide\n\n..."
    }
  }
}

      

Only branding_guide_md and brand_assets are accepted. Other keys will fail the task.

Task reference

        stubber explain task set_org_branding

      
        TASK: set_org_branding
SERVICE: core
DESCRIPTION: Sets the org's branding. Only what's given is written:
  branding_guide_md replaces the guide, and each asset in brand_assets
  replaces the asset of that name; other assets are kept.

PARAMS:
  NAME      TYPE    REQUIRED  DESCRIPTION
  branding  object  yes       At least one of branding_guide_md and brand_assets.

      

Managing branding in Manage

Organisation branding is displayed and editable in Manage → Organisation → Basic, under the Branding section. From there you can:

  • View the rendered style guide
  • See brand assets (logos, favicons)
  • See extracted colours
  • Edit the Markdown style guide

Branding is generated automatically during onboarding when an organisation's name or website is provided.