> 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/tpri_jobchat_voicetranscript.md).

# tPri\_JobChat\_VoiceTranscript

{% 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/tPri_JobChat_VoiceTranscript.md).
{% endhint %}

## Description

The transcript, AI title and image of a voice message in a task's chat, with the raw replies of the Google, AWS and ChatGPT services \[[ASK-177](https://github.com/snapfix/docs/blob/main/ASK.md#ask-177-do-the-customer-terms-cover-sending-task-text-photos-recordings-and-chats-to-ai-providers)]. The newest row is from 2023-05; php-apis still has the code that writes it.

<details>

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

```sql
CREATE TABLE `tPri_JobChat_VoiceTranscript` (
  `id` int NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) DEFAULT NULL,
  `uuid_tJobChat` varchar(255) DEFAULT NULL,
  `transcript` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `title` varchar(255) DEFAULT NULL,
  `imageUrl` varchar(255) DEFAULT NULL,
  `gcpResponse` json DEFAULT NULL,
  `awsResponse` json DEFAULT NULL,
  `chatgptResponse` json DEFAULT NULL,
  `fDeleted` tinyint DEFAULT NULL,
  `fCreatedTs` bigint DEFAULT NULL,
  `fModifiedTs` bigint DEFAULT NULL,
  `fServerTs` bigint DEFAULT NULL,
  `uuid_tUser_CreatedBy` varchar(255) DEFAULT NULL,
  `uuid_tUser_ModifiedBy` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE KEY `uuid` (`uuid`) USING BTREE,
  KEY `fk_tPri_JobChat_Reaction_uuidjobchat` (`uuid_tJobChat`),
  KEY `fk_tPri_JobChat_Reaction_createdbyuser` (`uuid_tUser_CreatedBy`),
  CONSTRAINT `tPri_JobChat_VoiceTranscript_ibfk_1` FOREIGN KEY (`uuid_tUser_CreatedBy`) REFERENCES `tPri_User` (`uuid`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  CONSTRAINT `tPri_JobChat_VoiceTranscript_ibfk_2` FOREIGN KEY (`uuid_tJobChat`) REFERENCES `tPri_JobChat` (`uuid`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB DEFAULT CHARSET=latin1
```

</details>

## Columns

| Name                    | Type         | Default | Nullable | Extra Definition | Parents                                                                                   | Comment                                     |
| ----------------------- | ------------ | ------- | -------- | ---------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------- |
| id                      | int          |         | false    | auto\_increment  |                                                                                           |                                             |
| uuid                    | varchar(255) |         | true     |                  |                                                                                           |                                             |
| uuid\_tJobChat          | varchar(255) |         | true     |                  | [tPri\_JobChat](https://docs.snapfix.com/engineering-reference/db/tables/tpri_jobchat.md) |                                             |
| transcript              | text         |         | true     |                  |                                                                                           |                                             |
| title                   | varchar(255) |         | true     |                  |                                                                                           |                                             |
| imageUrl                | varchar(255) |         | true     |                  |                                                                                           |                                             |
| gcpResponse             | json         |         | true     |                  |                                                                                           | Raw JSON reply of the Google Cloud service. |
| awsResponse             | json         |         | true     |                  |                                                                                           | Raw JSON reply of the AWS service.          |
| chatgptResponse         | json         |         | true     |                  |                                                                                           | Raw JSON reply of the ChatGPT service.      |
| fDeleted                | tinyint      |         | true     |                  |                                                                                           |                                             |
| fCreatedTs              | bigint       |         | true     |                  |                                                                                           |                                             |
| fModifiedTs             | bigint       |         | true     |                  |                                                                                           |                                             |
| fServerTs               | bigint       |         | true     |                  |                                                                                           |                                             |
| uuid\_tUser\_CreatedBy  | varchar(255) |         | true     |                  | [tPri\_User](https://docs.snapfix.com/engineering-reference/db/tables/tpri_user.md)       |                                             |
| uuid\_tUser\_ModifiedBy | varchar(255) |         | true     |                  |                                                                                           |                                             |

## Viewpoints

| Name                                                                            | Definition                                                                          |
| ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [chat](https://docs.snapfix.com/engineering-reference/db/tables/viewpoint-3.md) | Task chat messages, their reactions and voice transcripts, and the chat item types. |

## Constraints

| Name                                    | Type        | Definition                                                        |
| --------------------------------------- | ----------- | ----------------------------------------------------------------- |
| PRIMARY                                 | PRIMARY KEY | PRIMARY KEY (id)                                                  |
| tPri\_JobChat\_VoiceTranscript\_ibfk\_1 | FOREIGN KEY | FOREIGN KEY (uuid\_tUser\_CreatedBy) REFERENCES tPri\_User (uuid) |
| tPri\_JobChat\_VoiceTranscript\_ibfk\_2 | FOREIGN KEY | FOREIGN KEY (uuid\_tJobChat) REFERENCES tPri\_JobChat (uuid)      |
| uuid                                    | UNIQUE      | UNIQUE KEY uuid (uuid)                                            |

## Indexes

| Name                                       | Definition                                                                          |
| ------------------------------------------ | ----------------------------------------------------------------------------------- |
| fk\_tPri\_JobChat\_Reaction\_createdbyuser | KEY fk\_tPri\_JobChat\_Reaction\_createdbyuser (uuid\_tUser\_CreatedBy) USING BTREE |
| fk\_tPri\_JobChat\_Reaction\_uuidjobchat   | KEY fk\_tPri\_JobChat\_Reaction\_uuidjobchat (uuid\_tJobChat) USING BTREE           |
| PRIMARY                                    | PRIMARY KEY (id) USING BTREE                                                        |
| uuid                                       | UNIQUE KEY uuid (uuid) USING BTREE                                                  |

## Relations

```mermaid
erDiagram

"tPri_JobChat_VoiceTranscript" }o--o| "tPri_JobChat" : "FOREIGN KEY (uuid_tJobChat) REFERENCES tPri_JobChat (uuid)"
"tPri_JobChat_VoiceTranscript" }o--o| "tPri_User" : "FOREIGN KEY (uuid_tUser_CreatedBy) REFERENCES tPri_User (uuid)"

"tPri_JobChat_VoiceTranscript" {
  int id PK
  varchar_255_ uuid_tJobChat FK
  varchar_255_ uuid_tUser_CreatedBy FK
}
"tPri_JobChat" {
  int id PK
  varchar_255_ uuid
  varchar_255_ uuid_tJob FK
  varchar_255_ uuid_tBusiness FK
  varchar_255_ uuid_tUser_CreatedBy FK
}
"tPri_User" {
  int id PK
  varchar_255_ uuid
  varchar_255_ uuid_tUser_CreatedBy FK
}
```

***

> 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/tpri_jobchat_voicetranscript.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.
