Microsoft Office add-ins
The Myra Office add-ins bring the gateway document AI into Microsoft Office as task panes. In Word, a user rewrites, fixes grammar, summarises, translates, drafts, and asks questions about the open document. In Excel, a user summarises, cleans data, writes a formula, and asks questions about the sheet. In Outlook, a user summarises a message and drafts or rewrites a reply. Every action runs on the model of the tenant through the gateway, and Microsoft single sign-on authenticates the user on each call.
This chapter is for the administrator who deploys the add-ins to users. Each add-in is a standard Office add-in described by a manifest file. Installation makes that manifest available to Office, and Office then loads the task pane from the Myra host.
The add-ins support the following capabilities and limitations:
| Capability | Limitation |
|---|---|
| Word, Excel, and Outlook task panes on Office on the web, Windows, and Mac | Office 2016 and 2019 are not supported. |
| Microsoft single sign-on on every request, with no separate password | A one-time tenant admin consent is required before first use. |
| Document AI served by the designated model of the tenant | The workspace of the user must be enabled for direct document AI. |
💡 Note: The add-ins load the task pane and call the gateway over HTTPS from the Myra host (
https://<GATEWAY_HOST>/). The Office client of each user reaches that host, and the host serves the add-in security headers configured by Myra. On the hosted service the host isai.myra.eu.
Prerequisites
Before you begin, ensure the following conditions are met:
- You hold the SharePoint Administrator role for the App Catalog procedure, or you reach the Integrated apps page in the Microsoft 365 admin center for the recommended procedure.
- You hold the Global Administrator or Application Administrator role for the single sign-on consent procedure.
- You have the add-in manifest file for each add-in you deploy. Myra provisions one manifest each for Word, Excel, and Outlook, carrying the Myra host and the Microsoft Entra application.
- The Office client of each user reaches the Myra host over HTTPS.
💡 Note: Microsoft recommends the Microsoft 365 admin center (Integrated apps) for every Office add-in. The SharePoint App Catalog serves the Word and Excel add-ins only, not the Outlook add-in.
Granting single sign-on consent
Office single sign-on calls the gateway with a token minted by a Microsoft Entra application. A tenant admin consents to the application once, so users are not prompted on every action.
Proceed as follows to grant single sign-on consent:
- Sign in to the Microsoft Entra admin center at
https://entra.microsoft.com. - Open App registrations.
- Select the Myra add-in application.
- Open the API permissions page.
- Click on the Grant admin consent button.
- A confirmation prompt opens.
- Click on the Yes button.
-> The permissions list shows the Granted status for the tenant.
Deploying with the Microsoft 365 admin center
The Microsoft 365 admin center deploys any of the three add-ins to selected users or to the whole organisation.
Proceed as follows to deploy an add-in with the Microsoft 365 admin center:
- Sign in to the Microsoft 365 admin center at
https://admin.microsoft.com. - Open Settings → Integrated apps.
- Click on the Upload custom apps button.
- The Upload custom apps panel opens.
- Select the Provide link to manifest file option.
- Enter the add-in manifest URL in the Link text field.
- The validated add-in details appear.
- Select the users who receive the add-in.
- Click on the Next button.
- Click on the Accept permissions button.
- Click on the Finish deployment button.
-> The add-in appears on the Office ribbon for the selected users. The first rollout takes up to 24 hours. Repeat this procedure for each add-in.
💡 Note: If required, select the Upload manifest file option in step 4 and select the manifest file instead of entering a link.
Deploying with the SharePoint App Catalog
The SharePoint App Catalog serves the Word and Excel add-ins to the whole organisation through the Apps for Office library.
Proceed as follows to deploy a Word or Excel add-in with the SharePoint App Catalog:
- Sign in to the SharePoint admin center at
https://<TENANT>-admin.sharepoint.com. - Open More features.
- Under Apps, click on the Open button.
- The Apps page opens.
- Open the App Catalog site.
- Open the Apps for Office library.
- Click on the Upload button.
- Select the add-in manifest file.
- Click on the OK button.
-> The add-in appears in the Apps for Office library with the enabled status. Repeat this procedure for the Word and Excel add-ins.
💡 Note: If no App Catalog site exists, open the App Catalog tile on the Apps page, select Create a new app catalog site, and complete the form before step 5.
Proceed as follows to add the deployed add-in in Word or Excel:
- Open Word or Excel with a work account.
- Open Insert → Add-ins.
- Open the My Add-ins tab.
- Open the Admin Managed tab.
- Select the Myra document AI add-in.
-> The Myra document AI task pane opens.
⚠️ Caution: The Outlook add-in does not deploy through the SharePoint App Catalog. Deploy the Outlook add-in with the Microsoft 365 admin center instead.
Sideloading an add-in
A sideload installs an add-in for your own account only, without an organisation-wide deployment. Use a sideload to test an add-in.
Proceed as follows to sideload an add-in in Word or Excel on the web:
- Open Word or Excel on the web.
- Open Insert → Add-ins.
- Click on the Upload My Add-in button.
- Click on the Browse button.
- Select the add-in manifest file.
- Click on the Upload button.
-> The task pane opens for the current session.
💡 Note: To sideload the Outlook add-in, open Settings → Add-ins → My add-ins → Custom add-ins in Outlook on the web, select Add a custom add-in, select Add from file, and select the manifest file.
Verifying the installation
Proceed as follows to verify the installation:
- Open the add-in task pane: on the ribbon (the Home tab in Word and Excel), in the group Myra document AI (in German Office: Myra Dokument-KI), click on Myra.
- Select text in the document.
- Run the summary:
- In Word, click on Summarise.
- In Excel, select a range of cells, choose Summarise the selection under Action, then click on Run.
- In Outlook, open a message and click on Summarise this message.
-> The add-in returns a result from the model of the tenant.
If a sign-in or consent error appears, grant single sign-on consent as described above. If the pane shows Document AI is not enabled for your workspace. Contact your administrator. (the gateway answered 403 not provisioned for document AI), the workspace of the user is not enabled for direct document AI — see Direct document AI. End users find a short guide in Use Myra document AI in Word, Excel and Outlook.
The add-ins tell a refused request apart by the typed error.code of the gateway error body, not by the HTTP status alone. A 429 can mean a short throttle or an empty wallet, so the pane shows the matching message: for quota_exceeded / wallet_insufficient that the budget or prepaid balance is used up, for user_budget_exceeded / team_budget_exceeded that the personal or team budget is used up, for trial_expired / trial_budget_exhausted that the trial has ended, for subscription_inactive that the subscription is inactive, and for plan_model_not_allowed that the model is not in the plan. These messages name the workspace administrator and promise no retry. Only wallet_funds_reserved and spend_unverified say that a retry in a moment can help. An absent, malformed or unknown code falls back to the status-based message.
Add-in actions
Each add-in offers its own set of actions. Results that change the document always appear for review first: Word inserts AI edits as tracked changes, Excel shows a preview before Apply to sheet, and Outlook inserts a draft into the reply without sending it.
The add-ins offer the following actions:
| Add-in | Actions |
|---|---|
| Word | Rewrite / polish, Fix grammar, Summarise, Draft / continue, Translate, Ask |
| Excel | Summarise the selection, Summarise to a report, Clean / transform data, Build a table, Write a formula, Ask a question |
| Outlook | Summarise this message, Draft / rewrite a reply |
The Ask action in Word and the Ask a question action in Excel answer a question about the open document or the selected cells. The answer appears in the task pane only; nothing is written into the document.
Result controls
The task pane shows controls that adjust the result of an action. Word groups the controls under Adjust the result. The pane shows only the controls that apply to the selected action.
The following controls are available:
| Control | Values | Applies to |
|---|---|---|
| Tone (Outlook: Reply tone) | Neutral, Formal, Casual | Actions that rewrite or generate text |
| Length | Shorter, Same (Excel: As is), Longer | Actions that rewrite or generate text, and summaries |
| Format (Outlook: Reply format) | Prose, Bullet points | Actions that rewrite or generate text |
The default values (Neutral, Same, Prose) leave the result unchanged. Translation has no controls.
Model selection
The Model drop-down list of the task pane selects the model an action runs on. The list contains the models the workspace offers for document AI and preselects the default model of the workspace. The gateway checks the selected model again on every call, so a model outside the offer of the workspace is refused. If the workspace offers only one model, the drop-down list is hidden and the default model is used. See Direct document AI for GET /direct/v1/models and the model field.
Related topics
The following chapters cover the surfaces referenced here:
- Direct document AI — the API the add-ins call, the per-action request shapes, and the error codes.
- Entra single sign-on — configuration of the Microsoft identity side.