> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/en/work/km/finance.md).

# Financial Analysis Assistant

Financial analysis assistant example: use Canvas to generate interactive financial charts such as revenue and gross margin from natural language, replacing manual Excel reports.

Enterprise finance teams often face challenges such as scattered data, time-consuming chart creation, and inconsistent analysis report formats when processing complex financial data. Traditional financial analysis tools typically require tedious manual chart creation, which is inefficient and makes it difficult to respond quickly to management's demand for real-time financial insights. Now, you can use MaiAgent's Canvas visualization technology to build a dedicated enterprise financial AI analysis assistant and achieve intelligent financial data visualization and analysis!

## Use Case: Build an Enterprise Financial Data Visualization Agent <a href="#use-case-build-financial-data-visualization-assistant" id="use-case-build-financial-data-visualization-assistant"></a>

Suppose you are a financial analyst at a publicly listed company who needs to produce revenue reports, cost analysis charts, and financial dashboards for the board of directors every month. In the past, you might have spent hours manually creating various charts in Excel. This was not only time-consuming and labor-intensive, but chart formats were often inconsistent due to manual work, affecting the professionalism of your reports.

For example, when the CEO asks you for a "gross margin trend chart for all product lines over the past 12 months" just 30 minutes before a board meeting, the traditional approach requires you to urgently dig through data and recreate charts, often making it impossible to finish before the meeting.

Now, with MaiAgent Canvas technology, you simply describe your needs to the Agent in natural language, and the system immediately generates professional interactive financial charts. This not only greatly improves work efficiency but also ensures the accuracy and consistency of charts, letting you focus on higher-value financial analysis insights!

## Workflow <a href="#application-workflow" id="application-workflow"></a>

### 1. Create a Financial Data Analysis Agent <a href="#step1-create-financial-data-analysis-assistant" id="step1-create-financial-data-analysis-assistant"></a>

Enter the Agent name.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-2d22e1646d3e7782b676a1ba506988ce0f1971e8%2F%E6%88%AA%E5%9C%96%202025-06-22%20%E4%B8%8B%E5%8D%882.46.59.png?alt=media" alt=""><figcaption></figcaption></figure>

Select RAG and a language model, **and enable Canvas mode**.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-43c5ce3def1158230fcc188b9b917887ce363f51%2F%E6%88%AA%E5%9C%96%202025-05-31%20%E4%B8%8B%E5%8D%885.59.48.png?alt=media" alt=""><figcaption><p>Select Agent as the reply mode, then enable Canvas mode under Agent mode</p></figcaption></figure>

When selecting the reply mode, choose "Agent mode" and enable "Canvas mode". The role instruction can be set as follows:

```
## Role Setting

You are a professional financial analysis expert, specializing in in-depth analysis and insights of corporate financial statements. Your task is to help users understand a specific company's financial condition, operating performance, and future potential.

## Core Task

Search the knowledge base for financial data to draw charts, and call tools that use React to produce dynamic financial analysis reports.
Whenever a user asks for a report, call the canvas tool to draw the relevant charts.
Present content with charts as much as possible.

## Output Requirements

1.  **Structured report:** Present analysis results as a clear, well-organized report, including:
    *   **Summary:** A brief overview of overall financial performance.
    *   **Key findings:** List the most important financial highlights and issues.
    *   **Detailed analysis:** Explain the calculation results, trend analysis, and interpretation of each financial metric.
    *   **Chart visualization:** You **must** use the canvas tool to draw relevant charts to visualize data trends and comparisons.
    *   **Conclusions and recommendations:** Based on all the analysis, provide specific conclusions and actionable recommendations.
2.  **Chart visualization:**
    *   Use a variety of chart types, for example:
        *   Line chart of revenue and net income trends
        *   Bar chart comparing profitability ratios
        *   Pie chart of asset and liability structure (showing the proportion of assets and liabilities)
        *   Cash flow trend chart (operating, investing, and financing cash flows)
        *   Annual trend charts of key financial ratios (such as ROE and ROA)
3.  **Language and tone:** Respond in Traditional Chinese, with a professional, objective, and precise tone, avoiding vague wording.
4.  **Interactivity:** If data is incomplete or needs further clarification, proactively ask questions to obtain more information, for example: "Please provide more detailed cash flow statement data so that I can perform a more comprehensive analysis."

```

### 2. Upload the Financial Data Knowledge Base <a href="#step2-upload-financial-knowledge-base" id="step2-upload-financial-knowledge-base"></a>

Upload your company's financial data files, including:

