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

# Prompt favorites

> The prompt_favorite type records a user's bookmark on a prompt library item.

export const EditionBadge = ({edition}) => <Tooltip tip={edition === "ee" ? "Requires an Enterprise Edition license." : "Available in the Community Edition."}>
    <span style={{
  fontFamily: "RobotoMono, monospace",
  fontSize: "12px",
  textTransform: "uppercase",
  letterSpacing: "0.04em",
  border: "1px solid var(--imp-hair-light)",
  padding: "2px 8px"
}}>
      {edition === "ee" ? "Enterprise" : "Community"}
    </span>
  </Tooltip>;

A `prompt_favorite` is a join record between a user and a `prompt_library_item`. Favoriting a prompt makes it surface at the top of the user's prompt picker in chat. See [Building prompts](/building/prompts) for product context.

```graphql theme={null}
type prompt_favorite {
  user_id: Float!
  prompt_id: String!
  last_processed_at: Date
  embeddings_updated_at: Date
  createdAt: Date
  updatedAt: Date
  id: ID!
}
```

## Field notes

| Field                   | Notes                                                            |
| ----------------------- | ---------------------------------------------------------------- |
| `user_id`               | Numeric ID of the user who favorited the prompt.                 |
| `prompt_id`             | ID string of the favorited `prompt_library_item`.                |
| `last_processed_at`     | Timestamp of the last knowledge-embedding pass over this record. |
| `embeddings_updated_at` | Timestamp when vector embeddings were last regenerated.          |

## Example query

```graphql theme={null}
query {
  prompt_favoritesPagination(
    limit: 50
    filters: [{ user_id: { eq: 42 } }]
    sort: { field: "createdAt", direction: DESC }
  ) {
    items {
      id
      user_id
      prompt_id
      createdAt
    }
    pageInfo {
      currentPage
      hasNextPage
    }
  }
}
```
