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

# Contextual Attributes

> Using real-time data for better treatment distribution

Auxia's decisioning system delivers the best performance when it uses real-time data.

Contextual attributes, in the GetTreatments request, provide a way to enrich each request with the current context of the user's recent behavior. This information is used during model training and scoring to provide more context and better treatment recommendations.

### Example

Let's take an example of a marketplace use case, where we want to show treatment on the item listing page.

One critical contextual attribute for this use case is the information about the item that the user is currently looking at, like the product category. To deliver better treatments in real-time, we suggest customers pass back this detail in the request.

<table>
  <thead>
    <tr>
      <th />

      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>key</td>
      <td>string</td>
      <td>Identifier for the user attribute</td>
    </tr>

    <tr>
      <td rowspan="8">oneof</td>
      <td>stringValue</td>
      <td>string</td>
      <td>Value in string type.</td>
    </tr>

    <tr>
      <td>integerValue</td>
      <td>int64</td>
      <td>Value in integer type.</td>
    </tr>

    <tr>
      <td>doubleValue</td>
      <td>double</td>
      <td>Value in double type.</td>
    </tr>

    <tr>
      <td>booleanValue</td>
      <td>bool</td>
      <td>Value in boolean type.</td>
    </tr>

    <tr>
      <td>boolValue</td>
      <td>bool</td>
      <td>Value in boolean type.</td>
    </tr>

    <tr>
      <td>timestampValue</td>
      <td>string</td>

      <td>
        Format of the timestamp should be as per ISO format.
        <a href="https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto#L108" target="_blank">[https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto#L108](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto#L108)</a>
        For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
        01:30 UTC on January 15, 2017.
      </td>
    </tr>

    <tr>
      <td>timestampMicrosValue</td>
      <td>int64</td>
      <td>Timestamp value in epoch micros.</td>
    </tr>
  </tbody>
</table>
