> For the complete documentation index, see [llms.txt](https://docs.snapfix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snapfix.com/engineering-reference/db/tables/ai_task_title_style_profile.md).

# ai\_task\_title\_style\_profile

{% hint style="info" %}
Generated from the staging database schema, with descriptions drafted by agents ([how to read these docs](https://docs.snapfix.com/how-to-read.md)). [Source on GitHub](https://github.com/snapfix/docs/blob/main/spec/db/tables/ai_task_title_style_profile.md).
{% endhint %}

## Description

One style profile of a site's task titles, which aitask\_pyserver builds from the site's human-written titles for its AI title suggestions. Empty on staging; the service reads it only when title style learning is on, and that setting is off by default.

<details>

<summary><strong>Table Definition</strong></summary>

```sql
CREATE TABLE `ai_task_title_style_profile` (
  `uuid_tParent` varchar(64) NOT NULL COMMENT 'Tenant / site parent UUID (tPri_Business.uuid_tParent)',
  `profile_json` json NOT NULL COMMENT 'Compact style profile: structure stats, exemplars, correction_pairs',
  `version` int NOT NULL DEFAULT '1',
  `sample_size` int NOT NULL DEFAULT '0' COMMENT 'Human titles used when profile was built',
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`uuid_tParent`),
  KEY `idx_title_style_updated_at` (`updated_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
```

</details>

## Columns

| Name          | Type        | Default            | Nullable | Extra Definition                                | Comment                                                              |
| ------------- | ----------- | ------------------ | -------- | ----------------------------------------------- | -------------------------------------------------------------------- |
| uuid\_tParent | varchar(64) |                    | false    |                                                 | Tenant / site parent UUID (tPri\_Business.uuid\_tParent)             |
| profile\_json | json        |                    | false    |                                                 | Compact style profile: structure stats, exemplars, correction\_pairs |
| version       | int         | 1                  | false    |                                                 |                                                                      |
| sample\_size  | int         | 0                  | false    |                                                 | Human titles used when profile was built                             |
| updated\_at   | datetime    | CURRENT\_TIMESTAMP | false    | DEFAULT\_GENERATED on update CURRENT\_TIMESTAMP |                                                                      |

## Viewpoints

| Name                                                                           | Definition                                                                                                                                             |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ai](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-17.md) | Snapfix AI and AI suggestions: agent sessions and messages, brand documents, task insight and title-style data, token usage, the AI job log and queue. |

## Constraints

| Name    | Type        | Definition                  |
| ------- | ----------- | --------------------------- |
| PRIMARY | PRIMARY KEY | PRIMARY KEY (uuid\_tParent) |

## Indexes

| Name                           | Definition                                                   |
| ------------------------------ | ------------------------------------------------------------ |
| idx\_title\_style\_updated\_at | KEY idx\_title\_style\_updated\_at (updated\_at) USING BTREE |
| PRIMARY                        | PRIMARY KEY (uuid\_tParent) USING BTREE                      |

## Relations

```mermaid
erDiagram


"ai_task_title_style_profile" {
  varchar_64_ uuid_tParent PK
}
```

***

> Generated by [tbls](https://github.com/k1LoW/tbls)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.snapfix.com/engineering-reference/db/tables/ai_task_title_style_profile.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
