# Summarize Large PDF Document using Anthropic

> **Applications:** OneDrive/Sharepoint, Document Understanding, Anthropic Claude, Outlook

## **Summarize Large PDF Document using Anthropic**

**Applications:** OneDrive/Sharepoint, Document Understanding, Anthropic Claude, Outlook

**Description:** Summarize a large document (up to 300 pages) via a single request to Anthropic Claude.

## Steps

1. Open Studio Web and create a new project. For this example, we use the **Manual** option in the **How to start the automation** field.
   :::note
   You can also use a trigger that detects a new file created on OneDrive of a specified size and automatically triggers the creation of the summary. To do so, in the **How to start the automation** field, you can also select **Event based**. You are presented with a window that enables you to search for the trigger you want to start the automation with. Navigate to **OneDrive > File Created**.
   :::
2. Drag a OneDrive/Sharepoint [Download File](https://docs.uipath.com/activities/other/latest/productivity/office365-drive-download-file-connections) activity to store the file in memory so that the workflow can reference it in future steps.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-339654-778ee7c4-cee079b7.webp)

   :::note
   This could also include a [For Each File/Folder](https://docs.uipath.com/activities/other/latest/productivity/office365-drive-for-each-file-folder-connections) activity to cycle through multiple files in a file storage location.
   :::
3. Next, add a Document Understanding: [Extract PDF Text](https://docs.uipath.com/activities/other/latest/document-understanding/extract-pdf-text) activity to your canvas.
   1. Make sure that the input includes the locally stored downloaded file variable from the previous **Download File** activity.
   
      :::note
      If the file isn't already in PDF format, you can configure the Download File activity to convert it to PDF format.
      :::
4. Next, use an **Anthropic Claude**: **Get Text Completion** activity.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-339646-144ace9c-0efce031.webp)
   
   1. This is a highly configurable activity that puts the power in your hands to tell the model **exactly** what you want it to return. Using natural language, define the way you want the model to summarize, additional context you want it to take into consideration and the actual text you want it to summarize. Iterating through different prompts to ultimately get to the output that you're satisfied with is an excellent approach. Note that you can easily feed variables from prior activities to this activity by using the text builder. See an example below:
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-339658-7731b2ac-667375d5.webp)   
   
   2. Finally, use an **Outlook: Send Email** activity to send the output summary from Anthropic. You could replace this with any activity that outputs the summary in a format you prefer.
   
   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-339650-a24f287e-ae761443.webp)
