# Component Templates

Use a *Component Template* to create one or more components from a template.

*Templating* extends the [Smart Copy](/boomi-console/commands/comp-components/smart-copy-explained.md) functionality by supporting placeholder variables in your components which will be replaced during Smart Copy

A *Component Template* is a set of components.&#x20;

A **Template Component** may contain placeholders, like `${ProcessName}` or `${API.Service}`.   &#x20;

<div align="left"><figure><img src="/files/nKZ5e4mwssTe4zhD8Ucn" alt="" width="305"><figcaption><p>A JSON Profile with placeholders</p></figcaption></figure></div>

Placeholders are replaced in the newly create component instance - after the original component was copied - by looking up a JSON file of any type. Applying the following JSON on the `j.${EndpointName}.REQ` will name the copied profile: `j.GetStaffCodeInfo.REQ`.

```json
{
    "EndpointNumber" : 141,
    "EndpointMethod" : "Post",
    "EndpointName"   : "GetStaffCodeInfo",
    "API" : {
        "EndpointMethod"    : "Get",
        "Service"           : "contact",
        "EndpointName"      : "get-staff-code-info-v1"
    }
}
```

In addition, references in component templates are *smart-replaced* to avoid copying shared components and to redirect dependencies to the newly created component set.

[Component Template Example](/boomi-console/command-collection/component-templates/component-template-example.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://boomi.markusschmidt.pro/boomi-console/command-collection/component-templates.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.
