Skip to main content

Role Collaboration

📖 Best for: Business leaders, department managers, and complex task orchestrators

📖 Reading time: about 8 minutes

📖 In one sentence: Form a team of digital employees by business relationship and let them divide work and collaborate like a real company.

Digital employees are YingCore's single-combat unit—one role, one skill set, one persona. But enterprise-grade business can never be completed by a single fighter: after writing an article you still need design and visual assets, and after publishing you need data analysis. This is where role collaboration comes in: let multiple digital employees divide work, cooperate, and review each other like a real team, expanding one type of task output into a full business chain.

Core Idea: From Tools to Teams

YingCore's collaboration mechanism turns digital employees from isolated tools into a digital mirror of real business teams:

Collaboration is not simple sequential calls. It is a role network with business relationships—the four patterns of supervise, relay, parallel, and feedback cover all real business scenarios.

Four Collaboration Patterns

The collaboration between digital employees can be summarized into four basic patterns. Complex business flows are combinations of them:

PatternRelationshipUse CaseTypical Example
🎯 SuperviseManager assigns tasks to executorsApproval flow, task dispatchOperations manager → multiple content creators
🔀 RelayA finishes, hands to BStrongly dependent flowResearch → Writing → Proofreading
ParallelMultiple roles work simultaneouslyTasks that can be split with no dependencyProduce copy, posters, and video script at once
🔁 FeedbackB reviews A, A edits and resubmitsQuality check loopDrafting → Review → Editing → Final approval

Supervise Example

The manager role assigns tasks to multiple executor roles, and all results return to the manager:

# Operations manager dispatches tasks to 3 content creators
orchestration:
type: supervise
manager: operations-manager
workers:
- role: content-creator-xiaohongshu
task: write a product seed article
- role: content-creator-zhihu
task: write an in-depth review
- role: content-creator-video-script
task: write a 60-second voice-over script

Feedback Example

Drafting and review form a closed loop, cycling until final approval passes:

orchestration:
type: feedback
loop:
- role: writer
output: draft
- role: reviewer
action: check quality
- role: writer
action: revise based on feedback
condition: triggered when review fails
exit:
- role: final-reviewer
condition: review passes

Core Mechanisms: Four Collaboration Building Blocks

Digital employee collaboration is built on four mechanisms:

1️⃣ Role Dispatcher

Routes tasks to the most suitable digital employee, supporting three strategies:

StrategyRuleWhen to Use
Capability matchPick the role whose skill set matches bestGeneral scenarios
Load balancingPick the role with the fewest current tasksHigh concurrency
Round robinDistribute in orderFair distribution

2️⃣ Shared Context

All roles share the same business context during collaboration, avoiding information silos:

{
"context": {
"project_id": "campaign-2025-q3",
"brand": "Quick Cloud",
"target_audience": "SMB CTOs",
"previous_outputs": [
{ "role": "researcher", "summary": "3 customer pain points..." },
{ "role": "planner", "summary": "content topic matrix..." }
]
}
}

3️⃣ Collaboration Kanban

Visualizes the status, owner, and progress of all collaboration tasks, like a project management view:

4️⃣ Message Bus

Real-time communication between roles, supporting both synchronous wait and async notification:

Message TypePurposeExample
📤 Task dispatchManager → executorPlease finish this seed article within 2 hours
📥 Result returnExecutor → managerDone, 1200 words total
🆘 Help requestAny → AnyNeed brand assets, please push
ConfirmationAny → AnyGot it, will reply within 30 minutes

Complete Scenario: Content Marketing Department

A brand is running a Q3 marketing campaign that requires 5 digital employees to collaborate:

StepRoleInputOutput
1Marketing ManagerBusiness goalTask assignment list
2Content PlannerBusiness goalTopic list, key info
3CopywriterTopic list3 draft articles
4DesignerTopic listVisuals, posters
5Content ReviewerCopy + visualsFinal draft / revision notes
6Channel PublisherFinal draftMulti-channel publish
7Data AnalystPost-publish dataPerformance report

Full YAML configuration:

# content-marketing-team.yaml
team: marketing-department
orchestration:
- id: step-1
role: marketing-manager
action: analyze business goal, output task list
output: task-list.json

- id: step-2
role: content-planner
depends_on: [step-1]
action: output topic matrix based on task list
output: topics.json

- id: step-3
role: copywriter
depends_on: [step-2]
action: write copy for each topic
output: drafts/*.md

- id: step-4
role: designer
depends_on: [step-2]
action: produce visuals for each topic
output: assets/*.png
parallel_with: [step-3]

- id: step-5
role: content-reviewer
depends_on: [step-3, step-4]
action: review copy and visuals
on_fail: feed back to step-3 or step-4 for revision
loop_until: pass

- id: step-6
role: channel-publisher
depends_on: [step-5]
action: sync to multiple channels
output: publish-link-list

- id: step-7
role: data-analyst
depends_on: [step-6]
delay: 7d
action: collect data and generate report
output: report.pdf

Key Parameters

ParameterTypeDescription
teamstringCollaboration team name
orchestrationarrayCollaboration step list
depends_onarrayUpstream step IDs this step depends on
parallel_witharrayStep IDs that can run in parallel
loop_untilstringLoop exit condition
delaydurationStep start delay
on_failstringFallback action on failure

Best Practices

PracticeDescription
🎯 Keep role responsibility singleOne role handles one kind of output, avoid catch-all roles
🔀 Use relay for critical pathStrongly dependent steps run sequentially for quality
Use parallel for independent tasksRun dependency-free steps simultaneously to save time
🔁 Add feedback for qualityKey outputs must have a review step, loop until qualified
👤 Reserve key decisions for humansStrategic and brand-tone soft judgments go to human employees
📊 Visualize collaboration chainUse kanban so everyone sees who is doing what
🛑 Set fallback rolesEvery task has an emergency takeover role
💰 Control collaboration depthKeep one chain to 7 or fewer roles, split if larger

Next Steps

Role collaboration makes multiple roles cooperate horizontally; task orchestration makes multiple steps link vertically. Learn more about Workflow and Task Orchestration, including 5 orchestration patterns and exception handling.