---
title: "Reply to Email"
description: "Send a reply in an existing Gmail thread."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/gmail/reply-email"
---
# Reply to Email

> Send a reply in an existing Gmail thread.

<block-meta block="Yes" capability="Gmail" channels="Any" folder="google/gmail" group="Gmail" groupTo="/build/workflows/blocks/gmail" icon="i-lucide-reply" pipe="Value" scope="Any" service="Google" tool="Yes" type="google.gmail.reply_email">



</block-meta>

**Reply to Email** sends a message on an existing Gmail thread. It loads the last non-draft message (or a specific **Message ID**), sets reply headers (`In-Reply-To`, `References`), and keeps the same `threadId`.

If **To** is empty, **Reply** uses From (or another party) on that message. **Reply all** includes the other To and Cc addresses except the connected mailbox. If **Subject** is empty, the subject becomes `Re:` plus the last subject (or stays as-is if it already starts with `Re:`).

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Thread ID
      </strong>
    </td>
    
    <td>
      Gmail thread id (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Message ID (optional)
      </strong>
    </td>
    
    <td>
      Reply to this message instead of the last non-draft in the thread
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Reply mode
      </strong>
    </td>
    
    <td>
      <strong>
        Reply
      </strong>
      
       (default) or <strong>
        Reply all
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Body
      </strong>
    </td>
    
    <td>
      Liquid reply body (required). Match <strong>
        Content type
      </strong>
      
      . Rendered when the block runs
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Subject (optional)
      </strong>
    </td>
    
    <td>
      Liquid subject. Empty uses <code>
        Re:
      </code>
      
       on the last message
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        To (optional)
      </strong>
    </td>
    
    <td>
      Override recipient. Empty uses the last message’s From / Reply-To
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Cc (optional)
      </strong>
    </td>
    
    <td>
      Carbon-copy addresses
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Bcc (optional)
      </strong>
    </td>
    
    <td>
      Blind carbon-copy addresses
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Attachments (optional)
      </strong>
    </td>
    
    <td>
      Workspace file(s) to attach
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Content type
      </strong>
    </td>
    
    <td>
      <strong>
        Plain text
      </strong>
      
       (default) or <strong>
        HTML
      </strong>
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after Gmail accepts the reply
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`):

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

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Gmail message id of the reply
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        threadId
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Same thread id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        labelIds
      </code>
    </td>
    
    <td>
      list
    </td>
    
    <td>
      Labels on the sent reply
    </td>
  </tr>
</tbody>
</table>

## Use case

- After [Mail Received](https://docs.vettero.com/build/event-handlers/mail-received), reply with `args.message.threadId` without opening [Mail Chat](https://docs.vettero.com/build/channels/mail-chat).
- Keep a support row’s [Gmail Thread](https://docs.vettero.com/data/tables/gmail-thread) value and reply later from a scheduled workflow.

<block-page-nav>



</block-page-nav>


## Sitemap

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