Workflows

  1. Select Create Workflow from the left-side hamburger menu.

    Figure: Create Workflow

  2. Select the Start Node, choose the event type as WebApp, fill in the details as shown in the image, and then click Save.

    Figure : Select Web App event

    Note: First, use the values shown in the image to create the workflow, and then use the values from the table(List of workflows) for the remaining workflows.

    Figure: Enter the WebApp details.

    Workflow name: indexArticles

    Description: Performs indexing on hourly basis

  3. Select the Code-Based icon, then choose the Action button as shown below.
    Figure 1. Action Icon
  4. After opening the Action node, click the Functions dropdown menu and select the indexArticles function. Then click Save.
    Figure 2. Select indexArticles function
  5. Connect the Start node to the Action node using the connectors, as shown in the image below and click on save.
    Figure 3. Connect Start to Action
  6. Repeat the above steps to set up workflows for the other functions using the values mentioned below.
Table 1. List of workflows
Event Type Workflow Name Workflow Description Function Name to Select
Webapp MachineList Fetches machine list MachineDropDown
Webapp VaultList It fetches a list of Vault Credentials from HCL BigFix Runbook AI. VaultdropDown
Webapp CustomCredList It fetches a list of Custom Credentials ContainerDropDown
Webapp CreateRunbook Creates a runbook based on generated ansible script and available parameters. CREATE_RUNBOOK
Webapp getInventory getInventory
Webapp getProjects getProjects
Webapp ExecutionEnvLis Fetch execution environment list getExecutionEnvironmentList
Webapp SimilarArticles It fetches similar articles based on ticket description. SHOW_SIMILAR_ARTICLES
Webapp PublishArticle It publishes the generated article to ServiceNow. ADD_ARTICLE
Webapp documentSumarze iAUomateDocumentSummarize
Webapp PlaybookSOPGen Generates the SOP based on the playbook provided PlaybookSOPGen
Webapp articles It fetches know knowledge articles from collection and returns the formatted output. GET_INDEXED_ARTICLES
Webapp ansibleGenerate iautomateAnsibleGenerate
External indexTickets Fetches tickets from ServiceNow and performs indexing. INDEX_TICKETS ( Select executable Job and then this function)