🤖

IP地址查询并展示

通过IP地址查询结果,进行html页面的编辑,然后再dify上直接展示html页面内容,而不是带html标签的文本内容

⬡ 16 节点 ↓ 10 下载 ⚙ workflow ⭐ 90/100 2026-05-28

工作流图谱

YAML 源码

app:
  description: 通过IP地址查询结果,进行html页面的编辑,然后再dify上直接展示html页面内容,而不是带html标签的文本内容
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: workflow
  name: IP地址查询并展示
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/volcengine_maas:0.0.7@f8e44422cfa5b9a6ac1f2d3b43ef1069868efdad1e5cec2590de3f53ceac37b0
kind: app
version: 0.1.5
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        audio_file_size_limit: 500
        batch_count_limit: 50
        file_size_limit: 1024
        image_file_size_limit: 1000
        video_file_size_limit: 10000
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 3
    opening_statement: ''
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: parameter-extractor
        targetType: if-else
      id: 1742971637089-source-1742975488354-target
      source: '1742971637089'
      sourceHandle: source
      target: '1742975488354'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: if-else
        targetType: code
      id: 1742975488354-true-1742971951636-target
      source: '1742975488354'
      sourceHandle: 'true'
      target: '1742971951636'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: if-else
        targetType: template-transform
      id: 1742975488354-false-1742973316000-target
      source: '1742975488354'
      sourceHandle: 'false'
      target: '1742973316000'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: code
        targetType: variable-aggregator
      id: 1742971951636-source-1742975844503-target
      source: '1742971951636'
      sourceHandle: source
      target: '1742975844503'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: variable-aggregator
        targetType: end
      id: 1742975844503-source-1742971566530-target
      source: '1742975844503'
      sourceHandle: source
      target: '1742971566530'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: template-transform
        targetType: variable-aggregator
      id: 1742973316000-source-1742975844503-target
      source: '1742973316000'
      sourceHandle: source
      target: '1742975844503'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: start
        targetType: if-else
      id: 1742971513638-source-1742976553035-target
      source: '1742971513638'
      sourceHandle: source
      target: '1742976553035'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: if-else
        targetType: tool
      id: 1742976553035-true-1742971521243-target
      source: '1742976553035'
      sourceHandle: 'true'
      target: '1742971521243'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: if-else
        targetType: http-request
      id: 1742976553035-false-1742976403171-target
      source: '1742976553035'
      sourceHandle: 'false'
      target: '1742976403171'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: tool
        targetType: variable-aggregator
      id: 1742971521243-source-1742982988677-target
      source: '1742971521243'
      sourceHandle: source
      target: '1742982988677'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: variable-aggregator
        targetType: parameter-extractor
      id: 1742982988677-source-1742971637089-target
      source: '1742982988677'
      sourceHandle: source
      target: '1742971637089'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: http-request
        targetType: variable-aggregator
      id: 1742976403171-source-1742982988677-target
      source: '1742976403171'
      sourceHandle: source
      target: '1742982988677'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: 开始
        type: start
        variables:
        - label: 请输入ipv4地址
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: ip
        - label: 选择查询方式
          max_length: 48
          options:
          - 工具
          - HTTP请求
          required: true
          type: select
          variable: type
      height: 115
      id: '1742971513638'
      position:
        x: -93
        y: 294
      positionAbsolute:
        x: -93
        y: 294
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        is_team_authorization: true
        output_schema: null
        paramSchemas:
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: The IP address to lookup
            ja_JP: The IP address to lookup
            pt_BR: The IP address to lookup
            zh_Hans: The IP address to lookup
          label:
            en_US: ip
            ja_JP: ip
            pt_BR: ip
            zh_Hans: ip
          llm_description: The IP address to lookup
          max: null
          min: null
          name: ip
          options: []
          placeholder:
            en_US: The IP address to lookup
            ja_JP: The IP address to lookup
            pt_BR: The IP address to lookup
            zh_Hans: The IP address to lookup
          precision: null
          required: true
          scope: null
          template: null
          type: string
        params:
          ip: ''
        provider_id: 4dd48333-2d36-4498-aa66-48cfedafa8b6
        provider_name: 查询ip归属地
        provider_type: api
        selected: false
        title: getIpLocation
        tool_configurations: {}
        tool_label: getIpLocation
        tool_name: getIpLocation
        tool_parameters:
          ip:
            type: mixed
            value: '{{#1742971513638.ip#}}'
        type: tool
      height: 53
      id: '1742971521243'
      position:
        x: 455
        y: 214.851301645003
      positionAbsolute:
        x: 455
        y: 214.851301645003
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        outputs:
        - value_selector:
          - '1742975844503'
          - output
          variable: result
        selected: false
        title: 结束
        type: end
      height: 89
      id: '1742971566530'
      position:
        x: 2161
        y: 363
      positionAbsolute:
        x: 2161
        y: 363
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        instruction: 从{{#1742982988677.output#}}中获取不同属性的值
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: DeepSeek-V3
          provider: langgenius/volcengine_maas/volcengine_maas
        parameters:
        - description: 获取addr属性的值
          name: addr
          required: false
          type: string
        - description: 获取country属性的值
          name: country
          required: false
          type: string
        - description: 获取area属性的值
          name: area
          required: false
          type: string
        - description: 获取provider属性的值
          name: provider
          required: false
          type: string
        query:
        - '1742982988677'
        - output
        reasoning_mode: prompt
        selected: false
        title: 参数提取器
        type: parameter-extractor
        variables: []
        vision:
          enabled: false
      height: 89
      id: '1742971637089'
      position:
        x: 1028
        y: 311
      positionAbsolute:
        x: 1028
        y: 311
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        code: "def main(addr: str, area: str, country: str, provider: str) -> dict:\n\
          \    page_content = f\"\"\"<div style=\"max-width: 800px; margin: 20px auto;\
          \ padding: 20px; background-color: white; border-radius: 8px; box-shadow:\
          \ 0 2px 10px rgba(0,0,0,0.1);\">\n        <h1 style=\"color: #2c3e50; border-bottom:\
          \ 2px solid #3498db; padding-bottom: 10px;\">IP查询结果</h1>\n        <p>下面展示查询信息</p>\n\
          \        <div style=\"background-color: #f9f9f9; border-left: 4px solid\
          \ #3498db; padding: 15px; margin: 15px 0; border-radius: 0 4px 4px 0;\"\
          >\n            <h2>IP: {addr}</...(过长已截断)