Skip to content
LakeSharkDocumentation
FLOW STUDIO / DOCUMENTATION

Inputs and mappings

Understand the Flow input JSON object, per-step values, typed references, and the final output.

A Flow should expose the exact shape of the JSON object it accepts and the output schema each step produces. You should not have to guess a field name or copy an undocumented JSON path.

Schema status: The following examples explain the intended standalone Flow data model. They are illustrative, not a claim that every beta editor field or runtime mapping syntax is implemented. Use the schema and validation feedback shown by your deployed editor as the authority.

1. What the caller sends

The planned standalone Flow run request wraps application data in an inputs object:

{
  "inputs": {
    "question": "How do I report a suspicious email?",
    "customer": {
      "tier": "enterprise"
    },
    "notify": false
  }
}

Here inputs is the request envelope. question, customer, and notify are user-defined example fields, not reserved LakeShark parameters.

Example path JSON type Value
inputs.question String "How do I report a suspicious email?"
inputs.customer.tier String "enterprise"
inputs.notify Boolean false

The Flow’s declared input schema should state required fields, allowed types, defaults and whether unknown fields are rejected. Do not use free-form caller data as an authenticated tenant identity.

2. Map inputs into a step

Suppose your first step is an AnswerSet named lookup. In its input inspector, map the question field from the Flow’s inputs.question value. This is a field-reference concept, not a promise that a text expression with that spelling will be accepted as-is.

A typed editor should present:

Destination field Source Required type
AnswerSet question Flow input question String
AnswerSet context Flow input customer Object

Choose the source in the mapping UI when available. If the editor only accepts a raw JSON reference, consult its displayed schema rather than guessing.

3. Map output to the next step

Imagine that lookup produces this example normalized result:

{
  "step": "lookup",
  "output": {
    "answer": "Report it to Security Operations.",
    "source": "knowledge",
    "confidence": 0.97
  }
}

A subsequent Conditional step can inspect lookup.output.source. A final output mapping can choose lookup.output.answer. The actual editor may namespace step outputs differently; the visible output schema is authoritative.

Avoid coercing objects or arrays to strings unless the destination schema expressly requires a string. Missing fields and incompatible types should stop execution before calling an external system.

4. Define the Flow-owned result

The Flow chooses what to return. A possible result is:

{
  "answer": "Report it to Security Operations.",
  "resolution": "approved_knowledge"
}

That is the example Flow output, not an AnswerSet’s complete Question API response. The Flow should validate its final output against its own published schema.

5. Troubleshoot a mapping

  • Missing field: Check the input and prior step’s actual output keys.
  • Type mismatch: Match the destination’s declared String, Number, Boolean, Array or Object type.
  • Unknown step reference: Confirm that the referenced step exists and is upstream of the current step.
  • Branch has no value: Each successful branch must produce the declared final output.
  • External action rejected: Validate mappings before running an ExecutionSet, because a real action may have side effects.

Continue to Validate and test.