You are here:
Intelligence Action for Integration Procedures (Managed Package)
For the managed package runtime, the Intelligence Action provides input to and runs a Vlocity Intelligence Machine.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Property |
Description |
|---|---|
Machine Developer Name |
Specifies the name of the Intelligence Machine. |
Input Data |
Specifies values for the Input Parameters of the Intelligence Machine. Typically these are:
|
Items to Rank Path |
Specifies the JSON path to the list of Intelligence Resources that the Intelligence Machine can offer the user. This is optional. By default all applicable Intelligence Resources are presented. |
- Example: Create an Intelligence Machine and an Integration Procedure to Run It (Managed Package)
For the managed package runtime, to download DataPacks for this example:
Example: Create an Intelligence Machine and an Integration Procedure to Run It (Managed Package)
For the managed package runtime, to download DataPacks for this example:
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
-
Click here for the Intelligence Machine, Intelligence Resource, Attribute Category, and Attribute
-
Click here for the Omnistudio Data Mapper Load
-
Click here for the Integration Procedure
The following example presents a discount coupon to Gold Star Accounts. The high-level steps to build this example are:
- Create a Profile Attribute Category and Attribute.
- Create a Data Mapper Load and apply the Attribute to an Account.
- Create an Intelligence Resource and reference the Attribute.
- Create an Intelligence Machine and assign weights to the Attribute Category.
- Create an Integration Procedure and retrieve the Resource for the Account.
What’s next: To perform the first two steps above, see the third example in Omnistudio Data Mapper Load Examples (Managed Package).
- Create an Intelligence Resource (Managed Package)
For the managed package runtime, create an Intelligence Resource for the Intelligence Action. - Create an Intelligence Machine (Managed Package)
For the managed package runtime, create an Intelligence Machine for the Intelligence Action. - Create an Intelligence Procedure (Managed Package)
For the managed package runtime, create an Intelligence Procedure for the Intelligence Action.
Create an Intelligence Resource (Managed Package)
For the managed package runtime, create an Intelligence Resource for the Intelligence Action.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
-
Create a file and name it DiscountCoupon. The extension doesn't matter.
This can be an image, text, or PDF file. Making it look like a coupon is optional.
- Go to the Vlocity Intelligence Resources tab and click New.
-
Give the new resource the following settings:
-
Name — Discount Coupon
-
Is Active — checked
-
Effective Date — Today's date
-
- Click Save.
- On the Discount Coupon page, in the Headline field, type Discount Coupon.
- Under Training Attributes, click ACCOUNTLEVEL, then click GoldStarAcct.
- Click Upload Image.
- Browse for the file you created and click Open. When the Edit window appears, click Save.
Create an Intelligence Machine (Managed Package)
For the managed package runtime, create an Intelligence Machine for the Intelligence Action.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- Go to the Vlocity Intelligence Machines tab and click New.
- For the Intelligence Machine Name and the REST Resource Name, type Gold Account Offers.
- Click Save.
- On the Gold Account Offers page, click in the Select a Resource field.
- Select Discount Coupon from the list and click the + icon to add it.
- Go to the WEIGHTINGS tab.
- Click in the Select a Category field and select AccountLevel from the list.
- Use the sliders to assign the following activity weights: View 80, Accept 60, Reject 40, Decay 20.
Create an Intelligence Procedure (Managed Package)
For the managed package runtime, create an Intelligence Procedure for the Intelligence Action.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- Go to the Vlocity Integration Procedures tab and click New.
- Provide an Integration Procedure Name, a Type, and a SubType, and click Save.
- Drag an Intelligence Action component into the Structure panel.
- In the Intelligence Action, specify a Machine Developer Name of Gold Account Offers.
- Under Input Data, click Add Key/Value Pair. Specify a Key of ContextId and a Value of %AccountId%.
- Drag a Response Action into the Structure panel. Set the Send JSON Path to IntelligenceAction1.
- Go to the Preview tab.
- Under Input Parameters, click Add New Key/Value Pair. Specify a Key of AccountId.
- For the Value, specify the Id of the Account to which you applied the GoldStarAcct Attribute.
-
Click Execute. The Response should look something like this:
[ { "targetObjectType": null, "targetObjectKey": null, "virtualResourceId": null, "virtualResourceData": null, "rejectLast": null, "rejectDecay": 0, "acceptLast": null, "acceptDecay": 0, "viewLast": null, "viewDecay": 0, "currentMachine": "Gold Star Offers", "contextId": "0016g00000BtNb1AAF", "info": null, "attachment": { "DiscountCoupon": "00P6g000002TJnlEAG" }, "scaledRawScore": 0, "formattedAggregatedScore": 0, "aggregatedScore": 0, "componentScores": [ { "scoreParameters": [], "scaledScore": 0, "normalizedScore": 0, "rawMaxScore": 0, "rawMinScore": 0, "scaledRawScore": 0, "rawMultiplier": 1, "rawScore": 0, "scoringComponentName": "VqScoringImplProfileMatch" } ], "resource": { "vlocity_ins__IsActive__c": true, "vlocity_ins__Headline__c": "Discount Coupon", "vlocity_ins__EffectiveDate__c": "2020-02-10T08:00:00.000Z", "SystemModstamp": "2020-02-11T22:07:37.000Z", "LastModifiedById": "0056g000003eBMaAAM", "LastModifiedDate": "2020-02-11T22:07:37.000Z", "CreatedById": "0056g000003eBMaAAM", "CreatedDate": "2020-02-11T22:07:23.000Z", "Name": "Discount Coupon", "IsDeleted": false, "OwnerId": "0056g000003eBMaAAM", "Id": "a5o6g000000MOd5AAG" } } ]

