Skip to content

A2A - Delegate a task

Use A2A when WorkIQ should execute an outcome and the caller needs a task contract.

A2AOutcomeWorkIQ agentTask + contextArtifactsGet / cancel

Contract

Endpoint    https://workiq.svc.cloud.microsoft/a2a/
Agent Card  https://workiq.svc.cloud.microsoft/a2a/.well-known/agent-card.json

WorkIQ supports A2A v1.0 and v0.3. Send A2A-Version; omission selects v0.3. Read the deployed Agent Card rather than hard-coding agent capabilities.

A message leads to a task. A context ID groups both the message and task with dashed links. The task exposes status and artifacts.
Object Meaning
Message User or agent communication
Task Stateful delegated work with an ID and lifecycle
Artifact Agent-produced output attached to a task; not a raw Microsoft 365 resource primitive
contextId Grouping for related messages and tasks

WorkIQ returns both identifiers. task.id names one unit of delegated work; contextId groups a conversation that can contain multiple messages or tasks. Persist both, and pass the returned contextId in a later message when it should continue the same context.

These objects expose collaboration state, not WorkIQ's internal retrieval plan or private reasoning.

Lifecycle

Method Purpose
SendMessage Submit an outcome-oriented request
GetTask Read the latest task state
CancelTask Request cancellation
SubscribeToTask Observe subsequent task updates

Persist task.id and contextId as soon as WorkIQ returns them, scoped by tenant, user, and workflow. Recovery requires the saved task.id and means reading the task while WorkIQ retains it; the published contract does not promise archival retention or a later discovery fallback.

Authentication

A2A requires a delegated WorkIQ token:

Audience  api://workiq.svc.cloud.microsoft
Scope     api://workiq.svc.cloud.microsoft/WorkIQAgent.Ask

Use PKCE for local public clients and OBO for hosted confidential clients. The Agent Card and every task operation still require authorization; task and context IDs are not capabilities.

Delegated authentication details

Concrete applications

Application Example delegation Why A2A
Operations coordinator "Investigate the launch regression and report the likely causes." The coordinator can track, cancel, or reconnect to a retained task.
Meeting-preparation worker "Build a briefing for tomorrow's executive review." The caller consumes a completed artifact instead of controlling retrieval.
Multi-agent service desk "Resolve this request using the employee's work context." A router can discover WorkIQ through its Agent Card and hand off the outcome.

Choose A2A for

  • outcome delegation to a WorkIQ agent;
  • explicit task status, cancellation, and recovery within service retention;
  • artifacts rather than raw Microsoft 365 resources;
  • a multi-agent system that discovers peers through Agent Cards.

Use REST for a direct application-facing conversation contract. Use MCP when an MCP host should invoke WorkIQ as a tool, whether through ask, granular operations, or policy-gated writes.