Automation recipes
Safe patterns for workspace briefings, task intake, memory synchronization, employee setup, and custom MCP configuration.
These recipes describe bounded sequences. Inspect the live REST schema or MCP tool inputs before implementation.
Daily workspace briefing
Use get_workspace_overview, list_tasks, and get_runtime_health. Summarize blocked and in-review work, pending attention, employee ownership, and runtime freshness. Keep this key read-only.
Structured task intake
- Read
list_agentsand choose the intended owner. - Normalize the request into a title, summary, priority, and labels.
- Call
create_taskonce. - Call
read_taskon the returned identifier to confirm assignment and status. - Link the returned task identifier in the calling system.
Do not auto-retry an ambiguous failed write without checking whether the task already exists.
Review and reconcile existing work
- Use
list_taskswith a single status such asREVIEWorBLOCKED. - Call
read_taskbefore deciding; inspect comments, activity, approval summaries, and evidence-file metadata. - Use
comment_taskto record the reviewer, evidence needed, or next action. - Use
update_taskfor content, assignment, priority, due date, or a status transition; usemove_taskwhen board ordering matters. - Re-read the task and compare status totals after the bounded batch.
A task comment or status change is not approval for a linked send, post, publish, spend, deploy, delete, or other guarded action. Do not mass-close a review queue merely to reduce its count, and do not assume two UI totals represent the same filters.
Synchronize approved company context
- List current memory with
list_memory. - Match the source document to an existing Yodu memory record.
- Present a diff for human review.
- After approval, call
create_memoryfor a replacement version, orupdate_memorywhen editing an existing draft. Direct active edits are validated and re-applied, but a replacement draft keeps the review boundary explicit. - Call
activate_memorywith the reviewed draft identifier so the new version becomes active and reaches the runtime. - Record the source version outside Yodu for the next comparison.
Avoid replacing a carefully maintained company profile with raw source text. Creating or updating memory alone leaves a draft; activation is the explicit publish step.
Recruit and configure an employee
- Call
list_role_templates. - Use
create_agentwith a clear display name. New employees start with every workspace tool enabled; disable what the role does not need. - Use
write_agent_configfor role-specific operating guidance. - Set an available model and required skills.
- Call
provision_agent. - Confirm the employee with
list_agentsand runtime health. - Create one known test task before enabling more tools.
Configuration and provisioning require an owner or admin role.
Install a custom employee skill or helper script
- Identify the employee with
list_agents. - Review the file contents and choose a relative path beneath
skills/orscripts/. - Call
write_agent_fileas an owner or admin. - Provision the employee if needed, then run a bounded test task.
- Inspect the resulting task, messages, and files before widening the employee's tool surface.
write_agent_file cannot replace runtime-owned root documents, write .env, use an absolute path, or traverse outside the employee workspace. It returns file metadata rather than echoing the file body.
Rotate a workspace or employee secret
- Call
list_secretsto inspect names, scope, provider, and update time without exposing values. - Decide whether the new value should be shared workspace-wide or override that name for one employee.
- Call
set_workspace_secret; includeagentIdonly for the employee-scoped override. - Confirm the returned scope and version metadata.
- Run a bounded employee test and revoke the old credential at its source when appropriate.
Secret values are write-only. A same-named employee secret takes precedence over the workspace value for that employee.
Register a private MCP server
Use add_custom_mcp_server only after reviewing the remote server's tool surface. It requires secrets:write because an optional authorization header is encrypted as a workspace secret. The tool returns server metadata, never the header value.
After registration, verify and grant the server through Yodu's employee tool-access workflow. Platform MCP registration does not automatically make every external action appropriate for every employee.
