Implement affirmation for custom action

Hello, I want to implement an acknowledgement for every custom action the user does. If the user wants to execute an action, the bot should ask the user to affirm his action. I want to use buttons, like “affirm” or “cancel”. How can I implement this? The problem is, that if I have more than one Action, the bot often executes after an affirmation the false custom action. It should be able to remember the action the user wanted execute before asking for affirmation.

Mhm, you could implement every custom action as a form.