# Create a Controller

Controllers are smart contracts that contain logic which can be used by Safety Modules to determine when to allow assets to be tapped.&#x20;

Controller factories provide an easy way to create new controller contracts programmatically, without the need to implement any custom controller logic. The following controller factories exist:

* [Ownable Controller Factory](/developer-guides/create-a-controller/ownable-controller-factory.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://csm-docs.cozy.finance/developer-guides/create-a-controller.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
