---
title: "Session: How to Customize ID Generation for Entities"
description: "RavenDB provides several ways to create document IDs."
url: "https://docs.ravendb.net/6.2/client-api/session/configuration/how-to-customize-id-generation-for-entities"
version: "6.2"
---

# Session: How to Customize ID Generation for Entities

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## Session: How to Customize ID Generation for Entities

> **Note**
>
> RavenDB provides several ways to create document IDs.
>
> - To get familiar with basic built-in ID generation strategies
>   before starting to customize entity identifiers, please see:  
>   [Working with Document Identifiers](https://docs.ravendb.net/6.2/client-api/document-identifiers/working-with-document-identifiers.md)
>
> - To learn about conventions related to ID customization, please see
>   the following articles, presenting conventions that can be applied
>   to all entity types or to a particular type.
>   - [Global ID Generation Conventions](https://docs.ravendb.net/6.2/client-api/configuration/identifier-generation/global.md)
>   - [Type-specific ID Generation Conventions](https://docs.ravendb.net/6.2/client-api/configuration/identifier-generation/type-specific.md)
