Technical Articles

Review Cloudmersive's technical library.

How to Extract Document Summaries using Document AI in Power Automate
12/3/2025 - Brian O'Neill


Cloudmersive Document AI is here, and it’s ready to revolutionize your document processing workflows.

Document AI empowers enterprises to intelligently summarize or categorize document contents, retrieve form responses, pull data from tables, and extract fields of data from invoices, receipts, tax forms, and other standard documents.

Cloudmersive Document AI Summarization in Power Automate

The Document AI API can be imported to Power Automate as a Custom Connector, and from there it can be plugged into any new or existing document processing workflow with ease.

In this article, we walk through an example Power Automate flow which takes advantage of the Document AI API’s document summarization capabilities to generate a detailed natural-language summary of an Invoice document’s contents. This extremely simple flow allows us to prepare accurate document summaries for flow stakeholders, which is useful in approval workflows (among myriad other flow types).

Uploading a Custom Document AI Connector to Power Automate

Before we begin walking through our example AI document summarization workflow in Power Automate, we’ll first address that we’re using the Document AI API as a custom connector in this case. Uploading any Cloudmersive API to Power Automate as a custom connector is as simple as 1) uploading the API spec to the power platform via JSON file or URL and 2) setting a host endpoint and base path in the General information tab of the custom connector editor.

1_Custom Upload Options
2_Set Host and Path in General Custom

If we’ve deployed the Document AI API to a private or managed instance endpoint, we can set that endpoint as the host in our custom connector to take full advantage of our infrastructure in Power Automate.

Extracting an AI-Generated Document Summary in a Power Automate Flow

Once we’ve created our Document AI custom connector, we can begin creating our AI document summarization flow.

In this article, we’ll build an example Instant Cloud Flow with a manual file input trigger. Building this style of flow will simplify testing AI document summarization with multiple files.

3_Select Instant Cloud FLow
4 - select instant cloud flow

At the outset, we’ll open our Manually trigger a flow step and configure a File input option.

5 - implement file upload in mnaual trigger.

Next, we’ll add a new action and navigate to the Custom runtime tab to access our custom-uploaded Document AI connector.

6_Select Custom Connectors.

From the actions list, we’ll select the action titled Extract Summary from a Document using AI.

7 - select extract summary action.

Now we’ll configure our Extract Summary from a Document using AI parameters.

We don’t have much work to do here. First, we’ll simply pass in our input file bytes and file name from our manual trigger step; after that, we’ll optionally select a recognition mode. This parameter can be set to either Basic or Advanced recognition mode (default is Advanced). These recognition modes offer a tradeoff between API processing speed and accuracy. We want the most accurate possible results in this flow, so we’ll leave this parameter on its Advanced setting.

8 - Configure Document Summary Parameters

At this point, we’ll save and test our flow.

9 - show flow about to run with test file

We’ll run our first test with the following PNG image of an invoice:

Invoice Example

When our first test finishes running, we’ll navigate to the Show raw outputs page and review our document summary.

10 - select raw output
11 – show output json

It’s difficult to view the entire summary in the output side bar, so we’ll copy this output to a text editor and take a closer look.

11 - show output json
12 - output summary in word processor

If we review the DocumentSummaryText alongside the example invoice (shown above), we’ll be able to confirm that the summary is accurate. Not only does the summary provide a useful natural-language summary description of the invoice, it also correctly parses the invoice number, invoice date, paying and receiving companies, and the exact cost per unit of each item on the invoice table.

For a quick comparison, we’ll run one additional test with a completely different document. This document will be a Microsoft Word DOCX file containing some passages of Lorem Ipsum Latin text and their corresponding English translations.

Lorem ipsum doc screenshot

13 - shoiw lorem ipsum prepared for test

We’ll once again copy the output from this response into a text editor so we can read it more easily.

14 - screenshot of lorem ipsum summary in word processor

If we review this summary alongside the example Lorem Ipsum document, we’ll once again be able to confirm that the summary is accurate. The summary correctly indicates that our Latin text is accompanied by English translations, and it summarizes the English text so we can get the gist of what the translation means.

Creating summaries for these two unique document types shows that we can use this document summarization action for a wide range of document types. This can be immensely useful in a variety of document processing workflows.

Conclusion

In this article, we learned how to easily extract fields and tables from a receipt using the Document AI Extract Summary from a Document using AI action. Our example flow runs returned accurate natural-language summaries of each documents’ contents.

Including Document AI in our Power Automate flows immediately empowers our document processing capabilities. We can easily extract and subsequently share or store the data we need from unique document types without knowing anything about the documents ahead of time.

For expert advice on using the Cloudmersive Document AI API in Power Automate, please reach out to a Cloudmersive representative.

600 free API calls/month, with no expiration

Sign Up Now or Sign in with Google    Sign in with Microsoft

Questions? We'll be your guide.

Contact Sales