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

# Get conversation analytics

> Summarize the conversation activity and model use in the projects of an account, optionally for one project or label; returns totals, a daily series and recent conversations, with private titles limited to participants.

`conversationAnalytics(input: ConversationAnalyticsInput): ConversationAnalytics!`

Requires account.billing.read.

## Arguments

| Argument | Type | Required |
| - | - | - |
| `input` | [`ConversationAnalyticsInput`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticsinput) | No |

## Input fields

### input

[`ConversationAnalyticsInput`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticsinput)

| Field | Type | Required | Description |
| - | - | - | - |
| `preset` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | 7d, 30d or 90d. Defaults to 30d. |
| `timezone` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | IANA time zone for daily bucket boundaries. Defaults to UTC. |
| `label` | [`[String!]`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Label filters as key or key=value |
| `projectReference` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Project ID or slug that narrows the read to one project of the account |

## Response

Returns [`ConversationAnalytics!`](https://veryfront.com/docs/cloud/graphql/types/conversationanalytics). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `summary` | [`ConversationAnalyticsSummary!`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticssummary) |
| `timeframe` | [`UsageTimeframe!`](https://veryfront.com/docs/cloud/graphql/types/usagetimeframe) |
| `series` | [`[ConversationAnalyticsBucket!]!`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticsbucket) |
| `statuses` | [`[ConversationAnalyticsStatus!]!`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticsstatus) |
| `models` | [`[ConversationAnalyticsModel!]!`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticsmodel) |
| `tools` | [`[ConversationAnalyticsTool!]!`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticstool) |
| `projects` | [`[ConversationAnalyticsProject!]!`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticsproject) |
| `recentConversations` | [`[ConversationAnalyticsConversation!]!`](https://veryfront.com/docs/cloud/graphql/types/conversationanalyticsconversation) |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
query ConversationAnalytics($input: ConversationAnalyticsInput) {
  conversationAnalytics(input: $input) {
    summary {
      activeConversations
      activeConversationsWide
      lastConversationAt
      totalConversations
      totalConversationsWide
    }
    timeframe {
      bucketCount
      from
      granularity
      timezone
      to
    }
    series {
      bucketStart
      conversations
      conversationsWide
      messages
      messagesWide
    }
  }
}
```

```json title="variables.json" theme={null}
{}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


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