DiscoveryStory

Represents the metadata associated with a story used in Einstein Discovery.

A story defines the data and analytical settings that Einstein Discovery uses to generate insights and build predictive models. Story settings include the outcome variable, whether to maximize or minimize the outcome variable, the data to analyze in a CRM Analytics dataset, and other preferences. Story settings tell Einstein Discovery how to conduct the analysis and communicate its results. In Package Manager, this type is listed as “Discovery Story”.

Write operations for DiscoveryStory objects are generally not supported.

This type extends MetadataWithContent and inherits its fields.

A DiscoveryStory is stored in the discovery folder. DiscoveryStory have two files:

  • file with .story suffix contains the story’s actual data
  • file named *ModelName*.story-meta.xml suffix contains the story’s metadata

Here is a sample package.xml file:

DiscoveryStorys are available in API version 54.0 and later.

  • Type: string
  • Required: Yes
  • Description: Required. The CRM Analytics app the story is associated with.
  • Type: DiscoveryStoryAutopilotStatus (enumeration of type string)
  • Required: No
  • Description: Optional. The autopilot status for the story. One of the following strings:
  • Possible values:
    • Enabled
    • Disabled
  • Type: double
  • Required: No
  • Description: Optional. The threshold for classification predictions for the story.
  • Type: string
  • Required: Yes
  • Description: Required. The story label. If you package a story, this label appears in Package Manager.
  • Type: string
  • Required: Yes
  • Description: Required. The source ID for the story.
  • Type: DiscoveryStorySourceType (enumeration of type string)
  • Required: Yes
  • Description: Required. The source type of the story. One of the following strings:
  • Possible values:
    • AnalyticsDataset
    • LiveDataset
    • Report
  • Type: string
  • Required: No
  • Description: Optional. The validation ID for the story.

Represents the selected outcome of the generated story.

  • Type: string
  • Required: No
  • Description: Optional. The value if the story failed.
  • Type: string
  • Required: Yes
  • Description: Required. The field configuration for the story.
  • Type: DiscoveryStoryOutcomeGoal (enumeration of type string)
  • Required: Yes
  • Description: Required. The story outcome goal. One of the following strings:
  • Possible values:
    • Maximize
    • Minimize
    • None
  • Type: string
  • Required: Yes
  • Description: Required. The story outcome label.
  • Type: string
  • Required: No
  • Description: Optional. The value if the story succeeded.
  • Type: DiscoveryStoryOutcomeType (enumeration of type string)
  • Required: Yes
  • Description: Required. The story outcome type. One of the following strings:
  • Possible values:
    • Categorical
    • Count
    • Number
    • Text

Here is a sample DiscoveryStory:

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.