# Customize an AI Command

## How to customize an AI Command

You can customize any AI command to fit your needs.  Go to **Settings > AI Command > Select the command** then click "**Edit**"

1. **Command Label**: give it a friendly name
2. **Command Template**: this will be used as the prompt. You can use `{input}` placeholder for the highlighted text
3. **Behavior:** choose how BoltAI should proceed your request
   1. **Answer in a new window**: BoltAI start a new chat window with your prompt
   2. **Insert answer before selection:** BoltAI attempts to insert the answer before your highlighted tex
   3. **Insert answer after selection:** BoltAI attempts to insert the answer after your highlighted text. (Note: do not change your selection during AI is processing)
   4. **Replace current selection:** BoltAI attemps to replace your highlighted text  (Note: do not change your selection during AI is processing)
   5. **Copy to clipboard**: pretty self-explanatory
4. **API Provider:** which AI Provider should be used. Choose "Default" to always use the default AI service in **Settings > Models**
5. **Model:** which LLM model should be used
6. **Answer in language:** by default, BoltAI will answer in the same language as the input. However you can change this to your preferred language.
7. **Icon:** use an emoji as the icon for this AI Command
8. **Keyboard Shortcut:** assign a keyboard shortcut for this command. So instead of pressing `Command + Space` and then choose the command, you can trigger this shortcut directly. Save you 2 clicks

<figure><img src="/files/ZeadgowmxnNLLIzmaPwD" alt=""><figcaption><p>Customize an AI Command</p></figcaption></figure>

### Advanced Configuration

1. **System Instruction:** choose a system instruction to improve the AI output
2. **Temperature**: tweak the GPT `temperature` parameter

<figure><img src="/files/nQnYg7RAthg2YPht6dTw" alt=""><figcaption><p>AI Command Advanced Configuration</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://docs.boltai.com/docs/ai-command/customize-an-ai-command.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.
