Skip to content

Commit 2c141ab

Browse files
authored
fix: logic update for issue #14
1 parent 2ea4884 commit 2c141ab

File tree

1 file changed

+3
-3
lines changed
  • force-app/main/04_architecturalPatterns/multiStepWorkflows/aiAuthoringBundles/MultiStepWorkflows

1 file changed

+3
-3
lines changed

force-app/main/04_architecturalPatterns/multiStepWorkflows/aiAuthoringBundles/MultiStepWorkflows/MultiStepWorkflows.agent

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ topic onboarding:
5050
b. NEVER ask the customer to set password. We will set the password in the background.
5151
if @variables.step == 1:
5252
| Ask for name and email to create account.
53-
if @variables.step == 2 and @variables.profile_completed == True:
53+
if @variables.step == 2 and @variables.account_created == True:
5454
| Collect the customer's profile preferences by asking about: (1) Notification Preferences (e.g., email, SMS, push), (2) Preferred Language, and (3) Timezone. Once all preferences are gathered, format them as a JSON string (e.g., {"notifications": "email", "language": "en", "timezone": "PST"}) and pass it to the `preferences` input of setup_profile action.
55-
if @variables.step == 3 and @variables.preferences_set == True:
55+
if @variables.step == 3 and @variables.profile_completed == True:
5656
| Collect the customer's privacy settings by asking about: (1) Data Sharing preferences, (2) Marketing Communications opt-in/out, and (3) Profile Visibility. Once all settings are gathered, format them as a JSON string (e.g., {"dataSharing": false, "marketing": true, "visibility": "private"}) and pass it to the `settings` input of configure_settings action.
57-
if @variables.step == 4:
57+
if @variables.step == 4 and @variables.preferences_set == True:
5858
| Run the {[email protected]_onboarding} action to inform customer onboarding is complete.
5959
actions:
6060
create_account: @actions.create_account

0 commit comments

Comments
 (0)