AutomationFlowsGeneral › Mypet Analytics - Basic Analysis Workflow

Mypet Analytics - Basic Analysis Workflow

MyPet Analytics - Basic Analysis Workflow. Uses n8n-nodes-mypet-analytics, n8n-nodes-mypet-stocks, emailSend, writeFile. Manual trigger; 5 nodes.

Manual trigger★★☆☆☆ complexity5 nodesN8N Nodes Mypet AnalyticsN8N Nodes Mypet StocksEmail SendWrite File
General Trigger: Manual Nodes: 5 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "MyPet Analytics - Basic Analysis Workflow",
  "nodes": [
    {
      "parameters": {
        "resource": "tradingAnalysis",
        "operation": "profitLossAnalysis",
        "dataSource": "input",
        "timePeriod": "30d",
        "includeVisualization": true,
        "generateReport": true
      },
      "id": "analytics-node",
      "name": "MyPet Analytics",
      "type": "n8n-nodes-mypet-analytics.myPetAnalytics",
      "typeVersion": 1,
      "position": [
        740,
        240
      ]
    },
    {
      "parameters": {
        "resource": "orders",
        "operation": "queryTradeOrders",
        "accountId": "={{ $json.accountId }}",
        "startTime": "2025-01-01",
        "endTime": "2025-01-31"
      },
      "id": "mypet-stocks-node",
      "name": "MyPet Stocks",
      "type": "n8n-nodes-mypet-stocks.myPetStocks",
      "typeVersion": 1,
      "position": [
        520,
        240
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "risk-check",
              "leftValue": "={{ $json.analysis.summary.profitFactor }}",
              "rightValue": 1,
              "operator": {
                "type": "number",
                "operation": "lt"
              }
            }
          ],
          "combinator": "and"
        }
      },
      "id": "risk-check-if",
      "name": "Risk Check",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        960,
        240
      ]
    },
    {
      "parameters": {
        "subject": "Risk Alert: Low Profit Factor Detected",
        "message": "=Trading analysis shows profit factor of {{ $json.analysis.summary.profitFactor }}, which is below 1.0.\n\nKey Metrics:\n- Total Trades: {{ $json.analysis.summary.totalTrades }}\n- Win Rate: {{ $json.analysis.summary.winRate }}%\n- Total Profit: {{ $json.analysis.summary.totalProfit }}\n\nPlease review your trading strategy.",
        "options": {}
      },
      "id": "send-alert-email",
      "name": "Send Alert Email",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2,
      "position": [
        1180,
        140
      ]
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=trading-analysis-{{ $now.format('YYYY-MM-DD') }}.json",
        "fileContent": "={{ JSON.stringify($json, null, 2) }}",
        "options": {}
      },
      "id": "save-report",
      "name": "Save Report",
      "type": "n8n-nodes-base.writeFile",
      "typeVersion": 1,
      "position": [
        1180,
        340
      ]
    }
  ],
  "connections": {
    "MyPet Stocks": {
      "main": [
        [
          {
            "node": "MyPet Analytics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MyPet Analytics": {
      "main": [
        [
          {
            "node": "Risk Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Check": {
      "main": [
        [
          {
            "node": "Send Alert Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Save Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [
    {
      "createdAt": "2025-01-22T10:00:00.000Z",
      "updatedAt": "2025-01-22T10:00:00.000Z",
      "id": "analytics",
      "name": "analytics"
    }
  ],
  "triggerCount": 0,
  "updatedAt": "2025-01-22T10:00:00.000Z",
  "versionId": "1"
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

MyPet Analytics - Basic Analysis Workflow. Uses n8n-nodes-mypet-analytics, n8n-nodes-mypet-stocks, emailSend, writeFile. Manual trigger; 5 nodes.

Source: https://github.com/yingcaihuang/n8n-nodes-mypet-Analysis/blob/353cc4cfd5731410dc263a4265bc7d6b6a8decab/examples/basic-analysis-workflow.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

> ⚠️ Notice: > This workflow uses the HTML to Docx node from customjs.space, which requires a self-hosted n8n instance and a CustomJS API key.

Email Send, @Custom Js/N8N Nodes Pdf Toolkit
General

Community Node Disclaimer: This workflow uses KlickTipp community nodes.

N8N Nodes Klicktipp, Email Send
General

If Set. Manual trigger; 10 nodes.

General

Apify. Uses httpRequest, stickyNote. Manual trigger; 9 nodes.

HTTP Request
General

Retention Actions. Uses emailSend, todoist. Webhook trigger; 7 nodes.

Email Send, Todoist