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

# Understanding AI Decisions

> Debug mode shows you the thinking behind AI responses - what information it used, why it made certain choices, and how it formed its answers.

## What's This?

Debug mode shows you the thinking behind AI responses - what information it used, why it made certain choices, and how it formed its answers.

## Why It's Useful

<CardGroup cols={2}>
  <Card title="Transparency" icon="glasses">
    See exactly what information the AI used
  </Card>

  <Card title="Training" icon="book">
    Identify knowledge gaps and improvement areas
  </Card>

  <Card title="Quality" icon="star">
    Ensure responses meet your standards
  </Card>

  <Card title="Trust" icon="heart">
    Build confidence in AI decisions
  </Card>
</CardGroup>

## How to Use Debug Mode

<Steps>
  <Step title="Find the Conversation">
    Filter to see AI conversations

    <video autoPlay muted loop playsInline className="w-full aspect-video rounded-lg" src="https://mintcdn.com/openchat/QQBUZEMVWs_GKqcv/images/filter.mp4?fit=max&auto=format&n=QQBUZEMVWs_GKqcv&q=85&s=7740520285c434ff3c300551c3674ef7" data-path="images/filter.mp4" />
  </Step>

  <Step title="View AI's Reasoning">
    Click the debug icon to see details

    <video autoPlay muted loop playsInline className="w-full aspect-video rounded-lg" src="https://mintcdn.com/openchat/QQBUZEMVWs_GKqcv/images/debug-mode.mp4?fit=max&auto=format&n=QQBUZEMVWs_GKqcv&q=85&s=f235da77cd49046ff2eb0228dc68bd04" data-path="images/debug-mode.mp4" />
  </Step>

  <Step title="Analyze the Components">
    Review three key areas: - **Actions**: Steps the AI took - **Knowledge**: Information sources
    used - **Keywords**: Search terms utilized
  </Step>
</Steps>

## Developer Mode

Need debug info in your widget? Enable it like this:

```javascript theme={"dark"}
initOpenScript({
  // Other options...
  debug: true, // Enables console logs and UI debugging
});
```

<Note>Debug mode in widgets is great for development but should be disabled in production</Note>

Learn more about [widget configuration options](/widget/introduction)
