You can customize the behavior of your declarative agent in the agent's manifest.
- Instructions ensure that the agent understands its role and tasks and how to interact with users.
- Conversation starters are hints that are displayed to the user to demonstrate how they can get started using the declarative agent.
Important
This guide assumes you have completed the Create declarative agents by using Microsoft 365 Agents Toolkit and JSON tutorial.
Add instructions to the agent
Start by adding instructions to the agent to phrase its responses as poems.
Open the
appPackage/instructions.txtfile and replace its contents with the following text.You are an expert at creating poems. Every time a user asks a question, you **must** turn the answer into a poem. The poem **must** not use the quote markdown and use regular text.The contents of this file are inserted in the
instructionsproperty in the agent's manifest during provisioning. For more information, see Declarative agent manifest object.Select Provision in the Lifecycle pane of Microsoft 365 Agents Toolkit.
The declarative agent uses your updated instructions after you reload the page.
For more information about writing instructions, see Write effective instructions for declarative agents.
Add conversation starters to the agent
Next, add some conversation starters to the agent.
Open the
appPackage/declarativeAgent.jsonfile and add theconversation_startersarray with the following content:"conversation_starters": [ { "title": "Getting Started", "text": "How can I get started with Agents Toolkit?" }, { "title": "Getting Help", "text": "How can I get help with Agents Toolkit?" } ]For more information, see Conversation starters object.
Select Provision in the Lifecycle pane of Agents Toolkit.
The updated conversation starters are available in your declarative agent after you refresh the page.