# Smart Diagrams

Smart Diagrams are graphical representations of contract terms, dynamically connected to the value of fields in the document.

If you change a connected field the diagram is updated in AllDrafts to reflect the change.

Smart Diagrams make contracts easier to understand, and their dynamic nature ensures that the diagram and the underlying contract text remain in sync.

## Configuration

<figure><img src="/files/X1pA9kJG3fhVSimB3Egb" alt=""><figcaption><p>The Smart Dialog modal for insertion.</p></figcaption></figure>

Each Smart Diagram comes with associated clauses the contain all the fields used by the diagram. (Some are required in order to render the diagram, and others are optional.)

By default, inserting a Smart Diagram inserts both the diagram and the matching clauses, to help ensure consistent messaging and use of the named fields. The modal warns you if a named field that will be inserted already exists in the document, and if it has a conflicting definition.

Once you've inserted the associated clauses they are just normal text in the document and you can edit, delete, or rewrite them as needed. Your are not constrained to using the exact language that is inserted with the diagram.

The Smart Diagram will continue to work as long as the named fields are present. If you delete a Required named field, though, the diagram will update to warn you that it cannot be accurately displayed without the required field.

## Example

<figure><img src="/files/uTVtIJCT18fEsy7Y2p1t" alt=""><figcaption><p>An example of how the NDA Smart Diagram might appear in a contract.</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://help.alldrafts.com/alldrafts-documentation/document-editor/smart-diagrams.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.
