Search Past Conversation
Search indexed past conversations by meaning and optional filters.
Type
chat.search-past-conversationFolder
chatChannels
Any
Pipe
Value
Scope
Any
Search Past Conversation finds older chats that are similar to a query. Optional filters narrow the search to a session, user, or channel.
Only sessions on a channel with Vectorize enabled are indexed. Turn Vectorize on under routing when you create the channel, or later under Edit routing. Existing chats from before Vectorize was enabled are not backfilled.
The query is semantic (similar meaning), not exact keyword match. Names, order ids, and other exact strings can still match when they appear in the indexed text.
Configure
| Setting | Description |
|---|---|
| Search query | Text to match against indexed transcripts |
| Session ID | Optional session to search within |
| User identifier | Optional user filter |
| Channel | Optional channel type (for example web) |
| Channel identifier | Optional identifier on that channel |
| Limit | Page size. Default 10, 1–100 |
| Page | Page number. Default 1 |
Leave Search query empty and the block puts an empty result list on the pipe so the graph can continue.
Handles
| Handle | Role |
|---|---|
| In (target) | Incoming connection |
| Out (source) | Continues after the search returns |
Pipe schema
The next block reads this on the data pipe (pipe.value).
| Field | Type | Description |
|---|---|---|
results | list<Result> | Matching conversations, best match first |
total | number | Matches found in this retrieval (among the top candidates) |
page | number | Page used |
limit | number | Page size used |
Each Result includes:
| Field | Type | Description |
|---|---|---|
sessionId | text | Session id |
channel | text | Channel type |
channelIdentifier | text | Identifier on that channel |
userIdentifier | text | User on that channel |
summary | any | Session summary when one exists |
snippet | text | Excerpt from the matching transcript chunk |
Use case
- Look up a similar past chat before answering (for example “refund for delayed order”).
- Combine with Get Messages when you need the full transcript of a hit.
- Use Recent Sessions when you only need the latest sessions for a user, not a meaning search.