Transaction-based ROI for API automation
Télécharger au format PDF
- Dernière mise à jour2024/10/03
Transaction-based ROI for API automation
In this example, you will build an API automation for an opportunity and use the Pipeline Accelerator package and actions to measure the realized automation value by calculating the number of business records or transactions that have been completed.
Procédure
-
Create and configure the opportunity in CoE Manager.
- Create an opportunity, see Créer et gérer des opportunités.
-
Follow one of the below options to configure the opportunity to measure
the number of times the automation has run.
- In the opportunity intake form, select # of records processed for How is the process measured question.
- In the Opportunity > Details > Forecasted Savings tab, select # of records processed in How is Process Measured option.
- Specify the time (in minutes) required to process a single record and the number of records processed per month.
-
Create an API automation in the Control Room to open a web
page.
-
On the left panel, click Automation.
A list of available bots and forms are displayed.
- Click Create > Tâche API.
- In Name field, enter Calculate transaction ROI.
-
Click Create & edit.
The API automation is now created. Note down the unique automation ID of the automation. In this example, it is 5678.
-
On the left panel, click Automation.
-
Create the following user-defined variables using the Create
variable (+) icon at the top of the
Variables menu.
Variable name Variable type ResponseDictionary Dictionary SampleString Text -
Create a session to enable connection and interaction with Shibumi.
- From the Actions panel, double-click or drag the Pipeline Accelerator > Start Pipeline Accelerator Session action.
- In the Session name field, provide a name, enter transactionROI.
-
In the Shibumi base URL field, enter the base
URL as per your region.
In this example, base URL used is https://app.shibumi.com.
-
In the Shibumi enterprise ID field, enter the
enterprise ID.
In CoE Manager, navigate to Admin Advanced > Additional Settings.
-
In the Shibumi program id field, enter the
program ID.
Click the menu (three vertical dots) on the right and select Info > ID. Example, 1.
-
Enter the Client ID and Client
secret.
Raise a service request to receive the client ID and secret through email.
-
Enter the API username and
password.
The username and password of your CoE Manager instance tied to the client ID and client secret.
-
Send transaction ROI details.
-
From the Actions panel, double-click or drag the REST Web Services > Get method action.
- In the URI field, enter the URI of the web page you want to
open.
Example, https://www.salesforce.com/in/.
- In the Proxy configuration field, select System.
- In the Authentication Mode dropdown, select No Authentication.
- In the Wait for action to complete (in milliseconds) field, enter 60000.
- Assign the output to a variable field, choose the Dictionary option and select ResponseDictionary variable from the dropdown.
- In the URI field, enter the URI of the web page you want to
open.
-
From the Actions panel, double-click or drag the If > If action to configure the conditional statement.
- In the Condition drop-down list, select Dictionary.
- From the Dictionary variable drop-down
list, select the variable
ResponseDictionary.
The Key field is automatically updated to the value Response.
- From the Dictionary type drop-down list, select String.
- In the Operator drop-down list, select Equals to(=).
- In the Target Value field, type HTTP/200 OK.
-
From the Actions panel, double-click or drag the Pipeline Accelerator > Update process metrics action into the If
container.
- In the Session name field, enter transactionROI.
- In the Automation ID field, enter 5678.
- In the Process name field, enter Calculate transaction ROI.
- In the Date field, choose Variable option and enter the $System:Date$.
- In the Mode field drop-down, select Add.
- In the Process metrics field, select Dictionary option.
- Click Add to update the successful
automation execution count in CoE Manager.
Field Value Type Number Key Actual_Successful_Executions_per_Day__m Value 1 - Click Add to update the failed automation
execution count in CoE Manager.
Field Value Type Number Key Actual_Failed_Executions_per_Day__m Value 0 - In the Status field drop-down, select the variable SampleString.
- From the Actions panel, double-click or drag the If > Else action to configure the alternative sequence of action.
-
From the Actions panel, double-click or drag the Pipeline Accelerator > Update process metrics action into the Else
container.
- Perform steps Transaction-based ROI for API automation to Transaction-based ROI for API automation.
- Click Add to update the successful
automation execution count in CoE Manager.
Field Value Type Number Key Actual_Successful_Executions_per_Day__m Value 0 - Click Add to update the failed automation
execution count in CoE Manager.
Field Value Type Number Key Actual_Failed_Executions_per_Day__m Value 1 - In the Status field drop-down, select the variable SampleString.
You can see the updated metrics in CoE Manager (Opportunity > Transaction Tracking > Transaction Metrics)
You can see the ROI information in the CoE Manager opportunity dashboard. -
From the Actions panel, double-click or drag the REST Web Services > Get method action.