GUIDES · POWER AUTOMATE
Classify SharePoint, OneDrive and Google Drive files with your own model in Power Automate
StayCharted has a certified connector in Power Automate. Its Classify a record action sends a piece of text to one of your published models and returns the category, a confidence from 0 to 1, and whether the answer needs review. Because it's an ordinary Power Automate action, it fits into any flow that can read text from SharePoint, OneDrive, Google Drive, Outlook, Teams, Forms or Dataverse, and the answer can be written back to the same place.
Before you start
- A StayCharted plan with API access (Essentials or Business), a published model, and an API key from Workspaces → your workspace → API keys.
- A Power Automate license that includes Premium connectors. The StayCharted connector is Premium. Your Microsoft administrator can confirm what your license covers.
- Permission to create a cloud flow in your environment.
The action
| Connector | StayCharted AI Model Trainer |
| Action | Classify a record |
| Inputs | Model: a list of your published models. Text: the text to classify. |
| Outputs | Answer: the category. Confidence (0 to 1). Needs review: true when the confidence is below the review cutoff you set for the model. |
| Connection | Your StayCharted API key, entered once when you create the connection. |
The first time you add the action, Power Automate asks for a connection name and your API key. After that, the Model list shows the models you've published, and a new version of a model is used as soon as you publish it, with no change to the flow.


Example 2: Google Drive files
Power Automate's Google Drive connector has no trigger for new files, so this flow runs on demand or on a schedule. It classifies every file in a folder by its name and saves the answer as a small text file in a results folder. In our test, three service requests saved as Google Docs came back as HVAC, Electrical and Appliance.
- Create an instant cloud flow (Manually trigger a flow), or a scheduled flow that runs every hour.
- Add Google Drive's List files in folder and choose the folder.
- Add Classify a record, with Text set to the file's Name. Power Automate puts it inside an Apply to each loop for you.
- Inside the loop, add Google Drive's Create file in a results folder. A file name built with the expression below puts the category in the name, so the results folder reads as a sorted list.


The lock request was classified as Appliance because this demo model had no locks or doors category. Add representative examples for the categories your team actually needs, and check the report before using the model.
Use your flow’s actual action names in this expression:
Show text example
concat(items('For_each')?['Name'], ' - ', body('Classify_a_record')?['label'], '.txt')
For scheduled runs, track processed files or filter the source list to avoid classifying the same files again on every run. Keep the results folder separate from the source folder.
The same flow with OneDrive
OneDrive for Business has a When a file is created trigger, so the OneDrive version runs on its own as soon as a file is added. Use that trigger in place of the manual trigger and List files in folder, set Text to the file name, and write the result with OneDrive's Create file, or move the file into a folder named after the category with Move or rename a file. Everything else is the same as the Google Drive flow.
The SharePoint and Google Drive examples above were run in our demo accounts. We have not run this OneDrive version yet.
What to send as Text
The model answers from the text you send it, so send the same kind of text it was trained on. If you trained on request descriptions, send the description column, not the title. A file name works when your names are descriptive, as in the examples above. For the contents of a document, add a step that reads the text first; the connector doesn't open files itself.
Common questions
Does StayCharted connect to my Microsoft 365 or Google account?
No. Power Automate sends StayCharted only the text you map into the action, and StayCharted answers. Your flow does the reading and writing in SharePoint, OneDrive or Google Drive, with the connections you created.
Where do unsure answers go?
Each answer includes Needs review. On Essentials and Business, answers below your review cutoff also appear in StayCharted's Review Queue, and the answers your reviewers confirm go into the next version's training.
How does it count against my plan?
Each record you classify is one prediction in StayCharted, shown under Plan & usage. Power Automate counts the run against your Power Platform request limits as usual.
Can I still use the HTTP action?
Yes. The REST API works the same way, and the HTTP action is still the way to send several columns at once or to use a model with a different input, such as the SharePoint access model. See SharePoint access with Power Automate.
Put it into practice
Microsoft, Power Automate, SharePoint and OneDrive are trademarks of the Microsoft group of companies. Google Drive is a trademark of Google LLC. StayCharted is not affiliated with Microsoft or Google.


