Skip to content

GetActionRecommendations

Source: src/AWS/Personalize/GetActionRecommendations.ts

Runtime binding for personalize:GetActionRecommendations — Returns a list of recommended actions (next best action) for a user from a campaign backed by the NEXT_BEST_ACTION recipe. Campaign ARNs are chosen at runtime, so the binding takes no arguments and grants personalize:GetActionRecommendations on *. Provide the implementation with Effect.provide(AWS.Personalize.GetActionRecommendationsHttp).

// init
const getActionRecommendations = yield* Personalize.GetActionRecommendations();
const { actionList } = yield* getActionRecommendations({
campaignArn,
userId: "user-1",
});