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

# Work with agents

> Use governed agents for everyday questions, advanced investigations, recurring workflows, and shareable artifacts.

Use Bag of Words agents wherever work begins: in the web app, through scheduled and event-driven workflows, in team channels, from Excel, or through the BOW MCP gateway.

## Chat mode

Use **Chat** mode for production work: answer a focused question, investigate an exception, perform advanced analysis, or create an artifact such as a dashboard or document. The agent selects relevant context, runs tools, and shows its work in the conversation.

For challenging work, give the agent the decision, evidence boundary, validation standard, and desired output. It can split independent checks across tools, keep a note as a scratchpad or to-do list, reflect on gaps, and render Mermaid diagrams when relationships are easier to understand visually.

<img src="https://mintcdn.com/bagofwords/u5g_9_tz5l_YoqVI/images/showcase/chat-rca-current.png?fit=max&auto=format&n=u5g_9_tz5l_YoqVI&q=85&s=6b6a30d2f2de49d1f5800334e8a9c865" alt="A production root-cause investigation with parallel tool work, an investigation note, and a rendered Mermaid dependency map" width="2400" height="1350" data-path="images/showcase/chat-rca-current.png" />

## Training mode

Use **Training** mode to teach and improve an agent safely. Ask it to learn connected sources, inspect table grains and joins, reconcile important calculations, clarify ambiguous business rules, and propose a comprehensive instruction set. Proposed changes remain reviewable before they affect Chat mode.

<img src="https://mintcdn.com/bagofwords/u5g_9_tz5l_YoqVI/images/showcase/training-learn-sources-current.png?fit=max&auto=format&n=u5g_9_tz5l_YoqVI&q=85&s=1f80e580152f73aab5efddce32e4f99e" alt="Training mode inspecting Snowflake and Power BI before proposing a comprehensive, reviewable instruction set" width="2400" height="1350" data-path="images/showcase/training-learn-sources-current.png" />

<Note>
  Chat uses approved knowledge to do the work. Training inspects evidence and proposes changes to the knowledge harness. Keep production questions in Chat and agent-improvement work in Training.
</Note>

## Advanced analysis and RCA

For a complex question, describe the decision or incident rather than prescribing every query. The agent can assemble evidence across scoped sources and deliver a structured, defensible conclusion.

For example, a revenue review can combine invoicing, cash collection, budgets, and customer concentration. A production root-cause analysis can correlate deployment history, service logs, metrics, traces, tickets, and database evidence to identify impact, timeline, cause, and prevention actions.

Use **notes** as an investigation scratchpad: record hypotheses, evidence still needed, and next actions while the agent works. For relationships and incident timelines, ask the agent to render a **Mermaid** diagram alongside the written conclusion and dashboard artifacts.

<img src="https://mintcdn.com/bagofwords/u5g_9_tz5l_YoqVI/images/showcase/advanced-analysis-current.png?fit=max&auto=format&n=u5g_9_tz5l_YoqVI&q=85&s=18d4460cba9e2c86e088374396e99381" alt="Advanced financial analysis with a detailed prompt, visible tool steps, validated findings, and recommended actions" width="2400" height="1350" data-path="images/showcase/advanced-analysis-current.png" />

## A strong prompt pattern

Include four things when the result matters:

1. **Goal:** the decision, question, or incident to resolve.
2. **Evidence:** the sources and dimensions to inspect, plus any exclusions.
3. **Validation:** how to reconcile results and what uncertainty to surface.
4. **Deliverable:** the format, level of detail, audience, and next actions.

For example:

> Act as a senior finance analyst. Explain why enterprise ARR growth slowed in Q2 despite higher bookings. Compare plan versus actual by region and segment; separate volume, price, churn, timing, and FX effects; identify the five accounts driving the variance; validate every number against Snowflake and Power BI; and finish with an executive summary and recommended actions.

## Turn work into repeatable workflows

Save and share reports, add results to dashboards, organize work in projects, and schedule recurring tasks. Triggers can start an investigation from an event or webhook. Use channels and the BOW MCP gateway when people need the same governed agents outside the web app.

<CardGroup cols={2}>
  <Card title="Chat with your data" icon="message-square" href="/using-bow/reports">
    Ask questions, analyze evidence, and create artifacts.
  </Card>

  <Card title="Dashboards" icon="layout-dashboard" href="/using-bow/dashboards">
    Assemble and share visual operating views.
  </Card>
</CardGroup>
