# How to Create and Publish a Template

## 1. Initiating Template Creation

There are two primary ways to start the template creation process:

### Option A: From the Community Profile Page

<figure><img src="/files/rDP3ySYqemETtQHfOVCp" alt=""><figcaption></figcaption></figure>

1. Navigate to your "**My Community Profile**" page.
2. Click the "**Create**" button located next to the **Sort by** menu.
3. A modal titled "**Create a Template**" will appear. It outlines the three main steps: Create a flow, convert it into a template, and publish your template.
4. Click "**Create a new flow**" inside the modal to be redirected to the Workflow Builder.

### Option B: From the Workflow Builder

<figure><img src="/files/lXOblKoJ6XiGF8CiX5x6" alt=""><figcaption></figcaption></figure>

1. Open the specific workflow you wish to convert into a template.
2. Click the three-dot menu (...) in the top right corner of the builder canvas.
3. Select "**Create template**" from the dropdown menu.

<figure><img src="/files/Z15OKIpwV1MFRUZAlxkE" alt=""><figcaption></figcaption></figure>

## 2. Converting Your Flow to a Template (Settings Popup)

Once you click "**Create template**," a Settings pop-up will appear, where you can fill in the details.

{% hint style="info" %}
***Note:** If your flow is currently unpublished, the system will automatically publish it before showing the pop-up. If it is already published, the pop-up will appear immediately.*
{% endhint %}

**Criteria for submission:** Before submitting, make sure your template meets these quality standards:

* **Practical & Original:** Your template must be useful, unique, and not a copy of an existing template.
* **Clear Description:** Write a well-structured description so other users know exactly how to use it.

**Required Fields to Fill In:**

* **Name:** Enter a clear and descriptive name. Maximum 60 characters. *Example: "Project Manager Video Script".*
* **Categories:** Select relevant tags, such as Marketing or Finance, so users can easily find your template in the marketplace.
* **Description:** Provide a detailed guide on what the workflow does, its key benefits, and how to set it up.

<figure><img src="/files/iUJYVyEeTpGjre05x1Mn" alt=""><figcaption></figcaption></figure>

## 3. Submitting for Review

* Once all required fields are complete, click the **Create** button.

<figure><img src="/files/g8ybmCenNvub7xNuXSF5" alt=""><figcaption></figcaption></figure>

* **Success message:** You will see a notification that says, *"Your template has been created successfully! We will review it soon. This usually takes a few days."*

<figure><img src="/files/XwKQ8lDeyooDUwvEaW9y" alt=""><figcaption></figcaption></figure>

The system will then redirect you back to your **My Community Profile** page. Your new template will appear there with the status **Waiting for review**.

<figure><img src="/files/7gZjZ29np0ZMdC0FdMyb" alt=""><figcaption></figcaption></figure>

## 4. Template Review Status Flow

After submission, your template will go through the following stages. You can check these statuses on your profile:

* **Waiting for review:** The template is in the queue.
* **In Review:** The Admin Team is actively checking its quality and functionality.
* **Public (Approved):** The Admin has approved your template. It is now visible on the Community page.
* **Need change (Rejected):** Issues were found, such as a broken flow or a missing description. *(You must edit the flow to fix the issues and resubmit it.)*

## 5. Template Approved

Once approved by the Diaflow team, the template will switch to **Public** status.

At this point, your template will appear on the Community page.

<figure><img src="/files/gV55Gu1t5GMV5xy05YAN" alt=""><figcaption></figcaption></figure>

If you want to switch it to **Private** mode, see the [Managing Your Shared Templates guide](/workspace/community/template/managing-your-shared-templates.md).

#### Need help?

* *Need to make edits, fix a rejected template, or change its visibility? See* [*Managing Your Shared Templates.*](/workspace/community/template/managing-your-shared-templates.md)
* *Want to ensure your submission gets approved quickly? Review our* [*Community Template Submission Guidelines.*](/workspace/community/template/community-template-submission-guidelines.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://docs.diaflow.io/workspace/community/template/how-to-create-and-publish-a-template.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.
