Go to the BP_InteractionContextMenu widget and create a new variable called PlayerInventory and set its type to BP_PlayerInventory.

Add the highlighted nodes shown in the image below, location at the top of the image.

Go to the InitializeContextMenu function and copy the video below.

Create a new variable called LastPossibleActions and set it type to S_WorldAction and set it to an array. Then copy the image below.

Add the highlighted nodes shown in the image below, location at the top of the image.

Add the highlighted nodes shown in the image below, location at the top of the image.

Now if an actors possible actions change while the player is looking at the actor the menu will update, note the current menu selection will reset to the first entry when the menu updates with the new possible actions.

Then copy this guide linked below, you code may look a little different as this function has now been commented and organized. But the nodes are still the same, just find Get Hit Component L node that plugged into the SGK Allow Interaction node and copy the guide below.