On this page
Sommatic Docs
Open portal

gRPC Client

Call gRPC Service method.

View as Markdown
Open in
Input and output Available io.grpc Version 1.0.0 Execution: async

Calls one unary method of a gRPC service described by a .proto file available to the orchestrator, using host and proto settings from a credential.

How it works

  1. Resolves the config. connection_id, service and method fall back to the same keys of the incoming payload.
  2. Builds the request message: the configured payload when it is a non-empty object; otherwise payload.payload of the incoming data, or the whole incoming data.
  3. Resolves the credential config: host (host:port), protoPath (a file on the orchestrator file system), optional packageName and secure.
  4. Loads the proto (field names kept as written, longs and enums as strings, defaults filled), finds packageName and then service, and opens a TLS channel when secure is true or a plaintext one otherwise.
  5. Calls method with the message and, when the secret has token, the metadata Authorization: Bearer <token>. The reply leaves through out as { response }.

In a workflow

The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.

{
  "node_id": "node-confirm-order",
  "label": "Confirm order",
  "operator_slug": "io.grpc",
  "operator_version": "1.0.0",
  "config": {
    "connection_id": "pi-credential-xxxx",
    "service": "OrderService",
    "method": "ConfirmOrder",
    "payload": {
      "order_id": "{{ $json.order_id }}"
    }
  }
}

Configuration

connection_id string Required

Credential for the gRPC endpoint. Accepts credentials of type `certificate` (TLS cert + key for mTLS) or `object` (host + .proto path + advanced config).

service string Required

Service Name

method string Required

Method Name

payload object Optional

Request Message

Behaviour in the code

What the implementation does with these keys beyond what the schema says.

connection_id
The credential config must hold host, protoPath, optional packageName and secure; only token is read from the secret. certificate credentials are accepted by the picker, but client certificates are not used: TLS uses the system trust store without a client certificate (no mTLS).
payload
The request message. An empty object counts as not set, and the incoming data is sent instead.

Output ports

out default

The method returned a reply. response is the decoded reply message.

Data
{
  "response": {
    "order_id": "ord_123",
    "status": "CONFIRMED",
    "total_cents": "25000"
  }
}
error

The call returned a gRPC status error (data is { error, code } with the numeric gRPC code), or the setup failed (data is { error }).

Data
{
  "error": "14 UNAVAILABLE: No connection established",
  "code": 14
}

In expressions

What a later node can read from this node's output with $("gRPC Client").item.json.<path> (write your node's label instead of gRPC Client). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through out, from the output shown in Ports.

ExpressionEditorWorker
$("gRPC Client").item.json.responseobject= {…}gRPC Response Message
$("gRPC Client").item.json.response.order_idstringNot suggested by the editor= "ord_123"—
$("gRPC Client").item.json.response.statusstringNot suggested by the editor= "CONFIRMED"—
$("gRPC Client").item.json.response.total_centsstringNot suggested by the editor= "25000"—

— Worker: The worker returns it but the editor does not suggest it: write it by hand. Keys inside objects can depend on your data or configuration (for example one key per label).

Errors

Message Port Cause and fix
protoPath missing in connection config error The credential config has no protoPath. Add the path of a .proto file that exists on the orchestrator host.
Package <packageName> not found in proto error packageName does not match a top-level package of the proto. Only a single-segment name is looked up (helloworld, not acme.orders).
Service <service> not found error service is not defined in the selected package.
Method <method> not found error method is not a method of the service. Use the name as written in the proto.
connection_id is required error No credential selected.

Input contract

connection_id string Required
service string Required
method string Required
payload object Optional

Output contract

response object Optional

gRPC Response Message

Contracts (JSON Schema)

The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.

{
  "slug": "io.grpc",
  "name": "gRPC Client",
  "category": "io",
  "version": "1.0.0",
  "description": "Call gRPC Service method.",
  "capabilities": [
    "grpc",
    "microservices",
    "protobuf"
  ],
  "config_schema": {
    "type": "object",
    "properties": {
      "connection_id": {
        "type": "string",
        "title": "gRPC Credential",
        "description": "Credential for the gRPC endpoint. Accepts credentials of type `certificate` (TLS cert + key for mTLS) or `object` (host + .proto path + advanced config).",
        "ui_widget": "connection_picker",
        "ui_options": {
          "credential_types": [
            "certificate",
            "object"
          ],
          "types": [
            "grpc"
          ]
        }
      },
      "service": {
        "type": "string",
        "description": "Service Name"
      },
      "method": {
        "type": "string",
        "description": "Method Name"
      },
      "payload": {
        "type": "object",
        "description": "Request Message"
      }
    },
    "required": [
      "connection_id",
      "service",
      "method"
    ]
  },
  "input_contract_schema": {
    "type": "object",
    "properties": {
      "connection_id": {
        "type": "string"
      },
      "service": {
        "type": "string"
      },
      "method": {
        "type": "string"
      },
      "payload": {
        "type": "object"
      }
    },
    "required": [
      "connection_id",
      "service",
      "method"
    ]
  },
  "output_contract_schema": {
    "type": "object",
    "properties": {
      "response": {
        "type": "object",
        "description": "gRPC Response Message"
      }
    }
  },
  "ports": [
    {
      "port_id": "out",
      "label": "Response",
      "description": "gRPC Response Message",
      "is_default": true,
      "supports_condition": true
    },
    {
      "port_id": "error",
      "label": "Error",
      "description": "gRPC Error Code",
      "is_default": false,
      "supports_condition": false
    }
  ],
  "execution_mode": "async",
  "required_resources": [],
  "compatible_worker_pools": [
    "standard-io",
    "microservices"
  ],
  "tags": [
    "grpc",
    "rpc"
  ],
  "is_stateful": false,
  "publisher": {
    "identity": "org_link_loom",
    "profile": {
      "name": "Link Loom",
      "verified": true,
      "url": "https://me.veripass.com/link-loom",
      "logo_url": null
    }
  }
}

Execution

Execution
async
Stateful
No
Credentials
Resolved on the server from connection_id; the secret never reaches the workflow.
Capabilities
grpcmicroservicesprotobuf
Tags
grpcrpc

Notes and limits

  • Only unary calls are supported; streaming methods are not handled. No deadline is set on the call, and there are no retries.
  • The .proto file is read from the orchestrator file system on each run; it is not uploaded with the workflow.
  • 64-bit integers and enums arrive as strings in response.

Reviewed against the orchestrator code · 31e874b · 2026-11-26

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs