Charts and Diagrams in AgentFlow
Learn more about the charts that AgentFlow can display in conversations and example prompts that can produce them.
AgentFlow contextually displays charts, graphs, or diagrams in a conversation when information is easier to understand visually than through text. These contextual visualizations help you identify patterns, compare results, and explore relationships more efficiently.
The following types of charts are supported in AgentFlow:
Bar chart
Use a bar chart to compare values across multiple categories.
Line chart
Use a line chart when to see how a metric changes over a period of time.
Donut chart
Use a donut chart when to understand how a total is distributed across different categories.
Gauge chart
Use a gauge chart to see how a single metric is performing against a defined target or threshold.
Graph chart
Use a graph chart to explore connections and relationships between entities.
Set overlap chart
Use a set overlap chart to understand how records are distributed across overlapping sets.
Diagrams
AgentFlow displays diagrams such as relationship maps, flowcharts, and timelines to help you visualize connections and processes in a conversation.
Show supported diagram types
| Type | Description |
|---|---|
flowchart | Shows a process, pipeline, or decision tree as a series of connected steps. |
sequenceDiagram | Shows the step-by-step interactions between systems or components over time. |
erDiagram | Shows a data model and the relationships between entities. |
stateDiagram-v2 | Shows a state machine or lifecycle, including the transitions between states. |
classDiagram | Shows the structure of objects or schemas and how they relate to each other. |
mindmap | Shows a topic broken down into a hierarchy of related ideas. |
gantt | Shows a project timeline as a schedule of tasks. |
timeline | Shows a sequence of events in chronological order. |
quadrantChart | Shows items plotted across two dimensions in a 2x2 matrix, useful for prioritization. |
journey | Shows the steps and experience a user goes through to complete a task. |
sankey | Shows how a quantity, such as data or flow volume, is distributed across categories. |
Use the following controls to interact with a diagram:
-
Expand (
): Opens the diagram in a full-screen view with pan and zoom controls.
-
Diagram (
) / Code (
): Toggle the view between a rendered diagram (default view) and diagram code.
-
PNG (
): Download the diagram as a PNG image.
-
SVG (
): Download the diagram as an SVG image.
-
Copy (
): Copy the diagram code to your clipboard.
Example prompt: Build a merge plan for all duplicate locations. Before you execute, show the workflow as a flowchart. Include the steps from duplicate detection through evaluation to merge execution.