# Output Formats

***

#### **1. Table**

```plaintext
Create a table summarizing key events of the first Moon landing, including date, event, and significance.
```

**Output:**

| Date          | Event                       | Significance                    |
| ------------- | --------------------------- | ------------------------------- |
| July 16, 1969 | Launch of Apollo 11         | Start of historic Moon mission  |
| July 20, 1969 | Moon landing (Eagle landed) | First human landing on the Moon |
| July 24, 1969 | Return to Earth             | Safe completion of the mission  |

***

#### **2. List**

```plaintext
List five facts about the first Moon landing.
```

**Output:**

1. Apollo 11 launched on July 16, 1969.
2. Neil Armstrong was the first person to walk on the Moon.
3. Buzz Aldrin followed Armstrong onto the lunar surface.
4. The mission lasted 8 days, 3 hours, and 18 minutes.
5. The Moon landing occurred in the Sea of Tranquility.

***

#### **3. Summary**

```plaintext
Summarize the Apollo 11 Moon landing in 50 words.
```

**Output:**\
In 1969, Apollo 11 carried astronauts Armstrong, Aldrin, and Collins to the Moon. Armstrong became the first human to walk on the lunar surface, stating, “One small step for man, one giant leap for mankind.” The mission returned safely to Earth, marking a pivotal moment in space exploration.

***

#### **4. HTML**

```html
Generate HTML to create a webpage about the first Moon landing.
```

**Output:**

```html
<!DOCTYPE html>
<html>
<head>
    <title>First Moon Landing</title>
</head>
<body>
    <h1>First Moon Landing</h1>
    <p>The Apollo 11 mission marked the first time humans landed on the Moon, on July 20, 1969.</p>
    <ul>
        <li>Neil Armstrong</li>
        <li>Buzz Aldrin</li>
        <li>Michael Collins</li>
    </ul>
</body>
</html>
```

***

#### **5. Code**

```python
Write Python code that calculates the time Apollo 11 spent on the lunar surface.
```

**Output:**

```python
from datetime import datetime

landing_time = datetime(1969, 7, 20, 20, 17)  # UTC
departure_time = datetime(1969, 7, 21, 17, 54)  # UTC
time_on_surface = departure_time - landing_time

print(f"Time spent on the Moon's surface: {time_on_surface}")
```

***

#### **6. Spreadsheet**

```plaintext
Create a spreadsheet with Apollo 11 mission milestones.
```

**Output**

A Spreadsheet containing the following data:

Here is the data for the Apollo 11 mission milestones:

| Event                      | Date & Time (UTC) |
| -------------------------- | ----------------- |
| Launch                     | 1969-07-16 13:32  |
| Lunar Orbit Insertion      | 1969-07-19 17:21  |
| Lunar Module Separates     | 1969-07-20 13:47  |
| Lunar Landing              | 1969-07-20 20:17  |
| First Moonwalk (Armstrong) | 1969-07-20 02:56  |
| Second Moonwalk (Aldrin)   | 1969-07-20 03:15  |
| Lunar Module Ascent        | 1969-07-21 17:54  |
| Command Module Re-entry    | 1969-07-24 16:50  |
| Splashdown                 | 1969-07-24 16:50  |

This table lists all the major milestones in the Apollo 11 mission with their respective date and time in UTC.

{% file src="/files/6F1lPTcasZiKKvXGVfcl" %}

***

#### **7. Graph**

{% code overflow="wrap" %}

```plaintext
Create a graph showing Apollo 11’s mission timeline.
```

{% endcode %}

**Output:**

<figure><img src="/files/R27ZCsoGEnPhiRkSz3Ka" alt=""><figcaption><p>Apollo 11 mission timeline</p></figcaption></figure>

Here is the graph showing the Apollo 11 mission timeline, with key events plotted along the timeline. Each event is labeled, and the x-axis represents the mission's dates

#### **8. CSV File**

```plaintext
Generate a CSV file with Moon landing crew details.
```

**Output:**

Here is the data for the Apollo 11 Moon landing crew details:

