Working with the AI assistant in Copilot
In short
“AI assistant” opens the Smart Templates Assistant in Microsoft 365 Copilot next to the designer. You write what should change; the assistant builds the change, and the designer takes it into the open template. You check the result, take the change back if necessary and make it effective with “Save”. What you need for this is described under Working with AI: What you need.
Opening the assistant
The “AI assistant” button exists only in Dynamics, and it works only with saved templates. If the template is not yet in any record, for example because you have just imported it, no window opens; instead the designer reports: “First store the template in Dynamics with ‘Duplicate’ – the AI assistant works with saved templates.” Store it with “Duplicate” (see Managing templates: Duplicating) and then click again.
- Open the template in the designer.
- In the template row, click “AI assistant”. The button is directly after “AI package”.
- A window of its own opens on the right with Microsoft 365 Copilot. The first time, Copilot shows a window “Smart Templates Assistant” there with the button “Add”. Click it.
The first time, Copilot shows the assistant with the button “Add”. The developer’s name and the description come from Copilot Studio; here Microsoft’s English default text is still entered (see Turning on Copilot, step 5). - 1The assistant for your templates.
- 2“Add”: click once; afterward the assistant is ready in the chat.
- In the chat, click the input field and press Ctrl+V. The designer has already put the template on the clipboard; the field then contains, for example, “Template »Demo-Rechnung (Handbuch)« (ID 591f2b62-…):”.
- Write your request after it and send it.
The chat’s input field: Ctrl+V has pasted the sentence with the name and ID of the template, followed by the request. - 1The sentence from the clipboard with the name and ID of the template. This is how the assistant knows which template is meant.
- 2Your request, directly after the sentence. Write one request per message.
- 3The button at the bottom right, an arrow in a black circle: it sends the message.
- With the first request, the assistant asks whether it may connect to Dynamics with your credentials; the card calls it “Microsoft Dataverse”. Click “Allow”. This is needed only once. If the first answer stays empty or the card does not appear, reload the Copilot window.
The card that appears in the chat with the first request. - 1The question: the assistant wants to connect to Microsoft Dataverse with your credentials. It thus works within your rights.
- 2“Allow” permits the connection. This is needed only once; the setting is saved and used next time.
Tip
A second click on “AI assistant” brings the window to the front again and puts the template on the clipboard again. This is also how you name a different template to the assistant if you have switched in the meantime.
Good to know
If no window opens, the browser has blocked it. Allow pop-ups for Dynamics (how is described under What happens on click: When the browser blocks pop-ups) and click again. If the designer reports that no AI assistant has been set up in this environment yet or that it has not yet been made available in Microsoft 365 Copilot, contact your administrator. If copying to the clipboard does not work, the designer shows the sentence for the chat in a note (“First name the template there: …”); then enter it by hand.
What you can ask for
Describe the change the way you would explain it to a colleague: where, what and under which condition. The assistant implemented these requests correctly in testing:
- “Put the total of the line items below the line items.”
- “Put the line »Vielen Dank für Ihren Auftrag.« below the table.”
- “For the logo at the top left: if the invoice is paid, show the Paid stamp instead.”
- “Put the Paid stamp at the top right, but only if the invoice is paid.”
Conditions like “only if paid” or “if the country is Austria, then …” can be built in by the assistant: for texts, images, whole areas, number formats and the rules of a table.
E-invoice
The assistant can also assign the e-invoice, for example with “Set up the e-invoice according to XRechnung.” It reads the standard with its tool “Standard lesen”, uses the same suggestions for the Dynamics invoice as “Apply suggestions” in the assignment window, and tells you what you should confirm; these details then appear in yellow in the window. What it can take neither from a field nor from a suggestion, it asks about instead of guessing: the routing ID (Leitweg-ID), your company’s data such as the VAT ID, the bank details, the tax type of discount and freight. If a value differs depending on the document, for example the type of invoice or the amounts of a credit note, it writes an if-then directly on the detail (see E-invoice: If-then on an entry); if a list gets different entries per document, for example the previous invoice for cancellation and final invoices, it writes cases (see E-invoice: Different depending on the case). Afterward, check the e-invoice in the designer with “Check again” (see E-invoice: Checking with a sample record). You can also open the assistant with the e-invoice request on the clipboard via “Open AI assistant” in the “E-invoice” tab of the template settings (see E-invoice: Assigning with AI).
The assistant writes and uploads a standard of your own only if you explicitly ask for it, with its tool “Standard hochladen” and with your rights (role “Smart Templates Designer”). Before uploading, it asks in the chat whether it should store the standard in Dynamics; only with your confirmation does it upload it. In doing so, it can replace an existing standard of your own with the same version. Uploaded description files are not part of Smart Templates. Whoever uploads them is responsible for their content and its rights.
Building blocks
The assistant may only move a building block object in a template, set its visibility or remove it. A change that rearranges it, fills its content or creates a new one is rejected, as is a new reference of the template to something that only the building block brings along; of a building block, the template sees only its variables. It can change a building block itself. Before it does so, it tells you that the change takes effect everywhere the building block is used; the answer afterward names in how many templates that is (see Building blocks: Building blocks and AI).
Tip
One request per message works best. The assistant checks every change against the template’s sample record. If it uses a different field than the one named, for example because the named one is empty in the sample, it should say so and name the field. Even so, check with fields whether it picked the right one: in testing, for “Fälligkeitsdatum” it once used the field “Zahlbar bis”.
What happens then
- The assistant reads the template, the description of the template format and sample data from Dynamics, looks up fields, builds the change and checks it against the sample data. This usually takes about a minute.
- It answers in a few sentences what it has changed.
The assistant’s answer in the chat: it names the change and says where it is. - 1Under the assistant’s name, the answer begins with the change itself: where the new line is and that it checked it with the sample data.
- 2The change is “stored as an AI change”. It is ready; the saved template stays unchanged.
- 3The end: if the template is open in the designer, it takes the change. How you take it back and make it effective is described under Checking, taking back, saving.
- A few seconds later, the designer takes the change into the open template and reports: “Copilot changed the template: …” with the assistant’s sentence and the note “Ctrl+Z undoes it.”
- 1The green check mark: the change has arrived in the open template.
- 2The closing sentence “Ctrl+Z undoes it.”: the note about taking it back (see Checking, taking back, saving).
The designer takes a change only as long as the template is open there and the designer window is visible. If a window is currently open in the designer, for example “Template settings”, it waits until you close it. A change that has not yet been taken does not expire: it arrives the next time the template is opened, in any designer, including a colleague’s and even days later.
Caution
If you have changed the template yourself in the meantime, the assistant’s change may no longer fit. The designer then does not take it and reports “A change from Copilot does not fit the open template and was not applied”. Save your changes and ask the assistant again.
Checking, taking back, saving
- Checking: Look at the result with “Full preview”, ideally also with a second sample record. The assistant is an AI; it can be wrong.
- Taking back: Ctrl+Z takes back the assistant’s whole change in one step. An image that it supplied stays in the image library.
- Saving: Only “Save” makes the change effective. Until then, buttons and flows in Dynamics print the saved version (see Full preview and printing in Dynamics).
Good to know
The assistant works with your rights and sees only templates, tables and records that you may read in Dynamics. It never saves a template itself: every change it submits is in the table “Smart Templates KI-Änderung” with its description, and it gets into the template only via the designer. It uploads a standard of your own for the e-invoice only at your explicit request and after a confirmation in the chat (see E-invoice). Apart from its own tools, it cannot call any actions, and searching the internet is switched off.
Images
- Images that are already in Dynamics are inserted by the assistant via their short name, on request depending on a condition, for example “Paid stamp instead of logo if paid”.
- It cannot take a photo or logo that you send it in the chat into the template. Upload it first in the designer: in the image selection via “Fixed image” and then “Upload new image” (see Image library and fonts: Uploading a new image). Then give the assistant its short name.
- It can supply a simple graphic itself, such as a stamp with lettering. The designer stores it with the images when taking it over and reports “Images from Copilot: …”.
Language
The assistant speaks German and English. According to Microsoft, the language of a conversation follows the language setting of the browser or of Microsoft 365; otherwise the main language German applies; its instruction also asks it to answer in your language. If you write in a language other than German or English, it answers in German. According to its instruction, it is supposed to write labels and texts that it puts into the template in the language of the template or in your language, even if the examples in the format description are in English.
If the designer is set to English, “AI assistant” puts the sentence for the chat on the clipboard in English, for example “Template »Rechnung« (ID …):”.
What changes in the document?
On the canvas
The assistant’s change appears immediately, like a change of your own. How you take it back is described under Checking, taking back, saving.
In the PDF
In “Full preview” and “PDF” of the designer immediately, even unsaved; buttons and flows in Dynamics print it only after “Save”.