IMS Subsystems flow
About this task
The IMS subsystems flow comprises eight conversational steps. You begin the flow by creating a new skill action in the AIOps Assistant.
Procedure
- Log in to watsonx Orchestrate.
- Click the AI assistant builder tile.
- From the main menu bar, select the AIOps Assistant to which you want to create the skill flow.
- Hover the cursor over the home icon, select Actions, and then click New action.
- On the Create an action page, select Start from scratch.
- On the New Action window, enter Show all my IMS
subsystems and click Save. You are directed to the page where you can create the conversational steps. Step 1 exists by default. To add the remaining steps, click New step for each step that you want to add, and then save the changes by clicking the Save icon.
- Create the IMS Subsystems flow: Step 1:
- In the Add then section, click Go to a subaction, and then select Retrieve all IMS Details.
Step 2:- Select the variables and their values as described in the following
table. For more information on how to add variables, see Setting conditions and variables for AIOps Assistant flows.Note: The variable values are provided in boldface to differentiate them from the object values.
Variable Type Value allIMSTable Any 1. Retrieve all IMS Details result variable.value.message NormalizedIMSTable1 Any allIMSTable.toString().replace("IMS ID", "imsId").toJson() IMSIdList Free text NormalizedIMSTable1.joinToArray("%e.imsId%", true) - In the Assistant says section, enter What do you want to do next?.
- Click Define customer response and then click Options.
- In the Edit Response window, do the following:
- Option 1 - View IMS details
- Option 2 - View IMS regions
- Click Apply.
Step 3:- In the Conditions section, set the following
conditions: For more information on how to add conditions, see Setting conditions and variables for AIOps Assistant flows.
- Condition 1 - Select Action step variables > 2. **What do you want to do next?** selected and set the condition to View IMS details.
- Condition 2 - Select Action step variables > 2. **What do you want to do next?** selected and set the condition to View IMS regions.
- In the Assistant says section, do the following:
- Type the string "Select the IMS ID you want to".
- Press the $ key on your keyboard.
- Select Action step variables > 2. **What do you want to do next?*.
- Type the string "for:".
After you perform the preceding steps from i through iv, the complete expression should be "select the IMSid you want to 2. **What do you want to do next?** for:" - Click Define customer response and then click Options.
- In the Edit Response window, do the following:
- Toggle the Dynamic switch to the On position.
- Select the variable IMSIdList that you defined in the previous step.
- Click Apply.
Step 4:- In the Conditions section, select Action step variables > 3. **Select the IMS Id you want to** ** {variable}** **for:** selected and set the value to Defined.
- Select the variables and their values as described in the following
table. For more information on how to add conditions and variables, see Setting conditions and variables for AIOps Assistant flows.Note: The variable values are provided in boldface to differentiate them from the object values.
Variable Type Value selectedIMSId Free text 3. **Select the IMS Id you want to** ** {variable}** **for:**
Step 5:- In the Conditions section, select and Action step variables > 2. **What do you want to do next?** selected set the value to View IMS details.
- In the Add then section, do the following:
- Select Go to a subaction.
- In the Go to field, select Retrieve IMS details by IMS ID.
- Click Apply.
- In the Add then section, do the following:
- Click Edit passed values.
- Click Set new value.
- Select imsId and set the value to selectedIMSId.
- Click Apply.
Step 6:- In the Conditions section, select Retrieve IMS details by IMS ID (step 5) > Retrieve IMS details by IMS ID result variable and set the value to Defined.
- Select the variable and it's value as described in the following table. For more information on how to add conditions and variables, see Setting conditions and variables for AIOps Assistant flows.Note: The variable values are provided in boldface to differentiate them from the object values.
Variable Type Value selectedIMSId Free text 5. Retrieve an IMS details by IMS ID result variable.value.message.extract('Details[^>]*>:\\s*(\\S+)', 1) - In the Assistant says section, enter Do you want to see IMS regions?
- Click Define customer response and select Confirmation to include the Yes and No buttons.
Step 7:- In the Conditions section, select Action step variables > 6. **Do you want to see IMS regions?** selected and set the value to No.
- In the Add then section, select End the action.
Step 8:- In the Conditions section, set the following conditions:
- Condition 1 - Select and Action step variables > 2. **What do you want to do next?** selectedet and set the value to View IMS regions.
- Condition 2 - Select Action step variables > 3. **Select the IMS ID you want to** **{variable}** **for:** selected and set the value to Defined.
- Add a new condition group and set the following Or
condition:
- Select Action step variables > 6. **Do you want to see IMS regions?** selected and set the value to Yes.
- In the Add then section, select Go to a subaction.
- In the Go to a subaction window, do the following:
- In the Go to field, select Retrieve IMS regions by IMS ID.
- Click Apply.
- In the Add then section, click Edit passed values.
- In the Edit passed values window, do the following:
- Click Set new value.
- Select IMSId and set the value to selectedIMSId.
- Click Apply.