Turning on Copilot
In short
Smart Templates comes with an assistant for templates, the “Smart Templates Assistant”. It runs in Microsoft 365 Copilot. Users open it in the designer through “AI assistant”, describe a change, and the designer applies it to the open template. After importing the solution, you set it up once in Copilot Studio: check the sign-in and tools, publish, make it available in the channel “Microsoft 365” and release it to the users.
What it is for
The assistant changes existing templates on request. To do so, it reads the template, the description of the template format and sample data from Dynamics, builds the change and checks it against the sample data. The change does not land directly in the saved template: The designer applies it to the open template, the user sees it, undoes it with Ctrl+Z or saves it.
How users work with it is described in Working with the AI assistant in Copilot; examples of requests are under Working with the AI assistant in Copilot: What you can ask for.
What the solution brings with it
- The agent “Smart Templates Assistant” with its instruction. Main language German, English as the second language.
- Five tools: “Microsoft Dataverse MCP Server” for looking up tables and records, “Format lesen” (read format) for the description of the template format, “Vorlage ändern” (change template) for submitting a change, “Standard lesen” (read standard) for the standards of the e-invoice and “Standard hochladen” (upload standard) for an own standard.
- A connection reference for Microsoft Dataverse, which all five tools use.
- The table “Smart Templates KI-Änderung”, in which every submitted change is stored with its description and state.
The solution does not bring the channel for Microsoft 365 or the release for the users. You set up both after the import (step 5 and step 6).
Requirements
- Microsoft 365 Copilot for the users: The assistant runs in the chat of Microsoft 365 Copilot. Anyone who is to use it needs either a license for Microsoft 365 Copilot or Copilot credits. With the license, no additional credits are needed (see Costs).
- Rights for setting up: Anyone who sets up the assistant needs the role “System Administrator” in the environment. With it, they open the agent through the solution in Copilot Studio, set the sign-in, publish it, set up the channel and share it with the users. If the assistant is to appear in the store for the whole organization, a Teams administrator must also approve it in the Teams admin center (see step 6).
- Role of the users: Anyone who uses the assistant needs the role “Smart Templates Designer” or the role “System Administrator”. The action “Vorlage ändern” creates every change with the user’s rights in the table “Smart Templates KI-Änderung”; without one of the two roles this right is missing, and the action reports an error (see Rights and roles: Designing templates). How to assign the role “Smart Templates Designer” is described under Assigning a security role.
- Dataverse MCP server: It and the allowed clients for it are turned on per environment, in the settings of the environment in the Power Platform admin center. Among the allowed clients, “Microsoft Copilot Studio App” must be turned on.
- Teams setting of the tenant: Your organization must allow apps from the Power Platform to be added in Teams. If that is turned off, a Teams administrator turns it on in the Teams admin center.
Costs
- For users with a license for Microsoft 365 Copilot, use of the assistant is included. Microsoft does not bill employees’ use of a Copilot Studio agent if the user has this license and the agent works with their sign-in. Both apply here.
- Users without this license consume Copilot credits. The environment therefore needs a credit pack or pay-as-you-go billing only if such users use the assistant.
- The tools of the Dataverse MCP server cost nothing extra in Copilot Studio.
- The test window in Copilot Studio costs nothing. Billing starts only when the published agent is used.
Step 1: Opening the agent in Copilot Studio
- Open Copilot Studio (copilotstudio.microsoft.com). In the bar at the bottom left, directly above your account picture, click the icon “Switch environment” , and choose the environment in which you installed Smart Templates .
- In the list of agents, open “Smart Templates Assistant”. The fastest way to find it is to type the name into the search box above the list.
Step 2: Checking the sign-in
After an import, the sign-in has to be set again.
- At the top right, click “Settings”, on the left “Security” and then “Authentication”.
- Choose “Authenticate with Microsoft” and click “Save”.
- 1The area “Security” in the list on the left. From there you get to “Authentication”.
- 2The chosen option “Authenticate with Microsoft”. Then every user signs in with their own account.
- 3The button “Save”. In the image it is gray because nothing was changed. A changed setting applies only once you click it.
With that, every user signs in with their own account, and the assistant sees only what this user may see in Dynamics. With this setting, the agent is available only in Teams, Microsoft 365 and SharePoint.
Step 3: Checking the tools
- At the top, click “Tools”. There are “Microsoft Dataverse MCP Server”, “Vorlage ändern”, “Format lesen”, “Standard lesen” and “Standard hochladen”, all five “On”.
- Open each tool once. Under “Connection” there must be a connection with a green check mark, and for the four actions the environment “(Current)”, that is, your own environment.
- 1The row “Microsoft Dataverse MCP Server” (cut off here): for looking up tables and records.
- 2The row “Vorlage ändern”: submits a change. It lands as an AI change, not in the saved template.
- 3The row “Format lesen”: gives the assistant the description of the template format.
- 4The toggles in the column “Enabled”: All three are set to “On”.
Caution
Do not turn on any further tools in the tool “Microsoft Dataverse MCP Server”. Only the three for reading are turned on: read_query, search and describe. Tools such as invoke_api or create_record would allow the assistant to do more than change templates, for example call arbitrary actions or create records.
- 1The toggle without a label to the right of the refresh icon is called “Allow all”. It is off and stays off, because if it were on, it would allow all tools.
- 2The rows that are on,
read_query,searchanddescribe: Only these three tools for reading are on. - 3Two of the rows that are off,
invoke_apiandupsert_skill. They and all the other tools stay off, otherwise the assistant may do more than change templates. - 4The connection with a green check mark. This is how it must appear.
Step 4: Publishing
An imported agent must be published before it can be shared.
- At the top right, click “Publish”, and in the window click “Publish” once more.
- After a short time, “Published” appears at the top right with today’s date.
Step 5: Adding the channel “Microsoft 365”
- At the top, click “Channels” and then the tile “Microsoft 365 and Microsoft Teams”.
- Leave the check mark “Make agent available in Microsoft 365 Copilot” set and click “Add channel”. If the channel has already been added, the window shows “Remove channel” instead; then continue with the next step.
- Click “Edit details”. Enter a short and a long description and, under “More”, the developer name, for example the name of your company, and as needed “Website”, “Privacy statement” and “Terms of use”. Click “Save”.
- 1The checked box “Make agent available in Microsoft 365 Copilot”. The check mark stays set.
- 2The button “Edit details”: This is where you enter the descriptions and the developer name.
- 3The button “Availability options”: This is where you decide for whom the assistant appears in the store (see step 6).
Users see this information on the assistant’s card before they add it. Without it, the card shows Microsoft’s English default text (“Help employees stay informed, productive, and connected. …”) and, as the developer, the name of whoever created the agent; for other agents, the placeholder “Your developer name” also appears there.
- 1The fields “Short description” and “Long description”. Users see these texts on the assistant’s card.
- 2The field “Developer name” in the expanded section. Below it are “Website”, “Privacy statement” and “Terms of use”.
- 3The button “Save”: Only with it do the details apply. “Cancel” discards them.
Step 6: Releasing it to users
Only those who have access to the assistant can use it. Two ways:
- For specific people or groups: At the top right, next to “Settings”, click “…” and then “Share” , and enter the people or security groups. Under “Channels” › “Microsoft 365 and Microsoft Teams” › “Availability options” › “Show to my teammates and shared users”, the assistant then appears in the store for these people.
- For the whole organization: Under “Availability options” › “Show to all users in my organization”, you submit the assistant for approval. An administrator approves it in the Teams admin center. After that it is in the store for everyone, and an administrator can also pin it for the users. For this, the agent must be shared with everyone in your organization under “Share”; otherwise users can add it, but cannot chat with it.
- 1The search box under “New users”: This is where you enter people or security groups. This is the first way.
- 2The entry “Everyone in the organization” under “My organization”: For the second way, the agent must be shared with everyone. You set the permissions on the right as soon as you select an entry.
- 1The card “Show to my teammates and shared users”: The assistant appears in the store under “Built with Power Platform”, for the people the agent is shared with.
- 2The card “Show to all users in my organization”: After approval by an administrator, the assistant appears under “Built by your org”.
Good to know
You do not have to enter the path to the assistant anywhere in the designer. The button “AI assistant” finds it by itself: It looks for an active agent whose instruction names the action “Vorlage ändern” (st_VorlageAendern) and that is available in the channel Microsoft 365; if there are several, such as a test copy, it takes the one published last. If there is no such agent, the designer reports that no AI assistant has been set up in this environment yet; if the channel is missing, that it has not yet been enabled for Microsoft 365 Copilot. It does not check whether the agent is shared with the users (step 6). Anyone who rewrites the instruction leaves the name of the action in it.
How to check it
In the designer, open a saved template, click “AI assistant” and send the assistant a small request, for example “Put the line Thank you for your order below the table”. The operation, step by step, with the sentence from the clipboard, is described under Working with the AI assistant in Copilot: Opening the assistant. In your test, the following happens:
- A window of its own with Microsoft 365 Copilot opens on the right. The first time, it shows the card of the assistant; click “Add” there.
- With the first request, the assistant asks for the connection to Dynamics; you allow it with “Allow”. If the first answer stays empty or the card does not appear, reload the Copilot window.
- After about a minute, the assistant reports the change, and the designer shows it. With Ctrl+Z it is gone again.
What the assistant may do
- It works with the rights of the user and sees only what the user may read in Dynamics (see step 2).
- It can read through the Dataverse MCP server: describe, search and query tables (see step 3).
- It can change only through “Vorlage ändern”. This action checks the change and stores it as an AI change; the saved template stays as it is. How the designer applies the change is described under Working with the AI assistant in Copilot: What happens then; from when “Full preview” and “PDF” in the designer show it and buttons and flows in Dynamics print it, under Working with the AI assistant in Copilot: What changes in the document?
- For the e-invoice, it reads the standards with “Standard lesen”. It uploads an own standard with “Standard hochladen” only on explicit request, with the user’s rights (role “Smart Templates Designer”). Before that, it asks the user in the chat; without their confirmation it uploads nothing. An existing own standard of the same version can be replaced in the process.
- It cannot call other actions. The web search is turned off.
Language
The assistant speaks German and English; the main language is German. When it uses which language, what happens with another language and what is different in the English designer is described under Working with the AI assistant in Copilot: Language.