> For the complete documentation index, see [llms.txt](https://docs.boltai.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boltai.com/docs/ai-command/customize-an-ai-command.md).

# 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="https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2FNxnetj4zVV2K1PFiCqik%2FCleanShot%202024-06-10%20at%2018.19.58%402x.jpg?alt=media&amp;token=ee21381e-9625-462e-a229-842ca00bcc65" 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="https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2FPtBA2tcQ0TIXeMRrHFxt%2FCleanShot%202024-06-10%20at%2018.23.09%402x.jpg?alt=media&amp;token=530ebba5-f467-476c-be06-a8f5ddf2093a" alt=""><figcaption><p>AI Command Advanced Configuration</p></figcaption></figure>
