Access the Article Recommendations Action’s Output

To use the recommendations, assign the output from the Article Recommendations action to a collection variable. Then, loop through the collection variable to access the recommended articles and their fields.

Required Editions

View supported editions.
User Permissions Needed
To assign permission sets: Assign Permission Sets
To customize Einstein Article Recommendations: Customize Application

The flow action may return articles that aren’t externally visible . To display articles to customers outside your organization, add logic that checks the articles are publicly available.

  1. On the Elements tab, drag the Assignment element onto the canvas.
  2. Assign the JSON output of the Article Recommendations action to an Apex-Defined output variable.
    A new apex-defined variable to hold items from the Article Recommendations JSON list.
  3. Add a Loop element to iterate through each item in the variable list.
  4. Inside the loop, drag the Get Records element onto the canvas to filter through the Knowledge Article Version Records.
  5. To find the published recommended articles, add a condition that matches the Knowledge Article Version ID to the ID of the current item from the loop. Add conditions to check that your articles exist and that they’re publicly available.
    A new Get Records action that checks the article id matches the current item from the loop and it is publicly visible.
    This example filters knowledge articles that aren’t included in the public knowledge base IsVisibleInPkb.
  6. Assign the list of recommended articles to a variable. From there you can use the variable to process the list into a reader-friendly format such as a new screen or email.