7. Aiapplications

AI Applications Overview #

SmartChart abstracts LLM connections as data sources and agent development as datasets, seamlessly integrating AI capabilities into the existing data visualization and business system. You can use AI capabilities in the following scenarios:

  • AI Conversation: Chat directly with LLMs on the homepage for data analysis suggestions and chart configuration generation
  • Agent Development: Wrap LLMs as agent datasets, called within charts for intelligent analysis
  • AI-Assisted Chart Generation: Generate ECharts configurations through conversation
  • AI Data Analysis: Let LLMs directly process query results and provide business insights
  • Approval Flow AI Nodes: Add AI processing nodes in OA approval flows

Architecture Overview #

┌─────────────────────────────────────────────────┐
│                   SmartChart Platform             │
├──────────┬──────────┬──────────┬────────────────┤
│ Homepage │ Graphics │ Dataset  │  OA Workflow    │
│ (chat)   │ (editor) │ (ds)     │  (flow)        │
└────┬─────┴────┬─────┴────┬─────┴───────┬────────┘
     │          │          │             │
     ▼          ▼          ▼             ▼
┌─────────────────────────────────────────────────┐
│              smtgpt LLM Data Source               │
│         (OpenAI compatible / Bailian Agent)       │
└─────────────────────┬───────────────────────────┘
                      │
          ┌───────────┼───────────┐
          ▼           ▼           ▼
     ┌─────────┐ ┌─────────┐ ┌─────────┐
     │ Ollama  │ │ Bailian │ │DeepSeek │ ...
     └─────────┘ └─────────┘ └─────────┘

Key convention: The data source name must be smtgpt. The platform’s AI features automatically recognize this name as the LLM data source.