3 min read

AI Conversations Documentation

Overview

AI Conversations are persistent chat sessions within the Vantage AI assistant system. Each conversation stores a title, message history, and metadata, enabling users to maintain multiple ongoing discussions with the AI. Conversations are shared across the sidebar assistant and popup chat, and support full CRUD operations (create, read, update, delete). A temporary chat mode allows ephemeral conversations that aren't saved to the database.

Purpose

The conversation system ensures that AI interactions are not ephemeral by default. Users can:

How It Works

Conversation Lifecycle

User sends first message │ ├─ Persistent Mode (default) │ ├── Auto-create conversation (titled from first message) │ ├── Save messages after each AI response │ └── Appears in Recent Chats list │ └─ Temporary Mode ├── No conversation created ├── Messages exist only in component state ├── "Save" button available to persist later └── Lost on page refresh or panel close

Auto-Titling

When a new conversation is created (on first message in persistent mode), the title is automatically generated:

Message Persistence

Messages are saved to the database after each complete AI response cycle:

  1. User sends a message → message is added to local state.
  2. AI streams a response → final response content is captured.
  3. Full message array (all user + assistant messages) is PATCH-ed to the conversation.
  4. Conversation messageCount is updated locally for display.

Conversation Switching

When a user selects a different conversation:

  1. The selected conversation is loaded.
  2. Messages are fetched from the server.
  3. The chat display updates to show the loaded messages.

Features

Conversation Actions

All conversation actions are available from the AI panel's hamburger menu:

ActionDescription
ListView all your conversations, ordered by most recent
CreateStart a new conversation (auto-titled from your first message)
RenameClick the pencil icon next to any conversation to rename it
DeleteClick the trash icon or use Ctrl+Shift+D to permanently delete a conversation
SwitchClick any conversation in the list to load it

Voice Input

You can use voice input in any conversation:

Data Expectations

Use Cases

1. Multi-Topic Organization

Maintain separate conversations for different topics — one for dashboard help, one for workflow debugging, one for integration setup. Switch between them via the conversation selector.

2. Quick One-Off Questions

Use temporary chat mode for questions you don't need to save. If the response turns out to be valuable, click "Save" to persist it.

3. Team Knowledge Building

Have conversations about business processes and organizational knowledge. Use the "Train AI" button on valuable responses to add them to your organization's AI context, improving future responses for all users.