> For the complete documentation index, see [llms.txt](https://docs.bitsafe.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bitsafe.finance/product-suite/decentralization-manager/custom-daml-templates.md).

# Custom DAML Templates

Authoring and deploying your own DAML governance templates.

The Decentralization Manager can deploy governance contracts built from your own DAML templates, in addition to the built-in token-custody, utility, and vote plugins. This page covers authoring custom templates and deploying them through the manager.

## Authoring templates

Write your governance logic as DAML templates and compile them into DAR files using the DAML SDK. Templates should define the operator party and any fields the manager will populate when configuring a contract definition. Keep template parameters explicit so they can be mapped to the deployment form in the web UI.

## Deploying templates

Deploy your compiled DAR files from a party card in the web UI by clicking Deploy Contracts and uploading the files. The coordinator distributes the DARs to all participants, prepares the ledger submission, collects multi-party signatures, and executes deployment on the Canton ledger. Configured package IDs for a party can be reviewed through the manager once deployment completes.

## Best practices

Test templates against a local development network before deploying to testnet or mainnet, version your DAR files so deployments are reproducible, and confirm that the operator party and signing thresholds in your template match the decentralized party configuration in the manager.


---

# 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.bitsafe.finance/product-suite/decentralization-manager/custom-daml-templates.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.
