{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":23632,"path":"intelligent-experiences/inth-ms-onedrive-microsoft-onedrive-file-management-ai-agent.md","title":"Microsoft OneDrive file management AI agent","bundle":null,"doc_type":null,"release":"australia","body":"\n# Microsoft OneDrive file management AI agent\n\nThis AI agent manages Microsoft OneDrive files.\n\n## Workflow\n\nThe agent looks up items, copies files and folders, uploads and replaces files, handles large uploads, checks files in and out, manages versions, and copies files between Microsoft OneDrive and ServiceNow attachments.\n\n1.  Ask the user what they want to do and collect the details the action needs, such as the file or folder.\n2.  Look up items, or look up a file or folder by ID or path.\n3.  Copy a file or folder within Microsoft OneDrive.\n4.  Copy a ServiceNow attachment to Microsoft OneDrive, or copy a Microsoft OneDrive file or file version to an attachment.\n5.  Upload and replace a file, or upload a large file using an upload session.\n6.  Check the status of an upload session or delete it.\n7.  Check a file out or check it back in.\n8.  Restore a file version or delete one.\n9.  Report the outcome to the user, including details of any error.\n\n<table><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nAllow third party to access this AI agent\n\n</td><td>\n\nWhen enabled, third-party AI agents can use this agent. This value is off \\(false\\) by default. This setting is defined in the AI Agent configs \\[sn\\_aia\\_agent\\_config\\] table on the External discoverable field.\n\n</td></tr><tr><td>\n\nAllow AI specialists to access this AI agent\n\n</td><td>\n\nWhen enabled, AI specialists can use this agent. This value is off \\(false\\) by default. When set to true, more configuration options for tools become available so that an AI specialist can map inputs and response templates to tool outputs. This setting is defined in the AI Agent configs \\[sn\\_aia\\_agent\\_config\\] table on the Specialist enabled field.\n\n</td></tr><tr><td>\n\nManage long-term memory\n\n</td><td>\n\nWhen enabled, all previous user interactions are used as context for the LLM. This value is off \\(false\\) by default. This setting is defined by the **sn\\_aia.ltm.enable\\_long\\_term\\_memory** system property. For more information, see [ServiceNow Otto AI agents reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/na-aia-reference.md).\n\n</td></tr><tr><td>\n\nTools\n\n</td><td>\n\n-   **Flow Actions**\n\nCheck In File\n\nCheck Out File\n\nCheck Upload Session Status\n\nCopy Attachment to OneDrive\n\nCopy Attachment to OneDrive Using Path\n\nCopy File or Folder Item\n\nCopy OneDrive File Version to Attachment\n\nCopy OneDrive File to Attachment Using File Path\n\nCreate Upload Session\n\nDelete Upload Session\n\nDelete Version of a File\n\nLook up File or Folder Item Info by ID\n\nLook up File or Folder Item Info by Path\n\nLook up Items\n\nRestore File Version\n\nUpload Large File\n\nUpload and Replace File\n\n\n</td></tr><tr><td>\n\nAllowed user roles The specific user roles that can access this AI agent.\n\n</td><td>\n\nsnc\\_internal\n\n</td></tr><tr><td>\n\nData access roles The specific user identity roles that determine which data the AI agent can access and what actions it can take.\n\n</td><td>\n\nsnc\\_internal\n\n</td></tr><tr><td>\n\nTriggers\n\n</td><td>\n\nOptional. None defined by default. An admin can specify triggers if desired. For more information, see [Add a trigger to an AI agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/add-trigger-aia.md).\n\n</td></tr><tr><td>\n\nChannels\n\n</td><td>\n\nConfigure an assistant for Virtual Agent or ServiceNow Otto panel using [Assistant Designer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/configure-now-assist-va.md).\n\n</td></tr><tr><td>\n\nUsed in agentic workflows\n\n</td><td>\n\nNot applicable.\n\n</td></tr></tbody>\n</table>**Parent Topic:**[Microsoft OneDrive Spoke AI agents](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/inth-ms-onedrive-ai-agents-overview.md)\n\n**Related topics**  \n\n\n[Microsoft OneDrive Spoke](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/onedrive-spoke.md)\n\n[Integration Hub spokes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/spokes-list.md)\n\n"}}