Interface JourneyNode.Visitor

    • Constructor Detail

    • Method Detail

      • visitSend

         abstract T visitSend(JourneySendNode send)

        Send a notification template to the recipient. Optionally override the recipient address, delay the send, or attach data.

      • visitAi

         abstract T visitAi(JourneyAiNode ai)

        Invoke an AI step with user_prompt and optional web_search. Returns a structured response conforming to output_schema.

      • visitBatch

         abstract T visitBatch(JourneyNode.JourneyBatchNode batch)

        Collect events arriving at the node into a single batch and fire one downstream step with the aggregated payload. The first event into a batch owns the run; later contributing events terminate at the batch step. The batch releases when any of max_items is reached, a quiet window of wait_period elapses, or the max_wait_period ceiling hits.

      • unknown

         T unknown(JsonValue json)

        Maps an unknown variant of JourneyNode to a value of type T.

        An instance of JourneyNode can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.