# C4 Diagram

<figure><img src="/files/9u3WYNZ21gQDsIUyHato" alt=""><figcaption><p>C4 Diagram</p></figcaption></figure>

## Create C4 Diagram

To create a C4 Diagram:

1. Select first an element where a new C4 Diagram to be contained as a child.
2. Select **Model | Add Diagram | C4 Diagram** in Menu Bar or select **Add Diagram | C4 Diagram** in Context Menu.

## C4 Model

To create a C4 Model (model element only) by Menu:

1. Select an Element where a new C4 Model to be contained.
2. Select **Model | Add | C4 Model** in Menu Bar or **Add | C4 Model** in Context Menu.

## Element (Person, Software System, Container, Component)

To create a C4 element:

1. Select **Person, Software System, Container, Component or Element** in **Toolbox**.
2. Drag on the diagram as the size.

You can use **QuickEdit** for element by double-click or press `Enter` on a selected element.

* **Name** : Edit name.
* **Add Note** : Add a linked note.

You can edit `description` or `technology` properties in **Property Editor**.

> An element is shown as a dashed boundary if it is shown in a diagram which is one of children of the element.

> If you need elements other than Person, Software System, Container or Component, you can use (general) **Element** in Toolbox for Deployment Node, Infrastructure Node, etc.

## Relationship

To create a relationship:

1. Select **Relationship** in **Toolbox**.
2. Drag from an element and drop on another element.

You can use **QuickEdit** by double-click or press `Enter` on a selected relationship.

* **Name** : Edit description.
* **Add Note** : Add a linked note.

You can edit `description` or `technology` properties in **Property Editor**.


---

# 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.staruml.io/working-with-additional-diagrams/c4-diagram.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.
