@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Variable addKeywordConst

    addKeyword: <S extends object = EmptyFlowState>(
        trigger: Trigger,
    ) => FlowBuilder<S> = flow

    Type Declaration

      • <S extends object = EmptyFlowState>(trigger: Trigger): FlowBuilder<S>
      • Start a DSL flow. S optionally declares state the flow expects up front; .ask(), .choose() and .use() add the keys they capture, so c.state is typed without casts.

        Type Parameters

        Parameters

        Returns FlowBuilder<S>

    Use flow (same function; the name kept for code migrated from bot-whatsapp/BuilderBot).