# Word

## Introduction

This document provides a comprehensive guide to using AutomMate's Word library actions, designed to streamline and automate various tasks within Word documents.

AutomMate's Word library offers a range of actions that empower users to manipulate Word files efficiently. From adding headers to inserting images and paragraphs, these actions simplify document editing processes.

## What is Word?

An overview of Microsoft Word and its role in document creation and editing.

Microsoft Word is a popular word processing software known for its versatile features and user-friendly interface.

#### Key Features:

* <mark style="color:orange;">Rich formatting options</mark>
* <mark style="color:orange;">Easy document editing and collaboration</mark>
* <mark style="color:orange;">Extensive template library</mark>
* <mark style="color:orange;">Integration with other Microsoft Office applications</mark>

## Automate Integration with Word

Explaining how Automate seamlessly integrates with Word to automate document-related tasks.

Automate's integration with Word enables users to automate repetitive tasks, saving time and effort in document creation and editing.

#### Examples of Automated Tasks:

* Adding standardized headers and footers
* Inserting images or logos into documents
* Creating templated paragraphs for common content

## Using the Integration

### Credentials

No need to use credentials.

## How To Use Actions

### Add Header

**Description:** Add a header to the Word file.

**Purpose:** Effortlessly include headers to organize and structure Word documents.

**Usage:**

1. Select the assigned Word file variable.
2. Enter or select the header text.
3. Choose the heading type (Heading 1, Heading 2, etc.).

**Inputs:**

* Word File: <mark style="color:green;">Variable containing the Word file.</mark>
* Header Text: <mark style="color:green;">Desired header content.</mark>
* Heading Type: <mark style="color:green;">Select from predefined options.</mark>

**Outputs:**

* Updated Word file with added header.

<figure><img src="/files/UKxdDFujQv6BfbOHT2xK" alt=""><figcaption></figcaption></figure>

### Add Image

**Description:** Insert an image into the Word file.

**Purpose:** Enhance documents by including visuals such as logos or illustrations.

**Usage:**

1. Select the assigned Word file variable.
2. Specify or define the image file path.
3. Enter the desired image width in inches.

**Inputs:**

* Word File: <mark style="color:green;">Variable containing the Word file.</mark>
* Image Path: <mark style="color:green;">Path to the image file.</mark>
* Image Width: <mark style="color:green;">Size of the image in inches.</mark>

**Outputs:**

* Word file with the inserted image.

<figure><img src="/files/BvfcK7gnhg7RSGaOsqWg" alt=""><figcaption></figcaption></figure>

### Add Paragraph

**Description:** Create a new paragraph in the Word file.

**Purpose:** Add content to documents with structured paragraphs.

**Usage:**

1. Select the assigned Word file variable.
2. Enter or select the paragraph content.
3. Choose font styles and formatting options.

**Inputs:**

* Word File: <mark style="color:green;">Variable containing the Word file.</mark>
* Paragraph Data: <mark style="color:green;">Content for the new paragraph.</mark>
* Font Styles: <mark style="color:green;">Bold, Italic, Underline.</mark>
* Font Color: <mark style="color:green;">Hex code or variable.</mark>
* Font Size: <mark style="color:green;">Size of the text.</mark>

**Outputs:**

* Updated Word file with the new paragraph.

<figure><img src="/files/F6QMzkq8C5B8C3yBR2Em" alt=""><figcaption></figcaption></figure>

### Read Document

**Description:** Retrieve content from an existing Word file.

**Purpose:** Access and manipulate data from Word documents for further processing.

**Usage:**

1. Specify the file path or select the Word file.
2. Assign the retrieved data to a variable for use in subsequent actions.

**Inputs:**

* File Path: <mark style="color:green;">Path to the Word file.</mark>
* Word File: <mark style="color:green;">Variable containing the Word file data.</mark>

**Outputs:**

* Retrieved content from the Word file.

{% hint style="info" %}

### **Hint**

For Word documents exceeding 250 MB, consider breaking them into smaller files or using alternative processing methods to ensure compatibility with Autom Mate workflows.
{% endhint %}

{% hint style="danger" %}

### **Warning**

* **Limitation**: Word documents larger than 250 MB will not be processed by the **Word ReadDocument** action.
* Users attempting to process oversized files may encounter action errors or failures.
  {% endhint %}

***

<figure><img src="/files/QoNO8aYBTBHbAdSErdfr" alt=""><figcaption></figcaption></figure>

### Save

**Description:** Save changes made to the Word file.

**Purpose:** Ensure all modifications are preserved in the Word document.

**Usage:**

1. Select the assigned Word file variable.
2. Enter the folder path to save the updated Word file.

**Inputs:**

* Word File: <mark style="color:green;">Variable containing the Word file.</mark>
* Folder Path: <mark style="color:green;">Destination to save the updated file.</mark>

**Outputs:**

* Confirmation of the saved Word file.

<figure><img src="/files/aOvhuThoV6oiW8LZ6FDn" alt=""><figcaption></figcaption></figure>

***

## Additional Tips

### [**Use Cases**](/userguide/use-cases.md)

### [FAQ](/userguide/faq.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.autommate.com/userguide/libraries/integration/word.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