* Monthly/quarterly income statements
* Balance sheets
* Cash flow statements
* Budget and actual expenditure data by department
* Product line revenue data
* Historical financial reports

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-8c81c1a664337e33560fcf9211e1e691f55ec3a3%2F%E6%88%AA%E5%9C%96%202025-06-22%20%E4%B8%8B%E5%8D%883.02.10.png?alt=media" alt=""><figcaption></figcaption></figure>

### 3. Put the Agent into Use - Canvas Visualization <a href="#step3-ai-agent-go-live-canvas-visualization" id="step3-ai-agent-go-live-canvas-visualization"></a>

#### Real-Time Chart Generation <a href="#realtime-chart-generation" id="realtime-chart-generation"></a>

When you need to create a financial chart, simply make a request to the Agent. The system automatically decides and uses Canvas technology to generate the appropriate visual content:

**Example 1: Revenue trend analysis**\
Input: "Create a revenue trend chart for each month of 2024"\
→ The Agent uses **React Canvas** to generate an interactive multi-line trend chart

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-b0eb916c1668428be6a7e2da634d7e7af76a65b3%2F%E6%88%AA%E5%9C%96%202025-06-22%20%E4%B8%8B%E5%8D%883.14.33.png?alt=media" alt=""><figcaption></figcaption></figure>

**Example 2: Cost structure analysis**\
Input: "Produce a pie chart of the cost share of each department"\
→ The Agent uses **SVG Canvas** to generate a professional vector pie chart

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-9c61987565791e69f1e14f393bea38feeb00d0db%2F%E6%88%AA%E5%9C%96%202025-06-22%20%E4%B8%8B%E5%8D%883.18.17.png?alt=media" alt=""><figcaption></figcaption></figure>

**Example 3: Financial dashboard**\
Input: "Build a financial performance monitoring dashboard for this quarter"\
→ The Agent uses **HTML/React Canvas** to generate a complete interactive dashboard

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-3627c918f4460f94b2c13f54cff8d36b8f5d0456%2F%E6%88%AA%E5%9C%96%202025-06-22%20%E4%B8%8B%E5%8D%885.23.34.png?alt=media" alt=""><figcaption></figcaption></figure>

**Example 4: Financial approval process**\
Input: "Create an expense reimbursement approval flowchart"\
→ The Agent uses **Mermaid Canvas** to generate a clear flowchart

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-7c8fc18b87252de072dd771ac34cefe3d47b1f27%2F%E6%88%AA%E5%9C%96%202025-06-22%20%E4%B8%8B%E5%8D%885.29.44.png?alt=media" alt=""><figcaption></figcaption></figure>

#### Demo Video <a href="#demo-video" id="demo-video"></a>

{% embed url="<https://drive.google.com/file/d/1JAGb7n-kPM1jGcq1QWwjluSXfUUrljre/view?usp=sharing>" %}

### 4. Canvas Advantages in Financial Applications <a href="#step4-canvas-advantages-in-financial-use" id="step4-canvas-advantages-in-financial-use"></a>

#### 🚀 Efficiency Boost <a href="#efficiency-boost" id="efficiency-boost"></a>

* **Instant generation**: From request to finished chart in just 30 seconds
* **Consistent formatting**: All charts follow your corporate visual identity standards
* **No manual work**: Create complex charts with natural language

#### 📊 Professional Quality <a href="#professional-quality" id="professional-quality"></a>

* **Interactive features**: Supports data filtering and time range adjustment
* **Responsive design**: Adapts to various screen sizes and output formats
* **Vector graphics**: The SVG format ensures clarity for printing and projection

#### 🔄 Flexible Adjustment <a href="#flexible-adjustment" id="flexible-adjustment"></a>

* **Instant edits**: Adjust chart styles and data ranges immediately
* **Multiple output formats**: Produce different visualization formats from the same data
* **Customization**: Adjust the presentation to different usage scenarios

#### 💼 Enterprise Integration <a href="#enterprise-integration" id="enterprise-integration"></a>

* **Brand consistency**: Integrates your corporate colors and font standards
* **Localization support**: Supports Taiwan accounting standards and currency formats
* **Security**: Financial data is processed locally, ensuring information security

With MaiAgent Canvas technology, finance teams can not only greatly improve work efficiency but also devote their time to more valuable financial analysis and strategic planning, truly achieving the goal of financial digital transformation!

**Try the financial data analysis assistant today, and make your financial reports more than numbers — make them visual insights!**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/en/work/km/finance.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
