Skip to content

Display Dialog

Overview

Display a dialog on the client side, where you can display text, markdown, html, etc.

Parameter Configuration

ParameterDescription
Dialog TitleDisplay the title of the dialog. You can use expressions to obtain context variables to specify dynamic content
Dialog Distance from TopDisplay the distance of the dialog from the top. You can use expressions to obtain context variables to specify dynamic content
Dialog WidthDisplay the width of the dialog. You can use expressions to obtain context variables to specify dynamic content
Dialog HeightDisplay the height of the dialog. You can use expressions to obtain context variables to specify dynamic content
Display as Modal WindowWhether the displayed dialog is presented as a modal
Display Print ButtonWhether the displayed dialog shows a print button. The print button can print the content of the dialog
Output FormatDisplay method of dialog content. Text, Markdown, HTML, JSON, echart chart, mermaid chart
Output ContentThe content displayed in the dialog. You can use expressions to obtain context variables to specify dynamic content

Usage Instructions

  • Dialog height and width

    • The set dynamic content needs to have size units. For the unit range, please refer to
  • When the output format is JSON, if the output content is an object structure, it will be rendered directly according to the object structure, supporting hierarchical folding and unfolding

  • Output format as script chart - The returned data must be a JSON string - Return example json { "series": [ { "data": [ 820, 932, 901, 934, 1290, 1330, 1320 ], "smooth": true, "type": "line" } ], "tooltip": { "trigger": "axis" }, "xAxis": { "data": [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" ], "type": "category" }, "yAxis": { "type": "value" } }

Usage Scenarios

  • Output automation execution results for debugging or prompting users
  • Generate dynamic HTML pages based on templates
  • Generate dynamic Markdown content based on templates
  • Generate dynamic Echarts statistical charts based on templates
  • Generate dynamic mermaid charts based on templates

Usage Examples

Output Text

Notes

If the output data is of non-string type, the expression engine will call the object's toString method to convert it to a string for output

Output Markdown

Output Html

Output Script Chart

Script Chart

In this mode, the output content must be a JSON string

Output Mermaid Chart

Script Chart

In this mode, the output content must be a string. For writing format, please refer to