```csv
Name	Role	Born	Died	Nationality
Neil Armstrong	Commander	1930-08-05	2012-08-25	American
Buzz Aldrin	Lunar Module Pilot	1930-01-20	2022-08-26	American
Michael Collins	Command Module Pilot	1930-10-31	2021-04-28	American
This table includes key information about the crew members of Apollo 11, such as their role, birthdate, date of death, and nationality.
```

***

#### **9. Plain Text File**

```plaintext
Write a brief description of the Moon landing in a plain text file.
```

**Output:**\
The Apollo 11 mission, launched by NASA, was the first successful manned mission to land on the Moon. On July 20, 1969, astronauts Neil Armstrong and Buzz Aldrin, aboard the Lunar Module "Eagle," landed in the Sea of Tranquility on the Moon's surface, while Michael Collins remained in orbit around the Moon in the Command Module "Columbia."

Neil Armstrong became the first human to step onto the Moon, followed shortly by Buzz Aldrin. Armstrong's famous words, "That's one small step for \[a] man, one giant leap for mankind," were broadcast to Earth, marking a historic moment in space exploration.

The astronauts spent approximately 21 hours on the lunar surface, conducting experiments and collecting samples, before returning to the Command Module and safely returning to Earth on July 24, 1969.

{% file src="/files/GfS6SjmJlhFGonkR3WwV" %}

#### **10. JSON**

```json
Provide the Moon landing crew information in JSON format.
```

**Output:**

```json
{
  "mission": "Apollo 11",
  "crew": [
    {"name": "Neil Armstrong", "role": "Commander"},
    {"name": "Buzz Aldrin", "role": "Lunar Module Pilot"},
    {"name": "Michael Collins", "role": "Command Module Pilot"}
  ]
}
```

***

#### **11. Rich Text**

```plaintext
Generate a formatted text about the Moon landing using bold and italic styles.
```

**Output:**\
**Apollo 11 Moon Landing**\
\&#xNAN;*Neil Armstrong* and *Buzz Aldrin* became the first humans to walk on the Moon on **July 20, 1969**.

***

#### **12. PDF**

```plaintext
Generate content for a PDF about the Apollo 11 mission.
```

**Output:** Include mission summary, crew details, and images of the lunar module.

{% file src="/files/x61xa7DYNx92UL8abKc6" %}
PDF File
{% endfile %}

***

#### **13. XML**

```xml
Generate XML for the Apollo 11 mission details.
```

**Output:**

```xml
<mission>
    <name>Apollo 11</name>
    <date>1969-07-16</date>
    <crew>
        <member name="Neil Armstrong" role="Commander"/>
        <member name="Buzz Aldrin" role="Lunar Module Pilot"/>
        <member name="Michael Collins" role="Command Module Pilot"/>
    </crew>
</mission>
```

***

#### **14. Markdown**

```markdown
Write a Moon landing description in Markdown.
```

**Output:**

```markdown
# Apollo 11 Moon Landing

**Date:** July 20, 1969  
**Crew:** Neil Armstrong, Buzz Aldrin, Michael Collins  
**Significance:** First human Moon landing
```

***

#### **15. Gantt Chart**

```plaintext
Provide data for a Gantt chart of the Apollo 11 mission.
```

**Output:**

<figure><img src="/files/2S62za6hrKYzLczrzn6P" alt=""><figcaption></figcaption></figure>

Here is the data for a Gantt chart of the Apollo 11 mission, showing the key milestones and their durations:

| Event                      | Start Date (UTC) | Duration (Hours) |
| -------------------------- | ---------------- | ---------------- |
| Launch                     | 1969-07-16 13:32 | 0.5              |
| Lunar Orbit Insertion      | 1969-07-19 17:21 | 2.5              |
| Lunar Module Separates     | 1969-07-20 13:47 | 1                |
| Lunar Landing              | 1969-07-20 20:17 | 1.5              |
| First Moonwalk (Armstrong) | 1969-07-20 02:56 | 2                |
| Second Moonwalk (Aldrin)   | 1969-07-20 03:15 | 1.5              |
| Lunar Module Ascent        | 1969-07-21 17:54 | 0.5              |
| Command Module Re-entry    | 1969-07-24 16:50 | 0.5              |
| Splashdown                 | 1969-07-24 16:50 | 0.5              |

