---
schema_version: "1"
id: 7dd67795291fce05aa46b443a6bdea3852fb2fc0adb420cb63eaea4ab2ab3771
title: Configure Smart Actions on an LWC Card (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_configuring_smart_actions_on_an_lwc_card.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_configuring_smart_actions_on_an_lwc_card.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c7b11595d2fa097998bc24ac727fb06619e15c1b67b421d719068e737917c435
description: For the managed package runtime, beginning with the Vlocity Insurance and Health Summer '19 and Vlocity Communications, Media, and Energy Fall '19 releases, Vlocity supports the Salesforce Lightning Web Component programming model.
products:
  - Omnistudio
release: "264"
---
# Configure Smart Actions on an LWC Card (Managed Package)

For the managed package runtime, beginning with the Vlocity Insurance and Health Summer '19 and Vlocity Communications, Media, and Energy Fall '19 releases, Vlocity supports the Salesforce Lightning Web Component programming model.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_important.png)

Important Before you begin, you must [create an Integration Procedure](https://help.salesforce.com/s/articleView?id=xcloud.os_create_an_integration_procedure.htm&release=264.0.0&type=5 "For the managed package runtime, to create an Integration Procedure, you must name it, configure it, define its logic, and preview how it runs. You can also view debugging information and set options that apply only to previews.") before you can follow the steps on this page.

Reduce server processing time and increase performance. Use an [Integration Procedure](https://help.salesforce.com/s/articleView?id=xcloud.os_integration_procedures.htm&release=264.0.0&type=5 "For the managed package runtime, the following diagram shows the relationship between an Omniscript and an Integration Procedure that it calls.") to generate and return actions to an LWC Card at run time.

1. Click the **Enable LWC** button on a card to enable Smart Actions.
2. In a card state, select an sObject from the **Salesforce Object Type** dropdown.
3. In the **Id Field for Actions** field, add the ContextId available from the card's data source, such as Id.
4. Click the arrow next to the **Smart Actions** to reveal smart action options.
    
    ![Smart Actions screenshot](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/os_classic_cards_smart_actions.png)
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)
    
    Note Prior to Vlocity Insurance and Health Winter '20 and Vlocity CME Winter '20, you must click the Actions dropdown to select Smart Actions.
    
    ![Screenshot of Smart Actions before Winter '20](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/os_classic_cards_smart_actionsbefore_W20.png)
5. Click into the **IP Name** input field and select an existing Integration Procedure from the list that appears. The Integration Procedure must include an [Intelligence Action for Integration Procedures](https://help.salesforce.com/s/articleView?id=xcloud.os_intelligence_action_for_integration_procedures.htm&release=264.0.0&type=5 "For the managed package runtime, the Intelligence Action provides input to and runs a Vlocity Intelligence Machine.").
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)
    
    Note We recommend that you use Vlocity Intelligence. However, you can use your own machine learning framework with the schema outlined on this page.
    
    The Integration Procedure must return the following schema. A Vlocity Intelligence Action returns this schema by default.
    
    ```
    [
      {
        "OfferRecommendation": "test",
        "targetObjectType": "Vlocity Action",
        "targetObjectKey": "open-claim",
        "virtualResourceId": null,
        "virtualResourceData": null,
        "rejectLast": null,
        "rejectDecay": 0,
        "acceptLast": null,
        "acceptDecay": 0,
        "viewLast": null,
        "viewDecay": 0,
        "currentMachine": "smartCard",
        "contextId": "02i3u0000099Ul0AAE",
        "info": null,
        "attachment": {
          "Icons_-_Lightning_Design_System-3": "00P3u00000dqZ1REAU",
          "Smartcard": "00P3u00000dk5JvEAI",
          "Ranking": "00P3u00000dZWuaEAG"
        },
        "scaledRawScore": 100,
        "formattedAggregatedScore": 1,
        "aggregatedScore": 1,
        "componentScores": [
          {
            "scoreParameters": [
              {
                "score": 100,
                "objectTypeString": "vlocityins2__Attribute__c",
                "name": "OpenClaim",
                "identifier": "openClaim"
              }
            ],
            "scaledScore": 1,
            "normalizedScore": 1,
            "rawMaxScore": 100,
            "rawMinScore": 0,
            "scaledRawScore": 100,
            "rawMultiplier": 1,
            "rawScore": 100,
            "scoringComponentName": "VqScoringImplProfileMatch"
          }
        ],
        "resource": {
          "vlocityins2__TargetObjectType__c": "Vlocity Action",
          "vlocityins2__TargetObjectKey__c": "open-claim",
          "vlocityins2__IsActive__c": true,
          "vlocityins2__Headline__c": "There is open claim!",
          "vlocityins2__EffectiveDate__c": "2019-11-07T08:00:00.000Z",
          "vlocityins2__Description__c": "There is open claim. Please handle.",
          "SystemModstamp": "2019-12-18T22:19:25.000Z",
          "LastModifiedById": "0056A000000taWIQAY",
          "LastModifiedDate": "2019-12-18T22:19:25.000Z",
          "CreatedById": "0056A000000taWIQAY",
          "CreatedDate": "2019-11-13T01:59:48.000Z",
          "Name": "Open Claim",
          "IsDeleted": false,
          "OwnerId": "0056A000000taWIQAY",
          "Id": "a3k3u000000OJ8NAAW"
        }
      },...
    ]
    ```
6. Enter the values for these settings if the Integration Procedure requires them:
    - **Input Map**: Enter name-value pairs in this field to send input parameters to the Integration Procedure.
    - **Options Map**: Enter name-value pairs in this field to send optional parameters to the Integration Procedure.