> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Overwrite Analytics

![Overwrite Analytics Node configuration panel](https://mintcdn.com/cognigy-docs-legacy/RomCLoWcsmr9N2pz/_assets/ai/develop/node-reference/analytics/overwrite-analytics.png?fit=max\&auto=format\&n=RomCLoWcsmr9N2pz\&q=85\&s=dfe7e33165115f9348dfff268e406dab)

## Description

> [!WARNING]
>
> As of Cognigy 4.91.0, the Understood Messages concept is deprecated. Use the [Goals and Tasks](https://docs-classic.cognigy.com/ai/agents/analyze/goals-and-tasks/overview) concepts to evaluate whether your AI Agent understood a particular phrase. In Cognigy 2025.19, the charts related to this concept were removed from Insights reports.
>
> As of Cognigy 4.91.0, the `understood` field in the Cognigy OData endpoint is deprecated. The `understood` field has been removed from the Cognigy OData endpoint. Use the [Goals collection](https://docs-classic.cognigy.com/ai/agents/analyze/odata.md#goals) in the Cognigy OData endpoint.
>
> Refer to the list of all upcoming removals on the [Deprecations and Removals](https://docs-classic.cognigy.com/release-notes/deprecations-and-removals.md) page.

This Node allows you to selectively overwrite default values, such as Intents, text, understood messages, and more,
as well as manage the analytics data stored in the [Analytics](https://docs-classic.cognigy.com/ai/agents/analyze/collecting-data.md) database.
You can view this data on the [Insights reports](https://docs-classic.cognigy.com/insights/overview.md) or retrieve it via the [Cognigy OData Endpoint](https://docs-classic.cognigy.com/ai/agents/analyze/odata.md).
You can also use this Node to add custom values.

Empty fields don't overwrite the initial values.
If you add this Node and leave some fields empty, such as the **Intent** default field,
the initial value stored in the Analytics database will remain unchanged.

## Parameters

> [accordion] Custom Fields
>
> Custom fields allow you to store any data as a string value.
>
> Custom fields can be useful for enriching the information about a user's conversation by adding more details.
> For example, if user inputs contain words such as `excellent` or `great`, you can add a custom field with the value `Positive feedback` to make it easier to analyze positive feedback through analytics records.
>
> | Parameter | Type | Description |
> | - | - | - |
> | Custom Value 1 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 2 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 3 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 4 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 5 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 6 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 7 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 8 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 9 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |
> | Custom Value 10 | CognigyScript | Store a custom field that can be set to any string value. The default value is `null`. |

> [accordion] Default Fields
>
> Default fields allow you to change existing data or add new data to the default parameters,
> such as Intents, States, and inputs.
> If a default field is left empty, the previous value will be used in the analytics record.
>
> The table includes the most commonly used parameters for overwriting.
> For example, you can overwrite the Intent name.
> Consider the case where a user says, `I need to return an item`.
> The AI Agent recognizes this message as the `Return request` Intent.
> For more precise tracking,
> you can configure the AI Agent to overwrite this Intent so that it is stored in the Analytics database as `Product return`.
>
> | Parameter | Type | Description |
> | - | - | - |
> | Intent | CognigyScript | Store the intent name. |
> | IntentScore | Number | Store the intent score. |
> | inputText | CognigyScript | Store the input text. |
> | Input Data | JSON | Store additional input data. |
> | State | CognigyScript | Store the State information. |
> | Slots | JSON | Store the Slot information. |
> | Completed Goals | Text | Store a list of completed goals. |
> | Understood | Dropdown | Select one of the following options:<ul><li>**Don't Overwrite** — the current status of the message (whether it is `understood` or `misunderstood`) will not be overridden.</li><li>**True** — the message will be counted as `understood`.</li><li>**False** — the message will not be counted as `misunderstood`.</li><li>**Don't Count** — the message will not be included in the calculation of `understood` or `misunderstood` messages.</li></ul> |
> | Handover Escalations | CognigyScript | Store the number of handover escalations. |

## Examples

> [accordion] Anonymize Personal Data for Privacy in OData
>
> You can anonymize specific text in the field to ensure privacy while maintaining context in OData.
> For example, instead of `My name is Alex, how do I do something?` you can replace it with `My name is <Name>, how do I do something?`.

> [accordion] Clean Up NLU Metrics with Understood
>
> To clean up NLU metrics, you can set the `Understood` field to `null` or `true` in specific circumstances.
> This approach is useful in voice AI Agents for handling Voice Gateway payloads, which are automatically set to `false`.

## Alternatives

Alternatively, you can update analytics records using the [PATCH /v2.0/analytics](https://api-trial.cognigy.ai/openapi#patch-/v2.0/analytics) request.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.