> ## 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 in Your Workspace

> Ask the assistant about the chart you are already looking at, without leaving your layout.

Click the AI chat button in your workspace to open the assistant beside your widgets. Use it when you are already set up the way you want and just need a second opinion on what is in front of you — the [AI Chat Page](/docs/guide/platform/ai-assistant/AI-chat-page) is the better place for open-ended work where the agent builds things for you.

You can move the chat icon to any corner of the chart for a more comfortable layout.

<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"
/>

## Attach widget context

Use the attachment icon near the message field to pick the widget you want the assistant to work with.

<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"
/>

With a chart attached, the assistant can see:

* The ticker and exchange
* The current timeframe
* The visible chart range
* Active indicators
* Existing drawings

That means you can ask:

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

instead of describing every detail of the chart yourself.

<Note>
  If you have several charts open, attach the exact one you want analyzed.
</Note>

## Threads and context

Each chat is a thread. Keep separate threads for separate topics — one ticker, one script, one workflow per thread — so the context stays relevant.

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

## Stop a response

Responses stream as they are generated, so you can start reading before they finish. **Stop** interrupts generation, and the part that has already been written stays on screen.

## Next step

<Card title="Skills and prompts" icon="wrench" href="/docs/guide/platform/ai-assistant/How-to-work-with-AI-tools">
  Technical Analysis, Indie Scripts, Alerts, Platform Guide, and Risk & Position Sizing — what each skill is for and how to prompt it.
</Card>
