SDK Reference · Method
resetUserIntent
Clears the current application-supplied user intent.
Declaration
public func resetUserIntent() -> STResultOverview
Requires initialization.
Use this when a previously supplied intent should no longer participate in subsequent Conversation transition evaluation.
Intent lifecycle
Clear an application-supplied intent when it should no longer influence subsequent conversation transitions. Resetting a user intent is distinct from clearing a runtime field.
Usage example
_ = conversation.resetUserIntent()
Result handling
This method returns an STResult. Check the returned value for success or failure.