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
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.
The task payload is returned in the stubpost:
You can interpolate these values in later tasks within the same action using the ~~ prefix:
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
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:
For example, to pass the style guide into a GPT system prompt:
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.
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.
Only branding_guide_md and brand_assets are accepted. Other keys will fail the task.
Task reference
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.