-
Notifications
You must be signed in to change notification settings - Fork 73
Add Dynamics 365 Advisor Declarative Agent #137
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
Open
MrShahzadShafique
wants to merge
17
commits into
pnp:main
Choose a base branch
from
MrShahzadShafique:da-dynamics365-advisor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2b15050
feat: add da-dynamics365-advisor declarative agent sample
f95937c
docs: add screenshot for da-dynamics365-advisor sample
21b997c
Update documentation to remove generic template language and correct …
1784578
Update dates to April 28, 2026
29bff00
Address Copilot PR review comments
fd8a830
Move declarativeAgent.json and instruction.txt to appPackage/ and upd…
0b54bdc
Fix root README.md encoding corruption and restore sample entry
7be1085
Remove UTF-8 BOM from env/.env.dev
03ea46a
Remove UTF-8 BOM from .env.local.sample
7867bd2
Remove literal backslash-r characters from file structure code block …
ff013df
Replace contoso.com with standard example.com placeholders in manifes…
3648217
Add dash separator in app name suffix to avoid Dynamics 365 Advisordev
e3383f3
Align manifest version and README version history to 1.0.0
bac0cb5
Update Minimal Path to Awesome to use Teams Toolkit Provision flow in…
cf05c6c
Potential fix for pull request finding
MrShahzadShafique add5af3
Potential fix for pull request finding
MrShahzadShafique 6a132ad
Address PR review feedback from @garrytrinder - align with sample sta…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Sample environment file for Dynamics 365 Advisor Agent | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| # Copy this to .env.local and fill in your values | ||
| # DO NOT commit .env.local to git! | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Teams Toolkit Environment | ||
| TEAMSFX_ENV=dev | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Microsoft 365 / Azure AD (if needed for future API integrations) | ||
| # TENANT_ID=your-tenant-id-here | ||
| # CLIENT_ID=your-client-id-here | ||
| # CLIENT_SECRET=your-client-secret-here | ||
|
|
||
| # Optional: Dynamics 365 API Configuration (for future enhancements) | ||
| # DYNAMICS_API_ENDPOINT=https://your-org.crm.dynamics.com | ||
| # DYNAMICS_CLIENT_ID=your-dynamics-app-id | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # TeamsFx files | ||
| env/.env.*.user | ||
| env/.env.local | ||
| .env.local | ||
| .localConfigs | ||
| appPackage/build | ||
|
MrShahzadShafique marked this conversation as resolved.
|
||
|
|
||
| # dependencies | ||
| node_modules/ | ||
|
|
||
| # misc | ||
| .env | ||
| .deployment | ||
| .DS_Store | ||
|
MrShahzadShafique marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| # Dynamics 365 Advisor Agent | ||
|
|
||
| ## Summary | ||
|
|
||
| An expert declarative agent for Microsoft 365 Copilot that provides guidance on Dynamics 365 CRM, Power Platform, and Copilot solutions. This agent helps users with CRM architecture decisions, entity design, security models, Power Automate workflows, and business process automation. | ||
|
|
||
|  | ||
|
|
||
| ## Tools and Frameworks | ||
|
|
||
|  | ||
|  | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| * [Microsoft 365 Developer Account](https://developer.microsoft.com/microsoft-365/dev-program) | ||
| * [Teams Toolkit for Visual Studio Code](https://learn.microsoft.com/microsoftteams/platform/toolkit/install-teams-toolkit?tabs=vscode) | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| * [Node.js LTS](https://nodejs.org/) | ||
| * [Visual Studio Code](https://code.visualstudio.com/) | ||
|
|
||
| ## Version history | ||
|
|
||
| Version|Date|Author|Comments | ||
| -------|----|----|-------- | ||
| 1.0|April 28, 2026|Muhammad Shahzad Shafique|Initial release | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## 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.** | ||
|
|
||
| --- | ||
|
|
||
| ## Minimal Path to Awesome | ||
|
|
||
| * Clone this repository | ||
| * Navigate to the `samples/da-dynamics365-advisor` folder | ||
| * Open the folder with Visual Studio Code | ||
| * Press F5 to run the application with Teams Toolkit | ||
| * Follow the prompts to add the declarative agent to Microsoft 365 Copilot | ||
|
|
||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| ## Features | ||
|
|
||
| This agent provides expert guidance on: | ||
|
|
||
| * **CRM Architecture Guidance** - Dynamics 365 CRM design and implementation | ||
| * **Entity & Table Design** - Data model design in Dynamics 365 | ||
| * **Security Model Design** - Security roles, access levels, and multi-region deployment architecture | ||
| * **Power Automate Integration** - Workflow automation and business process recommendations | ||
| * **Copilot Studio Use Cases** - Customer service chatbot scenarios and implementations | ||
| * **Business Process Optimization** - Sales pipeline and customer service improvements | ||
| * **Plugin & Custom Code** - Custom development guidance and best practices | ||
|
|
||
| ## Conversation Starters | ||
|
|
||
| The agent includes several conversation starters: | ||
|
|
||
| * **CRM Design** - "Help me design a case management solution in Dynamics 365." | ||
| * **Power Automate** - "Suggest a Power Automate flow for lead qualification." | ||
| * **Copilot Studio** - "Give me chatbot use cases for customer service." | ||
| * **Security Model** - "How should I design security roles for a 3-country CRM deployment?" | ||
|
|
||
| ## File Structure | ||
|
|
||
| ``` | ||
| da-dynamics365-advisor/ | ||
| +-- appPackage/ | ||
| ¦ +-- manifest.json # Teams app manifest | ||
| ¦ +-- color.png # App color icon | ||
| ¦ +-- outline.png # App outline icon | ||
| +-- env/ | ||
| ¦ +-- .env.dev # Environment variables for dev | ||
| +-- src/ | ||
| ¦ +-- declarativeAgent.json # Agent configuration | ||
| ¦ +-- instruction.txt # Agent instructions and behavior | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| +-- assets/ | ||
| ¦ +-- screenshot.png # Demo screenshot | ||
| ¦ +-- sample.json # Sample metadata | ||
| +-- .env.local.sample # Environment variables template | ||
| +-- .gitignore | ||
| +-- README.md | ||
| ``` | ||
|
|
||
| ## Setup Instructions | ||
|
|
||
| 1. **Open in VS Code** | ||
| - Open the `da-dynamics365-advisor` folder in Visual Studio Code | ||
| - Ensure Teams Toolkit extension is installed | ||
|
|
||
| 2. **Review the Configuration** | ||
| - Check `src/declarativeAgent.json` for agent settings | ||
| - Review `src/instruction.txt` for agent behavior | ||
|
|
||
| 3. **Run the Agent** | ||
| - Press F5 or use Teams Toolkit to start debugging | ||
| - Sign in with your Microsoft 365 account | ||
| - The agent will be deployed to your Copilot environment | ||
|
|
||
| 4. **Test the Agent** | ||
| - Open Microsoft 365 Copilot | ||
| - Find "Dynamics 365 Advisor" in your agents | ||
| - Try the conversation starters or ask your own questions about: | ||
| - Dynamics 365 CRM architecture | ||
| - Power Platform solutions | ||
| - Security and access control | ||
| - Business process automation | ||
|
|
||
| ## Author | ||
|
|
||
| * **Muhammad Shahzad Shafique** - [GitHub Profile](https://github.com/MrShahzadShafique) | ||
|
|
||
| <img src="https://m365-visitor-stats.azurewebsites.net/copilot-pro-dev-samples/samples/da-dynamics365-advisor" /> | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.20/MicrosoftTeams.schema.json", | ||
| "manifestVersion": "1.20", | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| "version": "1.0.1", | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| "id": "${{TEAMS_APP_ID}}", | ||
| "name": { | ||
| "short": "Dynamics 365 Advisor", | ||
| "full": "Dynamics 365 Advisor for Microsoft 365 Copilot" | ||
| }, | ||
| "developer": { | ||
| "name": "Dynamics 365 Advisor", | ||
| "websiteUrl": "https://www.contoso.com", | ||
| "privacyUrl": "https://www.contoso.com/privacy", | ||
| "termsOfUseUrl": "https://www.contoso.com/termsofuse" | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| }, | ||
| "description": { | ||
| "short": "CRM & Power Platform advisory assistant", | ||
| "full": "Provides expert guidance for Dynamics 365 CRM, Power Platform, automation and Copilot." | ||
| }, | ||
| "icons": { | ||
| "outline": "outline.png", | ||
| "color": "color.png" | ||
| }, | ||
| "accentColor": "#FFFFFF", | ||
| "copilotAgents": { | ||
| "declarativeAgents": [ | ||
| { | ||
| "id": "declarative-agent", | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
MrShahzadShafique marked this conversation as resolved.
Outdated
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| "file": "declarativeAgent.json" | ||
|
MrShahzadShafique marked this conversation as resolved.
|
||
| } | ||
| ] | ||
| }, | ||
| "permissions": [ | ||
| "identity" | ||
|
MrShahzadShafique marked this conversation as resolved.
|
||
| ], | ||
| "validDomains": [] | ||
| } | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.