> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.14/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/widgets/saved-by-dbot-roi-widget.md).

# Saved By Dbot (ROI) Widget

In the Dashboard, **Incidents** tab, Cortex XSOAR comes with a number of pre-installed widgets, such as **Saved by DBot**.

The **Saved by Dbot** widget calculates the amount saved in dollars according to actions carried out by all users in Cortex XSOAR across all incidents.

{% hint style="info" %}

### Note

Although the widget comes out of the box with Cortex XSOAR, you can add the **Return on Investment (ROI)** widget in the **Widgets Library**, which is identical to the **Saved by Dbot** widget.
{% endhint %}

The following parameters are used to calculate the amount saved by Dbot (ROI):

| Parameter | Description                                                                                                                                                |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Man Hour  | The amount in dollars of each hour for an analyst.                                                                                                         |
| Roundtrip | The time it takes in minutes to run an integration task with any of the integrated products. This can be a command within a script or inside the War Room. |
| Report    | The times it takes to write an incident report.                                                                                                            |
| Script    | The time it takes to undertake an action that a script would do.                                                                                           |

The ROI is calculated as follows:

**`(# of times roundtrip completed * time taken to do roundtrip) + (# of times report generated * time taken to generate report) + (# of times automation run * time taken to run automation)] * cost of 1 Man hour in dollars.`**

'Number of times' is how many times an automated procedure has run since Cortex XSOAR was installed. If you [reset the Saved by dBOT widget](#UUID-0a21278d-cf0a-de89-2e89-518f374f702a) to 0 via the API after installation, 'number of times' is how many times an automated procedure has run since the last reset. The Saved by dBOT widget is based on absolute time and does not support date ranges.

You can change the way ROI is calculated based on your own statistics of time taken to perform the tasks for the actions when done manually. To change the statistics, select Settings → About → Troubleshooting → **Add Server Configuration** and add the following keys and values:

| Keys                     | Values                                       |
| ------------------------ | -------------------------------------------- |
| **`ROI.Cost.ManHour`**   | Amount in dollars. Default: 60               |
| **`ROI.Time.RoundTrip`** | Amount in minutes (whole number). Default: 5 |
| **`ROI.Time.Report`**    | Amount in minutes (whole number). Default: 5 |
| **`ROI.Time.Script`**    | Amount in minutes (whole number). Default: 5 |

You can also change the [currency symbol](#UUID-78b1f395-c7a1-872a-a50d-dc7f061b1424) from dollars to a currency of your choice.

**Customize the Currency Symbol in the Saved by Dbot Widget**

The default currency symbol in the Saved by Dbot widget is the dollar sign ($). To change the currency symbol, you need to [create a widget using a JSON file](/xsoar-6-administrator-guide/6.14/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/widgets/create-a-custom-widget-using-a-json-file.md).

In this example, which you can use as a template, we changed the value for the **`currencySign`** argument to Euro (€).

```programlisting
{  
   "size":5,
   "dataType":"roi",
   "params":{  
      "currencySign":"€"
   },
   "query":"",
   "modified":"2019-01-12T15:13:09.872797+02:00",
   "shouldCommit":false,
   "name":"Return On Investment (ROI)",
   "shouldPush":false,
   "dateRange":{  
      "fromDate":"0001-01-01T00:00:00Z",
      "toDate":"0001-01-01T00:00:00Z",
      "period":{  
         "by":"",
         "byTo":"",
         "byFrom":"days",
         "toValue":null,
         "fromValue":30,
         "field":""
      }
   },
   "commitMessage":"",
   "isPredefined":true,
   "version":13,
   "id":"roi",
   "shouldPublish":false,
   "category":"others",
   "sort":null,
   "prevName":"Return On Investment (ROI)",
   "widgetType":"number"
}
```

**Reset the ROI Widget**

You can reset the contents of the Return on Investment (ROI) widget by running the following curl command.

**`curl --request DELETE 'https://<SERVER>:<PORT>/statistics/application/roi' \--header 'Authorization: <API_KEY>'`**

{% hint style="info" %}

### Note

In a multi-tenant environment, the API is only exposed on the tenant level.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.14/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/widgets/saved-by-dbot-roi-widget.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
