Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added agent sample resolves #89 #92

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions samples/agent-instructions/creator-agent/assets/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"name": "copilotprompts-creator-agent",
"source": "pnp",
"title": "Generate structured Copilot agents",
"shortDescription": "Generate structured Copilot agents",
"url": "https://github.com/pnp/copilot-prompts/tree/main/samples/agent-instructions/creator-agent",
"downloadUrl": "https://pnp.github.io/download-partial/?url=https://github.com/pnp/copilot-prompts/tree/main/samples/agent-instructions/creator-agent",
"longDescription": [
"This prompt generates structured Copilot agents."
],
"creationDateTime": "2025-02-07",
"updateDateTime": "2025-02-07",
"products": [
"Copilot"
],
"metadata": [
],
"thumbnails": [
{
"type": "image",
"order": 100,
"url": "https://github.com/pnp/copilot-prompts/tree/main/samples/agent-instructions/creator-agent/assets/demo.png",
"alt": "copilotprompts-creator-agent"
}
],
"authors": [
{
"gitHubAccount": "cypri1",
"pictureUrl": "https://avatars.githubusercontent.com/u/10461877?v=4",
"name": "Cyprien Maloeuvre"
}
],
"references": [
{
"name": "Microsoft Copilot",
"description": "Microsoft Copilot",
"url": "https://copilot.microsoft.com/"
}
]
}
]
61 changes: 61 additions & 0 deletions samples/agent-instructions/creator-agent/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 🚀 Creator agent

![image of the creator agent](../creator-agent///assets//demo.png)

## Summary

Generate structured Copilot agents with names, descriptions, detailed instructions, and example prompts.

## Prompt 💡

Your role is to help the user create Copilot agents. You will need to propose a name for the agent in line with the user's expectations, provide a description of the agent (simple and concise description), write instructions for the agent (detailed instructions to guide its behavior, including its tasks and how to accomplish them), and propose 6 examples of prompts (prompt title + prompt) which can be suggested to users to start the discussion (related to the agent's theme).

The instructions should follow the following structure: role of the agent, response process, general behavior, exclusion, response format. Pay attention to the 8000 character limit for instructions. They must be as detailed as possible. Use familiarity in instructions, as if you were speaking directly to the agent.

For the exclusion part, generate 50 words (do not put them in list form) related to the agent's theme and add them to the instructions by adding a rule: if the user sends a message that does not contain one of these words, tell him that you are not designed to answer this question.
For each user request, you must provide all the elements allowing you to create a Copilot agent.

Uses markdown rendering elements to present information in an attractive way.
Use headings, short lists and compact tables to organize information.
Bold the relevant parts of the answers to improve readability.

## Description ℹ️

Craft Copilot agents with a clear role, behavior, exclusions, and response format, ensuring clarity with markdown styling.

## Contributors 👨‍💻

[Cyprien Maloeuvre](https://github.com/cypri1)

## Version history

Version|Date|Comments
-------|----|--------
1.0|Feb 07, 2025|Initial release


## Instructions 📝

1. Make sure you have Copilot chat or Microsoft 365 Copilot in your tenant
2. Go to Microsoft 365 Copilot in Office.com/chat or use Copilot chat in Teams
3. On the right rail, select **Create an agent**
4. Select **Configure** tab, and fill out the details for your agent
5. Paste the prompt in the **Instructions** area, fill the rest like title, descritpion etc based on this document.
6. Try your agent in the same window or select **Create** to create the agent and try it in the chat.


## Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

You can try looking at [issues related to this sample](https://github.com/pnp/copilot-prompts/issues?q=label%3A%22sample%3A%20whiteboard-intranet-ideation-prompt%22) to see if anybody else is having the same issues.

If you encounter any issues using this sample, [create a new issue](https://github.com/pnp/copilot-prompts/issues/new).

Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/copilot-prompts/issues/new).

## Disclaimer

**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**

![](https://m365-visitor-stats.azurewebsites.net/SamplesGallery/copilotprompts-creator-agent)
Loading