Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

To enable entity feedback you must create a studio plugin to handle the data which comes from the UI in the frontend. Outlined below are the various POST objects which can be consumed with the custom studio plugin endpoint.

To enable this feature you must fill the “REC Explanations” widget or the “Result List” widget config correctly with a specified “Feedback endpoint” pointing to your custom studio plugin.

Example Data Posts

On Click thumbs-up / On Click thumbs-down:

{
  action: "positive || negative"
  entityId: "apxq8rIOZA2JbdeKeR2JSw"
  itemId: "rMUhbBQu-x9NulyqaD0rhw"
  projectId: "o-WW8l2rTKefV1WhUovsVg"
  textExtract: "[nS8N2CV0BG]↵    ↵    * MICHELIN  a fait état lundi d'une chute de 78,4%↵de son résultat opérationnel au 
  premier semestre, conséquence du↵coup d'arrêt du marché automobile provoqué par l'épidémie de↵coronavirus."
  userId: "gMuEUQBPT3iEKtUBssAegg"
  username: "michael.fasani@squirro.com"
}

After Click thumbs-up, when adding an additional comment, After Click thumbs-down, when adding an additional not interesting comment:

{
  action: "positive_feedback || not_interesting"
  entityId: "apxq8rIOZA2JbdeKeR2JSw"
  feedbackText: "Hi"
  itemId: "rMUhbBQu-x9NulyqaD0rhw"
  projectId: "o-WW8l2rTKefV1WhUovsVg"
  userId: "gMuEUQBPT3iEKtUBssAegg"
}

On submit of incorrect classification:

{
  action: "incorrect_classification"
  catalyst_change_from: "Rumour"
  catalyst_change_to: "Layoff"
  entityId: "apxq8rIOZA2JbdeKeR2JSw"
  feedbackText: "This is a demo"
  itemId: "rMUhbBQu-x9NulyqaD0rhw"
  projectId: "o-WW8l2rTKefV1WhUovsVg"
  userId: "gMuEUQBPT3iEKtUBssAegg"
}

  • No labels