# Inisghts

The `inisghts`query returns a series of tracking-related insights for the given date in relation to the previous two weeks.

### Required Arguments

<table data-header-hidden><thead><tr><th></th><th width="219"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Type</td><td>Description</td></tr><tr><td><code>date</code></td><td>DateTime!</td><td>Date to analyze</td></tr><tr><td><code>category</code></td><td>InisghtsCategory</td><td>Optional. To filter by category.</td></tr></tbody></table>

### Available Fields

|               |        |                           |
| ------------- | ------ | ------------------------- |
| Field Name    | Type   | Description               |
| `highlight`   | String | Value of the change       |
| `text`        | String | Description of the change |
| `description` | String | Supporting content        |

### Example

{% tabs %}
{% tab title="Request" %}

```graphql
query($date: Date!, $category: InsightsCategory){
    insights(date: $date, category: $category){
        category fields{ highlight text description}
    }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
   "data":{
      "insights":[
         {
            "category":"SLEEP",
            "fields":{
               "highlight":"+1",
               "text":"You've increased your sleep time by 1 hours in the past 7 days.",
               "description":"Quality sleep is the foundation of a healthy mind and body."
            }
         },
         {
            "category":"STEPS",
            "fields":{
               "highlight":"-408",
               "text":"You've decreased your daily step count by 408 on average in the past seven days.",
               "description":"Embrace each stride, your wellness journey begins with every step."
            }
         }
      ]
   }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://docs.suggestic.com/graphql/query/queries/tracking/inisghts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
