

# Analysis templates in AWS Clean Rooms
<a name="create-analysis-template"></a>

Analysis templates work with the [Custom analysis rule in AWS Clean Rooms](analysis-rules-custom.md). With an analysis template, you can define parameters to help you reuse the same query. AWS Clean Rooms supports a subset of parameterization with literal values. 

Analysis templates are collaboration-specific. For each collaboration, members can only see the queries in that collaboration. If you plan to use differential privacy in a collaboration, you should make sure that your analysis templates are compatible with the [general-purpose query structure](custom-diff-privacy.md#dp-query-structure-syntax) of AWS Clean Rooms Differential Privacy.

You can create an analysis template in two ways: using SQL code or using Python code for Spark.

**Topics**
+ [SQL analysis templates](sql-analysis-templates.md)
+ [PySpark analysis templates](pyspark-analysis-templates.md)
+ [Troubleshooting PySpark analysis templates](troubleshooting-pyspark-analysis-templates.md)

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS Clean Rooms. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query clean-rooms` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
