SpeechTilesAndamento Docs
Get started
SDK Reference · Callback

conversationModuleWillStart

Called before processing of a Conversation module begins.

func conversationModuleWillStart(moduleID: String)

Behavior

Called before the named conversation module begins processing; a suitable place to supply module-specific runtime fields.

Parameters

  • moduleID (String): Identifier of the conversation module associated with this callback.

Timing and execution

When a runtime-field update or client decision must affect the framework immediately, perform it synchronously within this callback, before returning. UI updates that do not affect the immediate conversation decision can be dispatched separately.

Swift example

Implement this method in a class conforming to STConversationCallback. This focused example demonstrates the callback entry point; adapt application behavior to your own workflow.

public func conversationModuleWillStart(moduleID: String) {
    guard moduleID == "node.ask" else { return }
    _ = runner.setRuntimeField("AskPrompt", value: "What would you like to do?")
}

See Also