So you look at the high risk situations - identify the triggers (e.g., walk past a betting shop).
Then you plan what the clients coping responses would be during these high risk situations so they can increase their self-efficacy (e.g., maybe call a loved one, or play a game on their phone etc. - these increase their self-efficacy of being confident they can improve their health/addiction). This will likely lead to decreased risk of relapse.
But you need to plan for if the coping response can't be enacted (e.g., loved one doesn't pick up phone, battery has died), because with no coping response, this leads to increased cravings whereby they have decreased self-efficacy + high thoughts about positive expectancy of using substances.
Also needs to plan for what happens if there's a relapse and the individual uses a substance, bc this leads to abstinence violation effect whereby they get incongruence & feel guilt, feel a loss of control, this can lead to further relapse