---
title: "Handover"
description: "Pause and hand the chat to a chat profile, optionally a specific member."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/chat/handover"
---
# Handover

> Pause and hand the chat to a chat profile, optionally a specific member.

<block-meta block="Yes" channels="Chat" folder="chat" group="Chat" groupTo="/build/workflows/blocks/chat" hitl="Yes" icon="i-lucide-handshake" pipe="Value" scope="Any" tool="Yes" type="chat.handover">



</block-meta>

**Handover** pauses the run and offers the conversation to a [chat profile](https://docs.vettero.com/configuration/chat-profiles) (any member in the queue, or a specific member). The workflow **continues only after** a human handles the chat and **releases** it back.

This type belongs on **chat** workflows. Attach the same capability as an **agent tool** when the model should escalate mid-run.

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        Target
      </strong>
    </td>
    
    <td>
      Chat profile to hand over to (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        User (optional)
      </strong>
    </td>
    
    <td>
      Specific profile member. Disabled until a profile is selected
    </td>
  </tr>
</tbody>
</table>

Create and staff profiles under **Configuration → Chat Profiles**. Handover needs members assigned so someone can pick up the work.

## 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 the human releases the chat
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

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

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

<tbody>
  <tr>
    <td>
      <code>
        handledBy
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      User id of the person who released the chat
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        sessionId
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Session that was handed over
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        messages
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Window of messages during handover
    </td>
  </tr>
</tbody>
</table>

`messages` includes:

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

<tbody>
  <tr>
    <td>
      <code>
        start
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      First message id in the window (may be empty)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        end
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Last message id in the window (may be empty)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        count
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      How many messages were in the window
    </td>
  </tr>
</tbody>
</table>

## Use case

- Escalate billing or exceptions to a human team, then resume automation after they finish.
- Route to a named operator when you already know who should take the chat.

<block-page-nav>



</block-page-nav>


## Sitemap

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