> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qwox.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Chat

> Your intelligent assistant for everything

## Overview

The **AI Chat** is the heart of Qwox. It's not just a chatbot; it's an intelligent orchestrator that connects your notes, calendar, and the web to help you get things done. It understands natural language, manages your memories, and adapts to your personal preferences.

## Starting a Conversation

Simply type naturally or use voice input. Qwox understands context, so you don't need to use specific commands.

<Tabs>
  <Tab title="Ask Questions">
    * "Where did I leave my passport?"
    * "Summarize my project notes"
    * "What's on my schedule today?"
  </Tab>

  <Tab title="Take Action">
    * "Remind me to call Mom tomorrow at 5pm"
    * "Save this recipe..."
    * "Create a packing list for my trip"
  </Tab>

  <Tab title="Web Research">
    * "Find the best Italian restaurants nearby"
    * "Research the history of jazz"
    * "Summarize this article: \[url]"
  </Tab>
</Tabs>

## Core Capabilities

### 1. Smart Document & Image Processing

Qwox goes beyond simple text chat by analyzing your uploads for actionable information.

* **OCR & Text Extraction**: Upload images or PDFs, and Qwox will automatically extract text.
* **Automatic Event Detection**: Snap a photo of a concert poster, ticket, or invitation. Qwox detects the date, time, and details, then offers to save it directly to your timeline.

### 2. Library Integration

Your chat is connected to your entire digital library.

* **Contextual Analysis**: Select any note, image, or file from your library to "attach" it to the conversation.
* **Ask & Edit**: Once attached, you can ask Qwox to "Summarize this document" or "Add this info to my Work category."

### 3. User Preferences

Qwox adapts to provide a tailored experience:

* **Language Support**: Speaks English, Turkish, Spanish, and French. Switch in Profile settings.
* **Theme Adaptation**: Seamlessly switches between Light and Dark modes.
* **Voice Input**: Speak naturally for hands-free interaction (Mobile).

## Under the Hood: The AI Engine

Qwox uses a sophisticated **Agent Loop** architecture powered by state-of-the-art AI models. Here's how it works:

### The Orchestrator

When you send a message, the **Orchestrator** analyzes it to determine the best course of action. It uses an **Advanced Reasoning** engine:

1. **Understand**: "The user is asking about their schedule."
2. **Plan**: "I should check the calendar."
3. **Execute**: "I found 3 events."
4. **Respond**: "You have 3 events today..."

### AI Tools

The Orchestrator has access to a powerful toolkit to perform tasks for you. It can chain these tools together to solve complex problems.

| Tool                   | Description                                                             |
| ---------------------- | ----------------------------------------------------------------------- |
| **Search Memories**    | Semantic search to find relevant notes and events in your second brain. |
| **Create/Update Note** | Saves information and edits existing notes.                             |
| **Manage Events**      | Creates appointments and checks your schedule.                          |
| **Web Search**         | Searches the live internet for up-to-date information.                  |
| **Fetch Page**         | Reads and analyzes content from specific URLs.                          |
| **Smart Organize**     | Analyzes your library and proposes new collections.                     |
| **Delete Memory**      | Removes outdated information (requires confirmation).                   |

### Safety & Control

* **Confirmation System**: Destructive actions (like deleting) require your explicit "Yes".
* **Privacy**: Your data is only accessed when relevant to your request.
* **Loop Protection**: Prevents the AI from getting stuck in repetitive tasks.

## Advanced Conversation Features

### Context Awareness

Qwox remembers your conversation context. You can ask follow-up questions without repeating information:

<CodeGroup>
  ```text First Message theme={null}
  "When is my doctor's appointment?"
  ```

  ```text Follow-up theme={null}
  "What should I bring to it?"
  ```

  ```text Another Follow-up theme={null}
  "Remind me the day before"
  ```
</CodeGroup>

### Multi-turn Conversations

Have natural, flowing conversations. Qwox maintains context throughout:

<Steps>
  <Step title="Start Topic">
    "I'm planning a trip to Paris"
  </Step>

  <Step title="Add Details">
    "It's for 5 days in April"
  </Step>

  <Step title="Get Help">
    "What should I pack?"
  </Step>

  <Step title="Save for Later">
    "Save this packing list"
  </Step>
</Steps>

## Mobile Quick Actions

Long-press on any message bubble to access quick actions:

* **Save as Note**: Instantly save valuable information to your library.
* **Copy**: Copy text to clipboard.
* **Set Reminder**: Turn a message into a task.
* **Add Tags**: Organize memories for easier retrieval.

## Conversation Management

* **History**: Swipe right (mobile) or check sidebar (web) for past chats.
* **New Chat**: Start fresh context anytime.
* **Delete**: Remove old conversations to keep history clean.

## Troubleshooting

<AccordionGroup>
  <Accordion title="AI didn't find my note" icon="magnifying-glass">
    Try rephrasing your question with more specific keywords. Ensure the note was saved correctly in your Library.
  </Accordion>

  <Accordion title="Action failed" icon="circle-exclamation">
    Check your internet connection. If the AI was trying to access a website, the site might be down or blocking access.
  </Accordion>

  <Accordion title="Wrong language" icon="language">
    Check your language settings in **Profile > Settings**. The AI matches your preferred language.
  </Accordion>
</AccordionGroup>

## Related Guides

<CardGroup cols={2}>
  <Card title="Memory Network" icon="diagram-project" href="/guides/memory-network">
    Visualize connections in your brain.
  </Card>

  <Card title="Timeline" icon="calendar" href="/guides/timeline">
    Manage events and reminders.
  </Card>

  <Card title="Notes" icon="note-sticky" href="/guides/notes">
    Rich text editing and organization.
  </Card>

  <Card title="Search" icon="magnifying-glass" href="/guides/search">
    Master semantic search.
  </Card>
</CardGroup>
