# Function GetNlgInsights

GetNlgInsights(props): ReactElement< any, any > | null

React component that fetches and displays a collapsible analysis of the provided query using natural language generation (NLG). Specifying a query is similar to providing parameters to a useExecuteQuery hook, using dimensions, measures, and filters.

# Parameters

Parameter Type Description
props GetNlgInsightsProps GetNlgInsightsProps

# Returns

ReactElement< any, any > | null

Collapsible container wrapping a text summary

# Example

<GetNlgInsights
  dataSource="Sample ECommerce"
  dimensions={[DM.Commerce.Date.Years]}
  measures={[measureFactory.sum(DM.Commerce.Revenue)]}
/>