# Add text

1. Select the shape by `name` you want to modify. See [here](/knowledge-base/finding-shape-names.md) to find shape names.
2. Use the `text` field to assign new text to the shape.

Reference: [textbox](/json-template-syntax/shapes/textbox.md)

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1CTmGoTD2KN3_zZS3cA7_AakBkxnD8Pff) | [output.pptx](https://drive.google.com/uc?export=download\&id=17ETLu1CxO2SGK2vFTLC5copByznJhcX2)

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

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

***

<figure><img src="/files/nPDcKQ5uY6F9h36C2qz2" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

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

```json
{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Title 1",
            "text": "Automate PowerPoint Generation"
          },
          {
            "name": "Subtitle 2",
            "text": "Create, fill and manage PowerPoint documentations through simple API requests."
          }
        ]
      }
    ]
  }
}

```

{% 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/text-shape/add-text.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.
