lehuo Agents Docs

Department Templates

Department templates let an admin pre-configure a full team blueprint — squad, agents, channel, and starter tasks — that any workspace member can apply with a single click.

Department templates are reusable blueprints stored at the instance level. An admin defines the full shape of a department — its squad structure, agent roles, collaboration channel, and a set of starter tasks — and every workspace member can apply that template to their workspace with a single click. No code, no configuration expertise required.

What a template contains

ElementDescription
SquadName, description, and leader instructions injected into the leader agent's system prompt
AgentsOne or more agent roles — each with a name, responsibility instructions, role type, voice style, and optional skills to bind automatically
ChannelOptional: create a named channel and add all template agents as members automatically
Initial issuesA list of starter tasks created at apply-time, assigned to the new squad. Mark any as auto-start to immediately link the issue to the channel and trigger the squad leader

Applying a template

  1. Open Department Templates in the sidebar.
  2. Browse by category and pick a template.
  3. Choose a Runtime — all agents created from the template are bound to this runtime.
  4. Click Apply. The platform creates the squad, agents, channel (if configured), and initial issues in one operation.

You can select or override the squad assignment per-template at apply time. If you want to direct the work to a different squad than the template default, choose it from the squad dropdown before applying.

Built-in e-commerce presets

The admin panel ships with five ready-made templates for e-commerce teams. An admin can import them all in one click from Admin → Department Templates → Import E-commerce Presets.

TemplateLeader roleMembers
OperationsOperations managerData analyst, Campaign planner, Listing copywriter
Customer serviceCS supervisorPre-sales agent, After-sales agent
DesignDesign leadProduct photographer, Detail-page designer, Campaign visual
Paid adsAd managerAd optimizer, Creative analyst
Product developmentProduct leadMarket researcher, Competitive analyst, Listing writer

Each preset includes squad instructions (injected into the leader's prompt), per-agent responsibility instructions, and a linked collaboration channel.

For admins: managing templates

Admins configure templates in Admin → Department Templates. Each template has:

  • Category — groups templates in the picker (e.g. E-commerce, General).
  • Visibility — enabled templates appear in the user-facing picker; disabled ones are hidden.
  • Sort order — controls display order within a category.
  • Clone — duplicate a template as a starting point for a variant (the copy starts hidden for review before publishing).
  • Edit — update any field at any time. Changes apply to future applies only; existing squads are not affected.

The definition is stored as structured JSON (squad / agents / channel / initial issues) and can be edited through the visual form editor.

Next steps

  • Squads — understand how the leader-member routing works
  • Channels — how the auto-created channel and squad collaboration connect
  • Agents — configuring an individual agent's role and voice style