Port workflows
A Port workflow is a graph of nodes.
One or more trigger nodes start a run, action and flow nodes do the work, and connections decide which node runs next.
Each node reads earlier nodes' output through JQ templates.
This skill works through Port's MCP server and its tools list_blueprints, list_entities, list_integrations, list_workflows, get_workflow, and upsert_workflow.
For a question this skill leaves open, search search_port_knowledge_sources.
To connect a Port MCP server, follow the port-getting-started skill.
In the workflow editor side chat, where the page context holds the workflow being edited, propose changes with suggest_workflow.
Anywhere else, save with upsert_workflow, or give the user the workflow JSON when they asked for JSON or saving is unavailable.
Build a workflow
- Find what already exists.
Call
list_blueprintsfor the blueprints and property identifiers the workflow reads or writes,list_integrationsfor the installed integrations an integration action needs, andlist_entitieswhen an input or responder has to name real entities, such as_teamidentifiers, passing the blueprint in its requiredblueprintIdentifierparameter and the names the user gave in itsidentifiersparameter. Calllist_workflows, thenget_workflow, to see whether a workflow already does this job; extending it keeps one source of truth. In the workflow editor side chat, the workflow in the page context is the one being edited. - Sketch the trigger and the nodes.
Start from a self-service trigger when the request leaves open what starts the run, since it runs only when someone asks for it.
Add one node per step.
Write Port entities with an upsert entity node, call Jira, Linear, PagerDuty, GitHub, GitLab, Azure DevOps or Devin with an integration action, and use an HTTP request node for any other external call.
Pass data between nodes with JQ templates, and read tokens and secret URLs from organization secrets with
{{ .secrets["<name>"] }}. Before you write the JSON, loadreferences/example-workflow.md, a complete workflow that saves as written. - Connect the outlets.
Add one connection per edge, from
sourceIdentifiertotargetIdentifier, and give every outlet of a CONDITION or INPUT node the connection for its branch, so each outcome the user described has a path. - Set permissions.
Give each self-service trigger a
permissionsobject naming the roles, teams or users who may run it. A save succeeds only when every team and user inpermissionsexists in the organization, so when the lookup misses the one the user named, leave it out, name the one that is missing, and offer the teams that exist. - Save or propose.
Save with
upsert_workflow, or give the user the workflow JSON when they asked for JSON or saving is unavailable. In the workflow editor side chat, callsuggest_workflowinstead, withsuggestedWorkflowset to the complete proposed workflow andcurrentWorkflowset to the workflow as it is now in the editor; leavecurrentWorkflowout for a new empty workflow. That call only proposes: the user reviews the proposal, applies it and saves it, so the reply describes the workflow as suggested for their review.
Gotchas
- Permission
userstake emails, not user IDs, so a user ID there matches nobody. - An INPUT node without
responderscan't be answered, so give every INPUT node responders, for example the approver's email inresponders.users. - Organization secrets live under
.secrets, plural, and JQ reads a hyphen in a bare field name as subtraction, so read a secret as{{ .secrets["<name>"] }}, since.secret.<name>or.secrets.my-namereads no secret. - Port's API host and app host differ by region, so Port API calls use
{{ .port.apiUrl }}and links into Port use{{ .port.appUrl }}instead of a hard-coded host. /v1/entities/searchis unsupported, so search entities withPOST {{ .port.apiUrl }}/v1/blueprints/<blueprint>/entities/search.- The GitHub integration action reports the run back to Port only through
reportWorkflowStatus, so set that field and notreportStatus. - An INPUT outlet is selected by the button that has the same identifier, so give each outlet its button's identifier.
- A chosen INPUT outlet with no connection fails the run, so connect every INPUT outlet and end a do-nothing branch at a CONDITION node with no outlets.
- An UPSERT_ENTITY
mappingreads onlyidentifier,title,icon,team,propertiesandrelations; any other key there is dropped without an error, so a property placed at that level never reaches the entity. - A self-service trigger saved without
permissionscan be run only by admins, so set permissions whenever anyone else is meant to run it. - A
suggest_workflowcall saves nothing, so tell the user the workflow was suggested, not created.
References
- references/example-workflow.md: read this before you write the workflow JSON; it is a complete workflow that saves as written, with a trigger, a branch, actions and every outlet connected.
- references/triggers.md: read this when you configure a self-service, event, schedule or workflow trigger, its form inputs, or the workflow's top-level fields.
- references/action-nodes.md: read this when you add an HTTP request, upsert entity, Kafka, AI, run summary or execute workflow node.
- references/integration-actions.md: read this when a node calls Jira, Linear, PagerDuty, GitHub, GitLab or Azure DevOps, or drives a Claude managed agent, a Cursor cloud agent or Devin, through an installed integration; each provider's actions sit in their own file, linked from that page.
- references/flow-control.md: read this when you branch with a CONDITION node or an AI DECISION node, add an approval with an INPUT node, or wire their outlets.
- references/data-flow.md: read this when a node reads trigger inputs, earlier node outputs, secrets or run metadata, or reshapes its own output with
variables. - references/port-api.md: read this when a node calls Port's own API, links into the Port app, reports an asynchronous node back, or the workflow is applied through the REST API instead of MCP.
- references/permissions.md: read this when you decide who may run a self-service trigger, including dynamic policies.
- references/chat-notifications.md: read this when the workflow posts a message to a chat channel through an incoming URL kept in a Port secret.
