-
Notifications
You must be signed in to change notification settings - Fork 71
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
16
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 2 commits
Commits
Show all changes
16 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 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.
|
||
|
|
||
| # Teams Toolkit Environment | ||
| TEAMSFX_ENV=dev | ||
|
|
||
| # 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 | ||
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,13 @@ | ||
| # TeamsFx files | ||
| env/.env.*.user | ||
| env/.env.local | ||
| .localConfigs | ||
| appPackage/build | ||
|
MrShahzadShafique marked this conversation as resolved.
|
||
|
|
||
| # dependencies | ||
| node_modules/ | ||
|
|
||
| # misc | ||
| .env | ||
| .deployment | ||
| .DS_Store | ||
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,112 @@ | ||
| # Dynamics 365 Advisor Agent | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## 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) | ||
| * [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.
|
||
| ## Features | ||
|
|
||
| This Declarative Agent demonstrates: | ||
|
|
||
| * **CRM Architecture Guidance** - Expert advice on Dynamics 365 CRM design and implementation | ||
| * **Entity & Table Design** - Best practices for data model design in Dynamics 365 | ||
| * **Security Model Design** - Help with security roles, access levels, and multi-region deployments | ||
| * **Power Automate Integration** - Workflow recommendations and automation patterns | ||
| * **Copilot Studio Use Cases** - Chatbot scenarios for customer service automation | ||
| * **Business Process Optimization** - Sales pipeline and customer service process improvements | ||
| * **Plugin & Custom Code** - Development recommendations 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/ | ||
| ├── src/ | ||
| │ ├── declarativeAgent.json # Agent configuration | ||
| │ ├── instruction.txt # Agent instructions and behavior | ||
| │ ├── manifest.json # Teams app manifest | ||
| │ ├── color.png # App icon (color) | ||
|
MrShahzadShafique marked this conversation as resolved.
Outdated
|
||
| │ └── outline.png # App icon (outline) | ||
| ├── 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 | ||
|
|
||
| ## Contributing | ||
|
|
||
| This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA). | ||
|
|
||
| ## 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" /> | ||
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.