tock / ai.tock.bot.definition / BotDefinition / findStoryDefinition

# findStoryDefinition

`open fun findStoryDefinition(intent: IntentAware?, applicationId: String): StoryDefinition` (source)

Finds a StoryDefinition from an Intent.

`open fun findStoryDefinition(intent: String?, applicationId: String): StoryDefinition` (source)

Finds a StoryDefinition from an intent name.

### Parameters

`intent` - the intent name

`applicationId` - the optional applicationId