---
title: "Document Changed"
description: "Run when a Google Docs file changes for a connected account."
canonical_url: "https://docs.vettero.com/build/event-handlers/document-changed"
---
# Document Changed

> Run when a Google Docs file changes for a connected account.

<trigger-meta capability="Google Docs and Google Drive" group="Files" icon="i-lucide-file-text" service="Google" serviceTo="/integrations/third-party-services/google" type="google.docs.on-document-change">



</trigger-meta>

**Document Changed** runs when Drive push notifications arrive for that document file. Google does not send a body diff — follow with [Get Document](https://docs.vettero.com/build/workflows/blocks/docs/get-document).

This trigger needs **Google Docs** and **Google Drive** on the same connection. Watches expire about daily. Vettero renews them on a schedule.

## Payload

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        serviceId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Connected Google service with Docs and Drive
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        documentId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Document file to watch
    </td>
  </tr>
</tbody>
</table>

## Trigger data

Available as `args.*`.

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        documentId
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      Document id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        file
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Drive file metadata when the file is still present
    </td>
  </tr>
</tbody>
</table>

## Use case

- When a brief is edited, extract plain text and update a [table](https://docs.vettero.com/data/tables) row.

<trigger-page-nav>



</trigger-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
