> For the complete documentation index, see [llms.txt](https://help.clause9.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.clause9.com/clauses/action-buttons.md).

# Action buttons

{% embed url="<https://vimeo.com/463898482>" %}

Action buttons are a good way of making a clause more user friendly in documents. They can have three functions:

* execute a saved search
* browse a folder of your choosing
* present preselected clauses

This way, when the clause with the action button was included in a document, the action button gives the user a shortcut to add further relevant (sub)clauses to the document.

## Adding an action button to a clause

Start editing a clause (either in the *Browse Files* mode or in *Assemble Document*). In the navigation menu on the right, go to *Action Button*.

<figure><img src="https://1353649376-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaTEDNbiFdDa6DW2eNG17%2Fuploads%2Fk1BGubsoO8Aih5Oq455e%2Fimage.png?alt=media&amp;token=d6c77dcf-d5f8-475b-8edc-74a908bbcd50" alt="" width="362"><figcaption></figcaption></figure>

<figure><img src="https://1353649376-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaTEDNbiFdDa6DW2eNG17%2Fuploads%2FGJwJTVuFnnGPvVLZE6X7%2Fimage.png?alt=media&amp;token=b7624c70-73b4-4090-80a8-f2b7e0cba740" alt="" width="360"><figcaption></figcaption></figure>

Click <img src="https://1353649376-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaTEDNbiFdDa6DW2eNG17%2Fuploads%2F0t4MIp2FFy5hR6wOO9mN%2Fimage.png?alt=media&amp;token=08b44c54-f880-488d-affb-3092b196ad7a" alt="" data-size="line">.

* **button caption** — Create a caption for the button (i.e. the text that will be visible on the button), optionally in multiple languages.
* **button position — Where the button should be positioned relative to this clause’s subclauses.**
* **hide button when — The button can optionally be hidden when at least one subclause exists.**
* **action** — Choose one of the three options described above.

## Tips for using action buttons

* Action buttons are especially suited for use when a clause can have several optional subclauses.
* When there is a high number of optional subclauses, it is preferable to use the option to browse to a folder. The contents of that folder can be easily managed (by removing or adding clauses to it) as well.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.clause9.com/clauses/action-buttons.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