This table provides the start date, duration, and event description. You can use this data to create a Gantt chart. Let me know if you'd like me to plot it for you!

***

#### **16. Word Cloud**

```plaintext
Create a list of words for a word cloud about Apollo 11.
```

**Output:**\
"Moon, Apollo, NASA, Armstrong, Aldrin, Collins, Tranquility, Eagle, Saturn V, 1969, Mission."

***

#### **17. Emojis**

```plaintext
Describe the Apollo 11 Moon landing with emojis.
```

**Output:**\
🚀🌕👨‍🚀🌌🏳️🌍

***

#### **18. An Analogy**

```plaintext
Explain the Apollo 11 Moon landing using an analogy.
```

**Output:**\
"The Apollo 11 mission was like climbing the tallest mountain ever, but instead of using hiking boots, astronauts had to rely on a spaceship built with precision and bravery."

***

#### **19. Bullet Points**

```plaintext
Write bullet points summarizing the Apollo 11 Moon landing.
```

**Output:**

* First human Moon landing: July 20, 1969
* Crew: Neil Armstrong, Buzz Aldrin, Michael Collins
* Lunar Module: Eagle landed in the Sea of Tranquility

***

#### **20. Python**

```python
Generate Python code to calculate Apollo 11’s total mission duration.
```

**Output:**

```python
from datetime import datetime

start = datetime(1969, 7, 16, 13, 32)  # Launch time
end = datetime(1969, 7, 24, 16, 50)  # Splashdown time
duration = end - start

print(f"Apollo 11 mission duration: {duration}")
```

***

21. #### **Mermaid Diagram**

{% code overflow="wrap" %}

```
Create Mermaid code to create a Gantt chart diagram of the Apollo 11 mission
```

{% endcode %}

#### **Output:**

```mermaid
/gantt
    title Apollo 11 Mission Timeline
    dateFormat  YYYY-MM-DD HH:mm
    axisFormat  %Y-%m-%d %H:%M

    section Mission Launch
    Launch                          :a1, 1969-07-16 13:32, 0.5h
    Lunar Orbit Insertion           :a2, 1969-07-19 17:21, 2.5h
    Lunar Module Separates          :a3, 1969-07-20 13:47, 1h
    Lunar Landing                   :a4, 1969-07-20 20:17, 1.5h
    First Moonwalk (Armstrong)      :a5, 1969-07-20 02:56, 2h
    Second Moonwalk (Aldrin)        :a6, 1969-07-20 03:15, 1.5h
    Lunar Module Ascent             :a7, 1969-07-21 17:54, 0.5h
    Command Module Re-entry         :a8, 1969-07-24 16:50, 0.5h
    Splashdown                      :a9, 1969-07-24 16:50, 0.5h

```

The Code can be used in the Mermaid Live Editor (<https://mermaid.js.org/>) to generate the follwing mermaid graphic.

**What is Mermaid?**

Mermaid.js is a JavaScript-based diagramming and charting tool that enables the creation of flowcharts, sequence diagrams, Gantt charts, and more, using a text-based language. It is designed to ease the process of creating complex diagrams by using a straightforward syntax that is easy to read and write. By integrating Mermaid.js into Markdown or other text documents, users can dynamically generate visually appealing diagrams without relying on complex graphic design tools. As an open-source library, it supports a variety of diagram types and is particularly useful in technical documentation and project management for its ability to visually represent processes and timelines.

<figure><img src="/files/IMSsKoH1S2OhoVswwBRw" alt=""><figcaption><p>Mermaid Diagram</p></figcaption></figure>

21. #### **Vector Graphic of the NASA Logo**

    <pre class="language-plaintext" data-overflow="wrap"><code class="lang-plaintext">Create a vector graphic of the NASA "meatball" logo, ensuring scalable resolution and clean lines.
    </code></pre>

    **Output:** An SVG or EPS file of the NASA logo suitable for design and printing.

<figure><img src="/files/yq379ZckPA9cDWhAwqqo" alt=""><figcaption><p>SVG Logo NASA</p></figcaption></figure>


---

# 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://pixelfreund.gitbook.io/prompt-engineering/text-prompts/output-formats.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.
