Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

6.0 KB
Raw Blame
---
title: Chat Interface & Branching
description: >-
  Flexible conversation flow with branching β€” explore multiple paths, edit
  messages, and manage conversations.
tags:
  - LobeHub
  - Chat
  - Branching
  - Conversations
  - Message Editing
---

# Chat Interface & Branching

In LobeHub chat, you can edit messages, view formatted content, and branch a conversation to explore a different direction while keeping the original discussion.

## Core Chat Features

On desktop and mobile, the chat interface includes:

- **Real-time streaming responses** β€” Watch AI responses generate in real-time with smooth animations
- **Rich content support** β€” Display formatted text, code blocks, images, and multimedia
- **Message editing** β€” Edit previous messages to refine your questions
- **Message reactions** β€” React to messages with quick feedback
- **Context preservation** β€” Conversations maintain full context for coherent discussions

## Branching Conversations

Conversation branching lets you explore several approaches from the same message.

### How Branching Works

From any message in your conversation, you can create a new branch to explore different directions while preserving the original context.

**To create a branch:**

1. Hover over any message in the conversation
2. Click the branch icon in the message actions
3. Choose your branching mode
4. Continue the conversation in a new direction

### Branching Modes

<Tabs>
  <Tab title="Continuation Mode">
    **Continuation Mode** extends your current discussion while maintaining valuable context from previous messages.

    **When to use:**

    - Exploring alternative solutions to the same problem
    - Testing different approaches while keeping background information
    - Comparing multiple responses to the same question

    **Example workflow:**

    ```
    Original: "How can I optimize my React app?"
    β”œβ”€ Branch 1: "Focus on code splitting strategies"
    β”œβ”€ Branch 2: "Focus on image optimization"
    └─ Branch 3: "Focus on bundle size reduction"
    ```
  </Tab>

  <Tab title="Standalone Mode">
    **Standalone Mode** starts fresh with a new topic based on any previous message.

    **When to use:**

    - Diving deeper into a specific subtopic
    - Starting a related but independent discussion
    - Isolating a particular aspect for focused exploration

    **Example workflow:**

    ```
    Main conversation: "Database design for e-commerce"
    └─ Standalone branch: "Tell me specifically about payment processing security"
    ```
  </Tab>
</Tabs>

### Navigating Branches

When a message has multiple branches, you'll see branch navigation controls:

- **Arrow buttons** β€” Navigate between different branches
- **Branch counter** β€” Shows current branch (e.g., "2/5")
- **Branch indicator** β€” Visual cue showing branching points

Click the left/right arrows to switch between different conversation paths and compare responses.

## Use Cases

<Tabs>
  <Tab title="Software Development">
    **Exploring Multiple Solutions**

    When debugging or architecting solutions:

    - Create branches for different implementation approaches
    - Compare pros/cons of various design patterns
    - Test edge cases without losing your main conversation flow

    ```
    "How should I structure my API?"
    β”œβ”€ REST architecture exploration
    β”œβ”€ GraphQL approach
    └─ gRPC implementation
    ```
  </Tab>

  <Tab title="Creative Writing">
    **Iterating on Content**

    For content creation and editing:

    - Generate multiple variations of headlines or introductions
    - Explore different narrative directions
    - Compare tone and style variations
  </Tab>

  <Tab title="Research & Analysis">
    **Deep Diving Topics**

    When conducting research:

    - Investigate different aspects of a complex topic
    - Compare contrasting viewpoints
    - Maintain separate analysis threads
  </Tab>

  <Tab title="Learning">
    **Adaptive Learning Paths**

    For educational purposes:

    - Try different explanation styles to find what works
    - Explore related concepts without losing the main thread
    - Build knowledge progressively across branches
  </Tab>
</Tabs>

## Tips for Effective Branching

<AccordionGroup>
  <Accordion title="Keep Branches Organized">
    Use descriptive first messages in each branch to remember what each path explores. This makes it easier to navigate back later.
  </Accordion>

  <Accordion title="Compare Results Side-by-Side">
    Use the branch navigation to quickly flip between responses and identify the best approach for your needs.
  </Accordion>

  <Accordion title="Don't Over-Branch">
    Start with 2–4 key alternatives to make branches easier to compare.
  </Accordion>

  <Accordion title="Use Continuation for Iterations">
    When refining responses, continuation mode helps maintain context while exploring variations.
  </Accordion>

  <Accordion title="Use Standalone for Deep Dives">
    When you want to explore a tangent without cluttering your main conversation, standalone mode keeps things clean.
  </Accordion>
</AccordionGroup>

## Chat Management

### Organizing Conversations

- **Search** β€” Find specific messages or topics across all conversations
- **Pin important chats** β€” Keep frequently accessed conversations at the top
- **Archive** β€” Organize your conversation list without deleting valuable conversations
- **Export** β€” Save conversations in multiple formats for sharing or backup

### Message Actions

Each message includes quick actions:

- **Copy** β€” Copy message content to clipboard
- **Edit** β€” Modify your sent messages
- **Delete** β€” Remove messages from the conversation
- **Regenerate** β€” Get a new response from the AI
- **Branch** β€” Create a new conversation path
- **Share** β€” Export individual messages or threads

Branching conversations are preserved in your conversation history, so you can always return to explore different paths later.

<Cards>
  <Card href={'/docs/usage/getting-started/agent'} title={'Agent'} />

  <Card href={'/docs/usage/agent/topic'} title={'Topics'} />
</Cards>