Summary
The summary action node stores a markdown summary on the workflow run summary. Viewers open it from the workflow run page with View summary.
Each successful run of the node replaces the current summary. Port trims leading and trailing whitespace before saving. The trimmed text can be at most 10,000 characters, the same limit as the update workflow run API.
Add the node in the builder
- Open the workflow in the workflow builder.
- Click the + button on the node you want to continue from, or click Add node.
- Under Core actions, select Summary.
- Select the new node to open its form and enter the markdown summary.
Configuration
| Field | Type | Description |
|---|---|---|
type | "SUMMARY" | Required. Must be "SUMMARY" |
summary | string | Required. Markdown text to store on the run. Supports JQ expressions in {{ }}. The evaluated text is trimmed and can be at most 10,000 characters. Organization secrets are not available in this field. |
onFailure | 'continue' | 'terminate' | What happens if writing the summary fails. Default: 'continue'. |
timeoutMinutes | number | Optional node timeout in minutes. See node timeout. |
The node also supports the shared action node fields such as title, description, variables, and links.
Basic example
Write a deployment summary from trigger outputs:
{
"identifier": "write-summary",
"title": "Write run summary",
"config": {
"type": "SUMMARY",
"summary": "## Deployment\n\nService **{{ .outputs.trigger.service }}** deployed to **{{ .outputs.trigger.environment }}**."
}
}
Replace trigger with your trigger node's identifier. See workflow run context for other values you can reference.
Multiple summary nodes
A workflow can include more than one summary node. Each successful run overwrites the previous summary, so the last summary node that completes determines what viewers see on the run page.
When to use the API instead
Use a webhook node that calls the update workflow run API when an external system must set the summary, or when you already use that pattern.
Examples
Summary in the middle of a run
This workflow writes a progress summary after the trigger and before the deployment request. The summary reads the trigger inputs directly, so viewers see the deployment details while the run is still in progress.
Workflow example (click to expand)
{
"identifier": "deploy-service-with-progress-summary",
"title": "Deploy service with progress summary",
"nodes": [
{
"identifier": "trigger",
"title": "Request deployment",
"config": {
"type": "SELF_SERVE_TRIGGER",
"userInputs": {
"properties": {
"service": {
"type": "string",
"title": "Service"
},
"environment": {
"type": "string",
"title": "Environment",
"enum": ["staging", "production"]
},
"version": {
"type": "string",
"title": "Version"
}
},
"required": ["service", "environment", "version"]
}
}
},
{
"identifier": "progress-summary",
"title": "Write progress summary",
"config": {
"type": "SUMMARY",
"summary": "## Deployment in progress\n\nDeploying **{{ .outputs.trigger.service }}** version `{{ .outputs.trigger.version }}` to **{{ .outputs.trigger.environment }}**."
}
},
{
"identifier": "deploy",
"title": "Trigger deployment",
"config": {
"type": "WEBHOOK",
"url": "https://api.example.com/deployments",
"method": "POST",
"body": {
"service": "{{ .outputs.trigger.service }}",
"version": "{{ .outputs.trigger.version }}",
"environment": "{{ .outputs.trigger.environment }}"
}
}
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "progress-summary"
},
{
"sourceIdentifier": "progress-summary",
"targetIdentifier": "deploy"
}
]
}
Summary with output from other nodes
This workflow reads your organization details with a webhook node. An AI node then summarizes that response together with the trigger input, and the summary node stores the AI response on the run.
The AI node returns free-form text in its response output. For markdown, add instructions in the prompt, and keep the result short so it stays within the 10,000 character limit.
If your organization is hosted in the US, change api.port.io/v1/organization to api.us.port.io/v1/organization in the webhook URL in the example below.
Workflow example (click to expand)
{
"identifier": "summarize-organization-with-ai",
"title": "Summarize organization with AI",
"nodes": [
{
"identifier": "trigger",
"title": "Run summary",
"config": {
"type": "SELF_SERVE_TRIGGER",
"userInputs": {
"properties": {
"focus": {
"type": "string",
"title": "What to highlight"
}
},
"required": []
}
}
},
{
"identifier": "get_organization",
"title": "Get organization details",
"config": {
"type": "WEBHOOK",
"url": "https://api.port.io/v1/organization",
"method": "GET",
"synchronized": true
}
},
{
"identifier": "summarize-run",
"title": "Summarize the run with AI",
"config": {
"type": "AI",
"systemPrompt": "You write short run summaries in markdown. Do not call any tools. Keep the summary under 100 words.",
"userPrompt": "Summarize this organization for the person who ran the workflow.\n\nWhat to highlight: {{ .outputs.trigger.focus }}\n\nOrganization details:\n{{ .outputs.get_organization.response.data | tojson }}"
}
},
{
"identifier": "organization-summary",
"title": "Write organization summary",
"config": {
"type": "SUMMARY",
"summary": "## Organization summary\n\n{{ .outputs[\"summarize-run\"].response }}"
}
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "get_organization"
},
{
"sourceIdentifier": "get_organization",
"targetIdentifier": "summarize-run"
},
{
"sourceIdentifier": "summarize-run",
"targetIdentifier": "organization-summary"
}
]
}