# Get shape by name

To find a given shape's name, follow these steps:

1. Open your template presentation in PowerPoint.
2. In the `Home` tab find `Arrange` and select `Selection Pane`.

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FBh9y2fvBwNjVi3SiAfsm%2Ffirst.png?alt=media&#x26;token=792e8129-a61b-4df8-bb0f-1b92ec78e77f" alt=""><figcaption></figcaption></figure>

3. The panel on the right will highlight the name of the shapes. Copy the shape names you wanted to populate and customise.&#x20;

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2FQojpwRcVJa0MPGHczyIt%2Fsecond_edit.png?alt=media&#x26;token=cb47ec25-410b-4fd0-ad3b-db24f7fc5a2e" alt=""><figcaption></figcaption></figure>

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

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1prJurJ5B-J3Mfh_rDUMm0ZUrJwwAWTUw) | [output.pptx](https://drive.google.com/uc?export=download\&id=16TVZ1Yf765BuzFB8Ap6VDSYskC-WlLlU)

{% 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%2F3cGbqRewh9oAJfhxVn2b%2Ftemplate.png?alt=media&#x26;token=4eb9e851-46b9-47db-985d-5a8ceddef250" 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%2F2docXCuet4XDokrSVD1s%2Foutput.png?alt=media&#x26;token=a98e5fc8-6dd2-454c-b797-5f9958aaae39" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

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

```json
{
    "presentation": {
        "template": "template.pptx",
        "slides": [
            {
                "slide_index": 0,
                "shapes": [
                    {
                        "name": "Chart 5",
                        "data": [
                            ["Q1", "Q2", "Q3", "Q4"],
                            ["Product A", "Product B", "Product C", "Product D"],
                            [45, 32, 20, 18],
                            [55, 40, 30, 22],
                            [60, 48, 36, 28],
                            [72, 55, 42, 35]
                        ]
                    }
                ]
            }
        ]
    }
}

```

{% 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/shape/get-shape-by-name.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.
