> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up DocsAutomator in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/docsautomator
Last updated: 2026-11-24

Share DocsAutomator with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 16 tools (7 read-only).

---

To give your team DocsAutomator in Claude, ChatGPT, Cursor and other AI clients, an admin shares the DocsAutomator integration in a Metorial portal, and each person connects with an API key. Agents can generate PDF and Google Doc documents from templates using placeholder-based data mapping. The integration has 16 tools, 7 read-only, 7 write and 2 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares DocsAutomator in a portal and how each person connects
- What DocsAutomator asks for when you connect, and where to find it
- How to keep the 7 read-only tools and reject the other 9

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from DocsAutomator for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Key** | API token | `token` |

### API Key

To connect, a person enters:

- `token`: Your DocsAutomator API key. Found at Settings > Workspace > API in your DocsAutomator account.

## Admin: share DocsAutomator in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose DocsAutomator. For how members connect, choose **Each person connects** so everyone enters their own API key, or **Shared connection** to enter one API key for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from DocsAutomator.

4. **Choose who gets it**

   Add the access groups that should see DocsAutomator. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user DocsAutomator integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search docsautomator
```

## Employee: connect DocsAutomator

### In the portal

1. **Open DocsAutomator in the catalog**

   Sign in to your portal and open DocsAutomator. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (token).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search docsautomator
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your DocsAutomator connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list docsautomator
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 7 read-only tools, such as `get_automation` and `get_job_status`, and lose the 7 write tools, such as `send_test_email` or `create_automation`, and the 2 destructive tools, such as `delete_automation` or `cancel_esign_session`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list docsautomator
metorial tools <integration-id>
metorial call <integration-id> list_automations -d '{}'
```

`metorial tools` lists the 16 tools, minus any you rejected. `list_automations` takes no input. 

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (7)

- `list_placeholders`: Extracts all placeholder names from a DocsAutomator automation's template. Needs `automationId`.
- `get_job_status`: Checks the status of an asynchronous document generation job. Needs `jobId`.
- `list_esign_sessions`: Lists e-signature sessions with optional filtering by status, signer email, and pagination.
- `list_automations`: Lists all automations in the DocsAutomator workspace.
- `get_queue_stats`: Returns current document generation queue metrics for the workspace, including the number of pending, processing, and completed jobs.
- `get_esign_session`: Retrieves detailed information about a specific e-signature session including signer statuses, document hashes, completion timestamps, and optionally signing links and audit trail. Needs `sessionId`.
- `get_automation`: Retrieves detailed information about a single DocsAutomator automation by its ID. Needs `automationId`.

### Write tools (7)

- `duplicate_automation`: Creates a copy of an existing DocsAutomator automation. Needs `automationId`.
- `generate_document`: Generates a PDF or Google Doc from a DocsAutomator automation template.
- `update_automation`: Updates an existing DocsAutomator automation's settings. Needs `automationId`.
- `create_automation`: Creates a new DocsAutomator automation with a title, data source, and Google Doc template link. Needs `title`, `dataSourceName` and `docTemplateLink`.
- `resend_esign_invitation`: Resends the signing invitation email to a specific signer in an e-signature session. Needs `sessionId` and `signerIndex`.
- `duplicate_template`: Creates a copy of the Google Doc template associated with a DocsAutomator automation. Needs `automationId`.
- `send_test_email`: Sends a test email using an automation's configured email settings so you can check delivery before generating documents.

### Destructive tools (2)

- `cancel_esign_session`: Cancels an active e-signature signing session. Needs `sessionId`.
- `delete_automation`: Permanently deletes a DocsAutomator automation and all its settings. Needs `automationId`.

## Triggers

DocsAutomator has 2 triggers, which fire on events in DocsAutomator:

- `document_generated`: Triggers when a document generation completes.
- `esign_event`: Triggers when an e-signature event occurs, including session creation (manual delivery), session completion (all signers signed), or session declined (a signer declined).

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use DocsAutomator there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [DocsAutomator on metorial.com](https://metorial.com/integrations/docsautomator): the integration overview