SDK Reference · Method
loadConversation (JSON)
Loads a Conversation definition directly from JSON text.
Declaration
public func loadConversation(jsonData: String) -> STResultOverview
Requires an initialized runner and an idle Conversation runtime. The parser's result is returned directly when the definition cannot be loaded.
This API loads the declarative definition; schema semantics belong to the Conversation Configuration Reference.
Loading and prerequisites
Load the Conversation definition directly from JSON text supplied by the application. Supply a complete valid document of the expected schema; the example illustrates invocation, not a full schema.
Usage example
// jsonText contains a complete, validated Conversation definition document.
_ = conversation.loadConversation(jsonData: jsonText)
Result handling
This loading method executes synchronously. .success indicates that the requested resource data was loaded successfully. Handle other STResult values as loading failures.