Dashboard platform administration, Add Modules

External Decision

The External Decision module calls a configured external endpoint and exposes the returned decision value for routing Conditions.

For an overview of this module and how it works, see External Decision.

Supported with:

✅ Workflows | ❌ Flows

Prerequisites

Before adding the External Decision node to a Workflow, the client must:

  • Expose an endpoint that accepts the Incode payload (sessionId, identityId, flowId, timestamp) and returns a single decision string.
  • Secure the endpoint with OAuth 2.0 (client credentials) and issue Incode a Client ID and Client Secret.
  • Define the set of decision values the endpoint will return (for example, valid, blocked, on_hold). These exact strings are used when configuring routing conditions.

Add External Decision to Workflows

  1. In the left menu, click Flow Builder > Workflows.
  2. Click New or select an existing Workflow.
  3. Ensure you have at least one Module node in the builder.
  4. Add the External Decision module. Place it after an authentication module only if the decision depends on identityId. Do one of the following, depending on whether you have the New or Classic view enabled in the toggle in the top right:
    • New: Click Add node Icon of a plus sign > Processes, then search for and select External Decision.
    • Classic: From the Processes list, drag and drop the External Decision module into the builder.
  5. Click the three dots > Edit on the node to open the Configuration Options panel and configure the endpoint, authentication, and routing.

Configuration Options

This section details all the configuration options available for this module. The configuration panel looks different depending on whether you have the New or Classic view enabled in the toggle in the top right in your Flow or Workflow. After changing anything, click Save configurations before closing the configuration panel.

Configuration panel: New view

External Decision configuration, new view

Configuration panel: Classic view

The options you see in your configuration may differ from those documented below. Contact your Incode representative for more information.

Setting Description
Node name Required. The name that identifies this node throughout the workflow builder, including when referencing its decision in routing conditions (for example, eligibility_status). Use something descriptive.
Endpoint URL Required. The client-owned endpoint that Incode calls when the workflow reaches this node. Must return a single decision string.
Authorization URL Optional. The client's OAuth token endpoint used for the client-credentials grant. Incode requests an access token from this URL on each execution.
Client ID Optional. The identifier the client issues to Incode for the OAuth client-credentials grant.
Saved client secret Displays the masked client secret currently saved for this node. Read-only. To change the value, enter a new one in New client secret.
New client secret Enter a new client secret value here to replace the one currently saved. Use the visibility toggle to confirm your new secret is correct before saving. After you click Save configuration, the value is masked.
Scopes Optional. The space-separated OAuth scopes Incode requests when obtaining an access token.
Auth method How Incode presents its credentials to the token endpoint. Options are Client secret basic and Client secret post.
Custom headers Optional static headers that Incode sends as-is on every request to the endpoint (for example, an API gateway key). Add additional key/value pairs using + Add custom header.
Custom header values are not masked in the configuration UI.

Add a Condition

After configuring the module, add Condition nodes that act on the returned decision string. Reference the node by the Node Name configured above (for example, eligibility_status == "valid").

Example routing for a status look-up:

  • valid → continue to the next module
  • blocked → block access
  • on_hold → trigger step-up identity verification
  • INCODE_UNRESOLVED → handle failure (no response within 30 seconds, error, unavailable endpoint, or unmatched value)

Decision string matching is case-sensitive. Returned values must exactly match the strings configured in conditions, or the outcome maps to INCODE_UNRESOLVED.

Observability

A session event is emitted on every execution, capturing the endpoint called, the decision value, the optional reason field if returned, and the branch taken. Credentials are never exposed in logs or the flow definition.


Was this page helpful?