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

# AI Assistant Overview

The TakeProfit AI Assistant helps you analyze charts, work with market context, create and debug Indie® scripts, and find platform guidance directly from your workspace.

The assistant can use the context of attached widgets, including the current ticker, exchange, timeframe, visible chart range, indicators, drawings, and other relevant chart state.

<Note>
  The AI Assistant replies in English, regardless of the language of your prompt. For best results, write short and specific prompts in English.
</Note>

## What the AI Assistant can help with

Use the AI Assistant when you need a structured explanation, a second opinion, or help with a platform workflow.

It can help you:

* Analyze chart structure, indicators, patterns, and key levels
* Review possible bullish and bearish scenarios
* Work with Indie® scripts
* Search platform documentation and how-to guides
* Understand trading concepts and platform features
* Estimate position size and risk parameters

<Warning>
  The AI Assistant does not provide guaranteed predictions or direct financial advice. It does not give direct commands such as “buy” or “sell”. Market-related answers are structured as conditional scenarios.
</Warning>

## Quick start

<Steps>
  <Step title="Open your workspace">
    Go to the TakeProfit platform and open the workspace you want to use.
  </Step>

  <Step title="Open the relevant chart or widget">
    Select the ticker, timeframe, script, or platform area you want to work with.
  </Step>

  <Step title="Open the AI Assistant">
    Click the AI chat button in your workspace.
  </Step>

  <Step title="Attach widget context">
    Use the attachment icon near the message field and select the widget you want the assistant to use.
  </Step>

  <Step title="Choose a tool or keep Auto mode">
    Leave tools in Auto mode or select a specific tool such as Technical Analysis, Indie Scripts, Platform Guide, or Risk & Position Sizing.
  </Step>

  <Step title="Send a specific prompt">
    Ask what you want the assistant to analyze, explain, calculate, or generate.
  </Step>
</Steps>

## Attach widget context

<video
  autoPlay
  muted
  loop
  playsInline
  className="w-full rounded-2xl"
  style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
  src="https://mintcdn.com/takeprofit-a5dc0462/67XMQdOAlONNWB1u/images/guide/platform/AI/9.3.2_Add_Context.mp4?fit=max&auto=format&n=67XMQdOAlONNWB1u&q=85&s=4dd47a8847ac2f3fd8922ef537945be7"
  data-path="images/guide/platform/AI/9.3.2_Add_Context.mp4"
/>

For chart analysis, attach the chart widget before sending your prompt.

When a chart is attached, the assistant can use:

* Ticker and exchange
* Current timeframe
* Visible chart range
* Active indicators
* Existing drawings
* Current chart state

<Note>
  You can move the AI chat icon to any corner of the chart for easier access and a more comfortable workspace layout.
</Note>

<video
  autoPlay
  muted
  loop
  playsInline
  className="w-full rounded-2xl"
  style={{
border: "1.9px solid rgba(179, 200, 224, 0.08)",
objectFit: "fill",
display: "block"
}}
  src="https://mintcdn.com/takeprofit-a5dc0462/sFoevWM37x_HuoUo/images/guide/platform/AI/9.2_AI_Snapping.mp4?fit=max&auto=format&n=sFoevWM37x_HuoUo&q=85&s=4bc4a4d1fd728e695f489eaa2dcd34c9"
  data-path="images/guide/platform/AI/9.2_AI_Snapping.mp4"
/>

This allows you to ask:

```text theme={null}
Analyze the current chart structure and key levels.
```

Instead of manually describing every chart detail.

<Note>
  If you have several charts open, select the exact chart you want the assistant to analyze.
</Note>

## Example prompts

### Chart analysis

```text theme={null}
Analyze the current trend structure and key support and resistance levels.
```

```text theme={null}
Is this move more likely a breakout continuation or a failed breakout? Give confirmation and invalidation levels.
```

```text theme={null}
Find the main patterns and key levels on this chart.
```

### Indie® scripts

```text theme={null}
Write an RSI indicator with divergence detection and alerts.
```

```text theme={null}
This Indie script does not compile. Explain the error, fix the code, and keep the original logic unchanged.
```

```text theme={null}
Convert this Pine Script idea to Indie.
```

### Platform help

```text theme={null}
How do I create a webhook alert?
```

```text theme={null}
Where do I save a chart template?
```

```text theme={null}
How do I share a chart with annotations?
```

### Risk and position sizing

```text theme={null}
Calculate position size for a $10,000 account with 1% risk and a stop-loss 2.5% away.
```

```text theme={null}
Explain how to size this trade if my invalidation level is below the recent swing low.
```

## Threads and context usage

Each AI chat is organized as a thread.

Use separate threads for separate topics:

* One thread for one ticker analysis
* One thread for one Indie® script
* One thread for one platform workflow
* One thread for one risk calculation

The assistant shows context usage below the message field. When the context is almost full, start a new thread and attach the relevant widget again.

## Stop a response

AI responses are streamed while they are generated.

You can start reading before the full response is complete.

Use **Stop** to interrupt the current generation. The part of the answer that has already been generated remains visible.

## Request limit

The AI Assistant currently allows up to **5 requests per minute** per user.

This limit applies across all threads.

## Next step

<Card title="How to Work with AI Tools" icon="wrench" href="/guide/platform/ai-assistant/How-to-work-with-AI-tools">
  Learn how to use Technical Analysis, Indie Scripts, Platform Guide, and Risk & Position Sizing tools.
</Card>
