---
schema_version: "1"
id: c93d68430fa2c828345af130da44bd1dc82a3801c6491f215d429f8f06745315
title: Add Article Recommendations to a Flow
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/einstein_article_recommendations_add_to_flow.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.einstein_article_recommendations_add_to_flow.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a1869820510e7a50b88c1f18584f20691f48cdbd3b9eaf7acca5db904191edc6
description: The Article Recommendations action takes a Case ID as input and returns a JSON list of recommended articles identified from your active Einstein Article Recommendations model.
products:
  - Service Cloud
  - Service Intelligence
release: "264"
---
# Add Article Recommendations to a Flow

The Article Recommendations action takes a Case ID as input and returns a JSON list of recommended articles identified from your active Einstein Article Recommendations model.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.einstein_service_intro.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d88354e57">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d88354e57 ">To assign permission sets: </td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d88354e57 ">Assign Permission Sets</td>

          </tr>
        </tbody>
      </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/images/icon_note.png)

Note To add Article Recommendations to a flow, you must have an active Einstein Article Recommendations model. [Visit Salesforce Help to learn how to build and activate a model.](https://help.salesforce.com/s/articleView?id=service.einstein_article_recommendations_set_up.htm&type=5&language=en_US)

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/images/icon_important.png)

Important To see and apply Einstein Article recommendations, service reps need [Read access.](https://help.salesforce.com/s/articleView?id=service.knowledge_setup_users_lex.htm&type=5&language=en_US)

1. From Setup, in the Quick Find box, enter Flows, and then select **Flows**.
2. On the Flows list, select the flow where you want to add article recommendations.
3. On the Elements tab, drag the **Action** element onto the canvas.
    
    ![The toolbox menu with the action element high-lighted.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/support_intelligence/images/article_recommendations/ear_toolbox.png)
4. Select **Einstein** and then select **Create Article Recommendations**.
5. Give the action a label and optionally a description. The API name populates automatically.
6. Under Set Input Values, Record ID, select the Case ID field.
    
    ![A new Create Article Recommendations action with the record id as the input value.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/support_intelligence/images/article_recommendations/ear_action.png)
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/images/icon_note.png)
    
    Note Einstein invocable actions are compatible only with case type objects.
7. Click **Done**, and then save your changes.

The Article Recommendation action returns a JSON list of recommended articles. Next, see how to use the recommendations by assigning the JSON output from the Article Recommendations action to a collection variable.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/images/icon_example.png)

Example

```
[{
"knowledgeArticleId" : "kA0RM0000006XDh0AM",
"knowledgeArticleVersionId" : "ka0RM0000006E0uYAE",
"lastPublishedDate" : "2020-03-24T21:54:42.000Z",
"recommendationId" : "0QARM00000004PG4AY",
"relevanceScore" : 90.016695360335916,
"summary" : "To reset your password, go to settings on your user profile. Click Manage Account, then select username and password. Enter the new password, then select Update. Confirm the update with the previous password, and select Continue. Your password is successfully updated!",
"title" : "How do I reset my password?",
"urlName" : "kA0000000000003031-ABC-1013229425"
}]
```