E

Expert Declarative Agents Architect

Boost productivity using this specialized, agent. Includes structured workflows, validation checks, and reusable patterns for expert advisors.

AgentClipticsexpert advisorsv1.0.0MIT
0 views0 copies

Declarative Agents Architect

Your specialized agent for designing and building Microsoft 365 Copilot declarative agents using the latest JSON schema specifications, TypeSpec development, and Microsoft 365 platform integration.

When to Use This Agent

Choose Declarative Agents Architect when:

  • Building Microsoft 365 Copilot declarative agents with the v1.5 JSON schema
  • Designing agent capabilities, conversation starters, and action integrations
  • Implementing API plugins, Graph connectors, or SharePoint knowledge sources
  • Configuring agent manifests for Teams, Outlook, and Microsoft 365 deployment
  • Debugging declarative agent behavior and API plugin connectivity

Consider alternatives when:

  • You need general Microsoft development β€” use a Microsoft expert agent
  • You need Teams bot development (Bot Framework) β€” use a Teams bot agent
  • You need Power Platform agents β€” use a Power Platform specialist

Quick Start

# .claude/agents/declarative-agents.yml name: Declarative Agents Architect model: claude-sonnet tools: - Read - Write - Edit - Bash - Glob - Grep description: Microsoft 365 Copilot declarative agent specialist for agent design, manifest configuration, and API plugin integration

Example invocation:

claude "Create a declarative agent manifest for a customer support agent that uses our REST API for ticket lookup, integrates SharePoint knowledge base articles, and includes conversation starters for common scenarios"

Core Concepts

Declarative Agent Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚      Microsoft 365 Copilot          β”‚
β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚   β”‚    Declarative Agent        β”‚   β”‚
β”‚   β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚   β”‚
β”‚   β”‚  β”‚  Agent Manifest       β”‚  β”‚   β”‚
β”‚   β”‚  β”‚  - Instructions       β”‚  β”‚   β”‚
β”‚   β”‚  β”‚  - Capabilities       β”‚  β”‚   β”‚
β”‚   β”‚  β”‚  - Conversation startsβ”‚  β”‚   β”‚
β”‚   β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚   β”‚
β”‚   β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚   β”‚
β”‚   β”‚  β”‚  Actions              β”‚  β”‚   β”‚
β”‚   β”‚  β”‚  - API Plugins        β”‚  β”‚   β”‚
β”‚   β”‚  β”‚  - Graph Connectors   β”‚  β”‚   β”‚
β”‚   β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚   β”‚
β”‚   β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚   β”‚
β”‚   β”‚  β”‚  Knowledge            β”‚  β”‚   β”‚
β”‚   β”‚  β”‚  - SharePoint         β”‚  β”‚   β”‚
β”‚   β”‚  β”‚  - Graph Connectors   β”‚  β”‚   β”‚
β”‚   β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚   β”‚
β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Agent Manifest Structure

ComponentPurposeConfiguration
InstructionsAgent behavior and personaNatural language system prompt
CapabilitiesWhat the agent can doAPI plugins, connectors, code
Conversation StartersSuggested prompts for usersArray of starter strings
Knowledge SourcesData the agent can referenceSharePoint sites, Graph connectors
ActionsExternal API integrationsOpenAPI specs with auth config

Configuration

ParameterDescriptionDefault
schema_versionManifest schema versionv1.5
deployment_targetTarget platform (teams, outlook, m365)m365
auth_methodAPI authentication (oauth2, api-key, none)oauth2
knowledge_sourcesKnowledge integration type (sharepoint, graph)sharepoint
testing_modeDevelopment testing approach (sideload, dev-tenant)sideload

Best Practices

  1. Write clear, specific agent instructions. The instructions field is the agent's system prompt β€” vague instructions produce vague behavior. Define the agent's persona, capabilities, limitations, and preferred response format explicitly.

  2. Design conversation starters that demonstrate capabilities. Each starter should showcase a different agent capability. "Look up ticket #12345," "Search our knowledge base for refund policies," and "Create a summary of this week's support trends" show users three different things the agent can do.

  3. Use API plugins with complete OpenAPI specs. Declarative agents rely on OpenAPI descriptions to understand how to call your APIs. Include detailed parameter descriptions, example values, and response schemas so the agent can construct correct API calls.

  4. Test agents with sideloading before publishing. Use Teams Toolkit or the Developer Portal to sideload agents during development. This allows rapid iteration without going through the full publishing and approval process.

  5. Scope knowledge sources to relevant content only. Adding entire SharePoint sites as knowledge creates noise. Scope to specific document libraries or folders that contain the information relevant to the agent's domain. Less data with higher relevance produces better answers.

Common Issues

Agent doesn't use the API plugin for relevant questions. The OpenAPI spec lacks descriptive operation summaries that help the agent understand when to call which endpoint. Add detailed summary and description fields to each operation, and include example queries in the agent instructions.

Knowledge source returns irrelevant or outdated results. SharePoint content that's disorganized, duplicated, or outdated degrades agent quality. Curate the knowledge source β€” organize documents, remove duplicates, and mark outdated content for archival before connecting it to the agent.

Agent manifest fails validation during sideload. Schema validation errors are usually caused by missing required fields, incorrect JSON structure, or version mismatches. Validate the manifest against the v1.5 schema using the Teams Toolkit validator, and check that all referenced files (OpenAPI specs, icons) exist at the specified paths.

Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates