---
title: "Recent Session Summary"
description: "Fetch the AI summary of the most recent session for a user or channel."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/chat/recent-session-summary"
---
# Recent Session Summary

> Fetch the AI summary of the most recent session for a user or channel.

<block-meta block="Yes" channels="Any" folder="chat" group="Chat" groupTo="/build/workflows/blocks/chat" icon="i-lucide-file-text" pipe="Value" scope="Any" tool="Yes" type="chat.recent-session-summary">



</block-meta>

**Recent Session Summary** loads the **most recent** chat session for a **user identifier** or **channel identifier**, including its stored summary when one exists. Provide at least one of those filters.

This is one session, not a list. Use [Recent Sessions](https://docs.vettero.com/build/workflows/blocks/chat/recent-sessions) when you need several.

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        User identifier
      </strong>
    </td>
    
    <td>
      Optional text (literal or variable)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Channel identifier
      </strong>
    </td>
    
    <td>
      Optional text. Used when you are not filtering by user
    </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 the session is loaded
    </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>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Session id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        channel
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Channel type
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        channelIdentifier
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Identifier on that channel
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        userIdentifier
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      User on that channel
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        summary
      </code>
    </td>
    
    <td>
      any
    </td>
    
    <td>
      AI-generated summary when available
    </td>
  </tr>
</tbody>
</table>

## Use case

- Prefill an agent with the last conversation’s summary for a returning customer.
- Skip a full transcript when you only need the stored summary.

<block-page-nav>



</block-page-nav>


## Sitemap

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