# Add a Chat Option

The Chat Options dialog is displayed when the user clicks the options button in the `ChatActivity`.

You can add new options like this:

```
ChatOption option = new ChatOptionBuilder().title("New Option!").action((activity, thread) -> {
    // When the option is pressed, you can perform an action

    return null;
}).build();

ChatSDK.ui().addChatOption(option);
```


---

# 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://chat-sdk.gitbook.io/android/api/add-a-chat-option.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.
