# Using single template

1. Assign your PowerPoint template to the `template` field.&#x20;
2. Two ways to do this:
   1. [Attach the file to the payload ](#attaching-powerpoint-template)
   2. [Provide a downloadable link to it](#using-a-powerpoint-template-url)

### Attaching PowerPoint Template

Reference: [presentation](https://docs.powerpointgeneratorapi.com/json-template-syntax/presentation "mention")

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1UQYDCNrjWs7ynDf1cuay5LDqruFO-hzu) | [output.pptx](https://drive.google.com/uc?export=download\&id=15nSoFC7eSS8V93_b9G6wkYfjo4Me-6WP)

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FAcOuOUGMhYVwnZQivrJO%2Ftemplate.png?alt=media&#x26;token=61ab4fef-fa86-4d40-a5be-ef4a01e62e0b" alt=""><figcaption></figcaption></figure>

***

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FriFVORVseSTgIKKl1Cwy%2Foutput.png?alt=media&#x26;token=c6edf9d9-ff80-4149-ae6f-5f428da2f91d" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "tags": [
          {
            "key": "cover",
            "value": "Business"
          },
          {
            "key": "subtitle",
            "value": "Joe Blogs"
          },
          {
            "key": "report_description",
            "value": "How to use Tags in PowerPoint Generator API"
          },
          {
            "key": "date",
            "value": "01 Jan"
          },
          {
            "key": "company",
            "value": "Important LTD"
          },
          {
            "key": "product",
            "value": "API"
          }
        ]
      }
    ]
  }
}
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

### Using a PowerPoint Template URL

Reference: [presentation](https://docs.powerpointgeneratorapi.com/json-template-syntax/presentation "mention")

Download: [input.zip](https://drive.google.com/uc?export=download\&id=19Y7D7cH7y46RWGn1JbPFzntQgboPQT1b) | [output.pptx](https://drive.google.com/uc?export=download\&id=1ObzAn-WGozvQgcBuaYeKvOaTlr27PA-Q)

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FDqN5FHK258wKjL7fq2dV%2Ftemplate.png?alt=media&#x26;token=18ddf9ba-beb9-461f-ba2e-14c2395fb021" alt=""><figcaption></figcaption></figure>

***

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FUCjzDcRzTWYddwLVFrxi%2Foutput.png?alt=media&#x26;token=9e8eda9e-1126-45c0-9275-0b1c986f68ed" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
  "presentation": {
    "template": "https://drive.google.com/uc?export=download&id=1SJA6NG5jKV5bCM6sIqVCVJh20YM3QbTU",
    "slides": [
      {
        "slide_index": 0,
        "tags": [
          {
            "key": "cover",
            "value": "Business"
          },
          {
            "key": "subtitle",
            "value": "Joe Blogs"
          },
          {
            "key": "report_description",
            "value": "How to use Tags in PowerPoint Generator API"
          },
          {
            "key": "date",
            "value": "01 Jan"
          },
          {
            "key": "company",
            "value": "Important LTD"
          },
          {
            "key": "product",
            "value": "API"
          }
        ]
      }
    ]
  }
}

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}


---

# 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.powerpointgeneratorapi.com/examples/presentation/using-single-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.
