{
    "id": 8,
    "title": "Intelligent investment advisor",
    "description": "An intelligent investment advisor that answers your financial questions using real-time domestic financial data.",
    "canvas_type": "chatbot",
    "dsl": {
          "answer": [],
          "components": {
            "begin": {
              "obj": {
                "component_name": "Begin",
                "params": {
                  "prologue": "Hi there!"
                }
              },
              "downstream": [
                "Answer:NeatLandsWave"
              ],
              "upstream": []
            },
            "WenCai:TenParksOpen": {
              "obj": {
                "component_name": "WenCai",
                "params": {
                  "query_type": "stock",
                  "top_n": 5
                }
              },
              "downstream": [
                "Generate:RottenPianosUnite"
              ],
              "upstream": [
                "Answer:NeatLandsWave"
              ]
            },
            "AkShare:CalmHotelsKnow": {
              "obj": {
                "component_name": "AkShare",
                "params": {
                  "top_n": 10
                }
              },
              "downstream": [
                "Generate:RottenPianosUnite"
              ],
              "upstream": [
                "KeywordExtract:BreezyGoatsRead"
              ]
            },
            "Answer:NeatLandsWave": {
              "obj": {
                "component_name": "Answer",
                "params": {}
              },
              "downstream": [
                "WenCai:TenParksOpen",
                "KeywordExtract:BreezyGoatsRead"
              ],
              "upstream": [
                "begin",
                "Generate:RottenPianosUnite"
              ]
            },
            "Generate:RottenPianosUnite": {
              "obj": {
                "component_name": "Generate",
                "params": {
                  "cite": true,
                  "frequency_penalty": 0.7,
                  "llm_id": "deepseek-chat@DeepSeek",
                  "max_tokens": 256,
                  "message_history_window_size": 0,
                  "parameters": [
                    {
                      "component_id": "WenCai:TenParksOpen",
                      "id": "d35f331b-2787-4ae7-ab81-a7ea15970843",
                      "key": "wencai_input"
                    },
                    {
                      "component_id": "AkShare:CalmHotelsKnow",
                      "id": "36c4db0b-c80d-4119-a2a6-05ed9f7efbc9",
                      "key": "ak_input"
                    }
                  ],
                  "presence_penalty": 0.4,
                  "prompt": "Role: You are a professional financial counseling assistant.\n\nTask: Answer user's question based on content provided by Wencai and AkShare.\n\nNotice:\n- Output no more than 5 news items from AkShare if there's content provided by Wencai.\n- Items from AkShare MUST have a corresponding URL link.\n\n############\nContent provided by Wencai: \n{wencai_input}\n\n################\nContent provided by AkShare: \n{ak_input}",
                  "temperature": 0.1,
                  "top_p": 0.3
                }
              },
              "downstream": [
                "Answer:NeatLandsWave"
              ],
              "upstream": [
                "WenCai:TenParksOpen",
                "AkShare:CalmHotelsKnow"
              ]
            },
            "KeywordExtract:BreezyGoatsRead": {
              "obj": {
                "component_name": "KeywordExtract",
                "params": {
                  "frequencyPenaltyEnabled": true,
                  "frequency_penalty": 0.7,
                  "llm_id": "deepseek-chat@DeepSeek",
                  "maxTokensEnabled": true,
                  "max_tokens": 256,
                  "parameter": "Precise",
                  "presencePenaltyEnabled": true,
                  "presence_penalty": 0.4,
                  "temperature": 0.1,
                  "temperatureEnabled": true,
                  "topPEnabled": true,
                  "top_n": 2,
                  "top_p": 0.3
                }
              },
              "downstream": [
                "AkShare:CalmHotelsKnow"
              ],
              "upstream": [
                "Answer:NeatLandsWave"
              ]
            }
          },
          "graph": {
            "nodes": [
              {
                "data": {
                  "form": {
                    "prologue": "Hi there!"
                  },
                  "label": "Begin",
                  "name": "Opening"
                },
                "dragging": false,
                "height": 44,
                "id": "begin",
                "position": {
                  "x": -521.8118264317484,
                  "y": -27.999467037576665
                },
                "positionAbsolute": {
                  "x": -521.8118264317484,
                  "y": -27.999467037576665
                },
                "selected": false,
                "sourcePosition": "left",
                "targetPosition": "right",
                "type": "beginNode",
                "width": 100
              },
              {
                "data": {
                  "form": {
                    "query_type": "stock",
                    "top_n": 5
                  },
                  "label": "WenCai",
                  "name": "Wencai"
                },
                "dragging": false,
                "height": 44,
                "id": "WenCai:TenParksOpen",
                "position": {
                  "x": -13.030801663267397,
                  "y": -30.557141660610256
                },
                "positionAbsolute": {
                  "x": -13.030801663267397,
                  "y": -30.557141660610256
                },
                "selected": false,
                "sourcePosition": "right",
                "targetPosition": "left",
                "type": "ragNode",
                "width": 200
              },
              {
                "data": {
                  "form": {
                    "top_n": 10
                  },
                  "label": "AkShare",
                  "name": "AKShare"
                },
                "dragging": false,
                "height": 44,
                "id": "AkShare:CalmHotelsKnow",
                "position": {
                  "x": 267.17349571786156,
                  "y": 100.01281266803943
                },
                "positionAbsolute": {
                  "x": 267.17349571786156,
                  "y": 100.01281266803943
                },
                "selected": false,
                "sourcePosition": "right",
                "targetPosition": "left",
                "type": "ragNode",
                "width": 200
              },
              {
                "data": {
                  "form": {},
                  "label": "Answer",
                  "name": "Interact"
                },
                "dragging": false,
                "height": 44,
                "id": "Answer:NeatLandsWave",
                "position": {
                  "x": -304.0612563145512,
                  "y": -29.054278091837944
                },
                "positionAbsolute": {
                  "x": -304.0612563145512,
                  "y": -29.054278091837944
                },
                "selected": false,
                "sourcePosition": "right",
                "targetPosition": "left",
                "type": "logicNode",
                "width": 200
              },
              {
                "data": {
                  "form": {
                    "cite": true,
                    "frequencyPenaltyEnabled": true,
                    "frequency_penalty": 0.7,
                    "llm_id": "deepseek-chat@DeepSeek",
                    "maxTokensEnabled": true,
                    "max_tokens": 256,
                    "message_history_window_size": 0,
                    "parameter": "Precise",
                    "parameters": [
                      {
                        "component_id": "WenCai:TenParksOpen",
                        "id": "d35f331b-2787-4ae7-ab81-a7ea15970843",
                        "key": "wencai_input"
                      },
                      {
                        "component_id": "AkShare:CalmHotelsKnow",
                        "id": "36c4db0b-c80d-4119-a2a6-05ed9f7efbc9",
                        "key": "ak_input"
                      }
                    ],
                    "presencePenaltyEnabled": true,
                    "presence_penalty": 0.4,
                    "prompt": "Role: You are a professional financial counseling assistant.\n\nTask: Answer user's question based on content provided by Wencai and AkShare.\n\nNotice:\n- Output no more than 5 news items from AkShare if there's content provided by Wencai.\n- Items from AkShare MUST have a corresponding URL link.\n\n############\nContent provided by Wencai: \n{wencai_input}\n\n################\nContent provided by AkShare: \n{ak_input}",
                    "temperature": 0.1,
                    "temperatureEnabled": true,
                    "topPEnabled": true,
                    "top_p": 0.3
                  },
                  "label": "Generate",
                  "name": "LLM"
                },
                "dragging": false,
                "height": 170,
                "id": "Generate:RottenPianosUnite",
                "position": {
                  "x": -16.477598988611703,
                  "y": -251.90091743639417
                },
                "positionAbsolute": {
                  "x": -16.477598988611703,
                  "y": -251.90091743639417
                },
                "selected": false,
                "sourcePosition": "right",
                "targetPosition": "left",
                "type": "generateNode",
                "width": 200
              },
              {
                "data": {
                  "form": {
                    "frequencyPenaltyEnabled": true,
                    "frequency_penalty": 0.7,
                    "llm_id": "deepseek-chat@DeepSeek",
                    "maxTokensEnabled": true,
                    "max_tokens": 256,
                    "parameter": "Precise",
                    "presencePenaltyEnabled": true,
                    "presence_penalty": 0.4,
                    "temperature": 0.1,
                    "temperatureEnabled": true,
                    "topPEnabled": true,
                    "top_n": 2,
                    "top_p": 0.3
                  },
                  "label": "KeywordExtract",
                  "name": "Keywords"
                },
                "dragging": false,
                "height": 86,
                "id": "KeywordExtract:BreezyGoatsRead",
                "position": {
                  "x": -17.690374759999543,
                  "y": 80.39964392387697
                },
                "positionAbsolute": {
                  "x": -17.690374759999543,
                  "y": 80.39964392387697
                },
                "selected": false,
                "sourcePosition": "right",
                "targetPosition": "left",
                "type": "keywordNode",
                "width": 200
              },
              {
                "data": {
                  "form": {
                    "text": "Receives the user's financial inquiries and displays the large model's response to financial questions."
                  },
                  "label": "Note",
                  "name": "N: Interact"
                },
                "dragging": false,
                "height": 162,
                "id": "Note:FuzzyPoetsLearn",
                "position": {
                  "x": -296.5982116419186,
                  "y": 38.77567426067935
                },
                "positionAbsolute": {
                  "x": -296.5982116419186,
                  "y": 38.77567426067935
                },
                "resizing": false,
                "selected": false,
                "sourcePosition": "right",
                "style": {
                  "height": 162,
                  "width": 214
                },
                "targetPosition": "left",
                "type": "noteNode",
                "width": 214,
                "dragHandle": ".note-drag-handle"
              },
              {
                "data": {
                  "form": {
                    "text": "Extracts keywords based on the user's financial questions for better retrieval."
                  },
                  "label": "Note",
                  "name": "N: Keywords"
                },
                "dragging": false,
                "height": 155,
                "id": "Note:FlatBagsRun",
                "position": {
                  "x": -14.82895160277127,
                  "y": 186.52508153680787
                },
                "positionAbsolute": {
                  "x": -14.82895160277127,
                  "y": 186.52508153680787
                },
                "resizing": false,
                "selected": false,
                "sourcePosition": "right",
                "style": {
                  "height": 155,
                  "width": 213
                },
                "targetPosition": "left",
                "type": "noteNode",
                "width": 213,
                "dragHandle": ".note-drag-handle"
              },
              {
                "data": {
                  "form": {
                    "text": "Searches on akshare for the latest news about economics based on the keywords and returns the results."
                  },
                  "label": "Note",
                  "name": "N: AKShare"
                },
                "dragging": false,
                "height": 128,
                "id": "Note:WarmClothsSort",
                "position": {
                  "x": 573.7653319987893,
                  "y": 102.64512355369035
                },
                "positionAbsolute": {
                  "x": 573.7653319987893,
                  "y": 102.64512355369035
                },
                "resizing": false,
                "selected": false,
                "sourcePosition": "right",
                "style": {
                  "height": 128,
                  "width": 283
                },
                "targetPosition": "left",
                "type": "noteNode",
                "width": 283,
                "dragHandle": ".note-drag-handle"
              },
              {
                "data": {
                  "form": {
                    "text": "Searches by Wencai to select stocks that satisfy user mentioned conditions."
                  },
                  "label": "Note",
                  "name": "N: Wencai"
                },
                "dragging": false,
                "height": 128,
                "id": "Note:TiredReadersWash",
                "position": {
                  "x": 571.4274792499875,
                  "y": -37.07105560150117
                },
                "positionAbsolute": {
                  "x": 571.4274792499875,
                  "y": -37.07105560150117
                },
                "resizing": false,
                "selected": false,
                "sourcePosition": "right",
                "style": {
                  "height": 128,
                  "width": 285
                },
                "targetPosition": "left",
                "type": "noteNode",
                "width": 285,
                "dragHandle": ".note-drag-handle"
              },
              {
                "data": {
                  "form": {
                    "text": "The large model answers the user's medical health questions based on the searched and retrieved content."
                  },
                  "label": "Note",
                  "name": "N: LLM"
                },
                "dragging": false,
                "height": 163,
                "id": "Note:TameBoatsType",
                "position": {
                  "x": -7.849538042569293,
                  "y": -427.90526378748035
                },
                "positionAbsolute": {
                  "x": -7.849538042569293,
                  "y": -427.90526378748035
                },
                "resizing": false,
                "selected": false,
                "sourcePosition": "right",
                "style": {
                  "height": 163,
                  "width": 212
                },
                "targetPosition": "left",
                "type": "noteNode",
                "width": 212,
                "dragHandle": ".note-drag-handle"
              }
            ],
            "edges": [
              {
                "id": "reactflow__edge-begin-Answer:NeatLandsWavec",
                "markerEnd": "logo",
                "source": "begin",
                "sourceHandle": null,
                "style": {
                  "stroke": "rgb(202 197 245)",
                  "strokeWidth": 2
                },
                "target": "Answer:NeatLandsWave",
                "targetHandle": "c",
                "type": "buttonEdge"
              },
              {
                "id": "reactflow__edge-Answer:NeatLandsWaveb-WenCai:TenParksOpenc",
                "markerEnd": "logo",
                "source": "Answer:NeatLandsWave",
                "sourceHandle": "b",
                "style": {
                  "stroke": "rgb(202 197 245)",
                  "strokeWidth": 2
                },
                "target": "WenCai:TenParksOpen",
                "targetHandle": "c",
                "type": "buttonEdge"
              },
              {
                "id": "reactflow__edge-KeywordExtract:BreezyGoatsReadb-AkShare:CalmHotelsKnowc",
                "markerEnd": "logo",
                "source": "KeywordExtract:BreezyGoatsRead",
                "sourceHandle": "b",
                "style": {
                  "stroke": "rgb(202 197 245)",
                  "strokeWidth": 2
                },
                "target": "AkShare:CalmHotelsKnow",
                "targetHandle": "c",
                "type": "buttonEdge"
              },
              {
                "id": "reactflow__edge-WenCai:TenParksOpenb-Generate:RottenPianosUniteb",
                "markerEnd": "logo",
                "source": "WenCai:TenParksOpen",
                "sourceHandle": "b",
                "style": {
                  "stroke": "rgb(202 197 245)",
                  "strokeWidth": 2
                },
                "target": "Generate:RottenPianosUnite",
                "targetHandle": "b",
                "type": "buttonEdge"
              },
              {
                "id": "reactflow__edge-AkShare:CalmHotelsKnowb-Generate:RottenPianosUniteb",
                "markerEnd": "logo",
                "source": "AkShare:CalmHotelsKnow",
                "sourceHandle": "b",
                "style": {
                  "stroke": "rgb(202 197 245)",
                  "strokeWidth": 2
                },
                "target": "Generate:RottenPianosUnite",
                "targetHandle": "b",
                "type": "buttonEdge"
              },
              {
                "id": "reactflow__edge-Generate:RottenPianosUnitec-Answer:NeatLandsWavec",
                "markerEnd": "logo",
                "source": "Generate:RottenPianosUnite",
                "sourceHandle": "c",
                "style": {
                  "stroke": "rgb(202 197 245)",
                  "strokeWidth": 2
                },
                "target": "Answer:NeatLandsWave",
                "targetHandle": "c",
                "type": "buttonEdge"
              },
              {
                "id": "reactflow__edge-Answer:NeatLandsWaveb-KeywordExtract:BreezyGoatsReadc",
                "markerEnd": "logo",
                "source": "Answer:NeatLandsWave",
                "sourceHandle": "b",
                "style": {
                  "stroke": "rgb(202 197 245)",
                  "strokeWidth": 2
                },
                "target": "KeywordExtract:BreezyGoatsRead",
                "targetHandle": "c",
                "type": "buttonEdge"
              }
            ]
          },
          "history": [],
          "messages": [],
          "path": [],
          "reference": []
        },
    "avatar": "data:image/png;base64,[encoded data, 26920 characters]"
}
