Edit

Build a declarative agent

Use the agent decision from your component plan to create a working goal-directed conversational experience. The agent should have the required identity, instructions, knowledge, capabilities, and connections before you package the plugin.

Reuse or extend an agent

Before you create an agent:

  1. Confirm that the existing agent supports the intended users and Microsoft experiences.
  2. Review its instructions, knowledge, capabilities, connections, permissions, and known limitations.
  3. Confirm whether you can use it as-is, configure it, copy it, or extend it.
  4. Agree on ownership, versioning, support, and change management with the agent owner.
  5. Test the reused agent against the requirements in the solution brief.

You can also start with an agent template or copy an Agent Builder agent to Copilot Studio when the supported workflow fits the development plan.

Choose the implementation path

Use the development tool that you chose in Choose development tools for your plugin.

Development tool Start with
Agent Builder Agent Builder overview and build an agent
Work IQ Dev Tools Work IQ Dev Tools quickstart
Copilot Studio Build agents with Copilot Studio
Microsoft 365 Agents Toolkit Microsoft 365 Agents Toolkit overview, using TypeSpec or JSON as supported

Work IQ Dev Tools

Use wiqd agent create to scaffold a source-controlled declarative-agent project. During the build stage, edit the project, add supported OpenAPI or remote MCP actions with wiqd agent add action, and run offline static validation with wiqd agent validate.

wiqd agent add skill adds a skill to an existing declarative-agent project. This capability is behind the agent-skills preview flag, which is off by default. Confirm the current flag, schema, and lifecycle requirements in the WIQD command reference.

You can enter commands directly or drive the documented workflow conversationally through Copilot CLI with the wiqd:wiqd agent. WIQD targets declarative agents, not custom engine agents.

GitHub Copilot can assist with project files, instructions, configuration, code, and tests. It doesn't replace the authoring tool, runtime, or component-specific requirements.

Implement the agent

Complete the applicable work:

  1. Define or confirm the agent's name, description, purpose, audience, and conversation starters.
  2. Write instructions that define its behavior, boundaries, and use of knowledge and actions.
  3. Add the required knowledge sources.
  4. Add built-in capabilities, skills, connectors, MCP-based tools, or API actions.
  5. Configure identities, authentication, permissions, consent, and connections.
  6. Configure environments and versions when the development workflow supports them.
  7. Test representative prompts, tool selection, responses, errors, and unsupported requests.

Use the following guidance to configure the agent:

For background and design guidance, see Best practices for declarative agents and How the Copilot orchestrator chooses actions.

After the required behavior works, you can optionally enable user feedback and optimize content retrieval.

Confirm that the agent is working

The agent is ready for integration when:

  • Its identity and purpose are clear to the intended users.
  • Instructions produce the expected behavior for representative scenarios.
  • Required knowledge is available and permission-trimmed.
  • Skills, connectors, actions, and MCP-based tools can be selected and invoked.
  • Authentication, consent, confirmations, and failure behavior work as intended.
  • The agent works in every development or test experience required by the plan.
  • The owner, version, dependencies, limitations, and test evidence are recorded.

Continue with any other components in the plan. When they are complete, integrate and test your components.