Salesforce · Capability

Salesforce — Flow

Salesforce — Flow. 2 operations. Lead operation: Salesforce Launch Flow. Self-contained Naftiko capability covering one Salesforce business surface.

Run with Naftiko SalesforceFlow

What You Can Do

POST
Launchflow — Salesforce Launch Flow
/v1/data/v64-0/actions/custom/flow/{flowapiname}
GET
Useragentflow — Salesforce User Agent Flow
/v1/services/oauth2/authorize

MCP Tools

salesforce-launch-flow

Salesforce Launch Flow

salesforce-user-agent-flow

Salesforce User Agent Flow

read-only idempotent

Capability Spec

salesforce-flow.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce — Flow
  description: 'Salesforce — Flow. 2 operations. Lead operation: Salesforce Launch Flow. Self-contained Naftiko capability
    covering one Salesforce business surface.'
  tags:
  - Salesforce
  - Flow
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_API_KEY: SALESFORCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: salesforce-flow
    baseUri: https://login.salesforce.com
    description: Salesforce — Flow business capability. Self-contained, no shared references.
    resources:
    - name: data-v64.0-actions-custom-flow-flowApiName
      path: /data/v64.0/actions/custom/flow/{flowApiName}
      operations:
      - name: launchflow
        method: POST
        description: Salesforce Launch Flow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: flowApiName
          in: path
          type: string
          description: Flow API Name
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: services-oauth2-authorize
      path: /services/oauth2/authorize
      operations:
      - name: useragentflow
        method: GET
        description: Salesforce User Agent Flow
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: response_type
          in: query
          type: string
          required: true
        - name: client_id
          in: query
          type: string
          required: true
        - name: redirect_uri
          in: query
          type: string
          required: true
        - name: display
          in: query
          type: string
          required: true
        - name: login_hint
          in: query
          type: string
          required: true
        - name: nonce
          in: query
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_API_KEY}}'
  exposes:
  - type: rest
    namespace: salesforce-flow-rest
    port: 8080
    description: REST adapter for Salesforce — Flow. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/data/v64-0/actions/custom/flow/{flowapiname}
      name: data-v64-0-actions-custom-flow-flowapiname
      description: REST surface for data-v64.0-actions-custom-flow-flowApiName.
      operations:
      - method: POST
        name: launchflow
        description: Salesforce Launch Flow
        call: salesforce-flow.launchflow
        with:
          flowApiName: rest.flowApiName
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/oauth2/authorize
      name: services-oauth2-authorize
      description: REST surface for services-oauth2-authorize.
      operations:
      - method: GET
        name: useragentflow
        description: Salesforce User Agent Flow
        call: salesforce-flow.useragentflow
        with:
          response_type: rest.response_type
          client_id: rest.client_id
          redirect_uri: rest.redirect_uri
          display: rest.display
          login_hint: rest.login_hint
          nonce: rest.nonce
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: salesforce-flow-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce — Flow. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: salesforce-launch-flow
      description: Salesforce Launch Flow
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: salesforce-flow.launchflow
      with:
        flowApiName: tools.flowApiName
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-user-agent-flow
      description: Salesforce User Agent Flow
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-flow.useragentflow
      with:
        response_type: tools.response_type
        client_id: tools.client_id
        redirect_uri: tools.redirect_uri
        display: tools.display
        login_hint: tools.login_hint
        nonce: tools.nonce
      outputParameters:
      - type: object
        mapping: $.