Skip to main content Skip to complementary content

AnalysisRecommendRequest

Request payload can be of two types, using natural language query or consist of fields or master items and optional target analysis. In below examples, consider sales as a master item and product as field, so to get recommendations using sales and product, you can utilize below three approaches, also you can set language parameter in headers as part of accept-language. Examples:

{
  'text': 'show me sales by product'
}
{
  'fields': [
    {
      'name': 'product'
    }
  ],
  'libItems': [
    {
      libId: 'NwQfJ'
    }
  ]
}
{
  'fields': [
    {
      'name': 'product'
    }
  ],
  'libItems': [
    {
      'libId': 'NwQfJ'
    }
  ],
  'targetAnalysis': {
    'id': 'rank-rank'
  }
}

One of

Title Description Const
RecommendNaturalLangQuery RecommendNaturalLangQuery
RecommendItems RecommendItems

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!