# Inline Assistant

In BoltAI, an AI Assistant includes a set of configuration that help you with specific tasks: Software Developer, Technical Writer, Marketing Expert...

I'm working to migrate toward the official Assistants API from OpenAI.

{% hint style="danger" %}
**NOTICE**

This feature is currently in beta. Setapp users can enable this feature following [this guide](/docs/boltai-on-setapp/ai-inline-on-setapp.md).
{% endhint %}

### How to create a new AI Assistant <a href="#how-to-create-a-new-ai-assistant" id="how-to-create-a-new-ai-assistant"></a>

Creating a new AI Assistant is simple. Go to **Settings > AI Assistant**, click on the "+" button.

Fill the form:

1. Give your Assistant a friendly name. For example: "Life Coach"
2. Set the System Instruction for the Assistant.
3. (Optional) Set a custom ID for the Assistant. Note that this will change the **Trigger Phrase** for this Assistant. For the example below, you will need to type `//ask_life_coach`.
4. (Optional) Set other advanced configurations such as GPT Model (only supports OpenAI for now), Temperature or Output Language
5. Click `Save`

Now you can type `//ask_life_coach <your prompt> <Trigger Method>` to use this Assistant

![Create a new AI Assistant](/files/4SDBS2gERHquxZLuTS1Y)

### How to use the Assistant Popover <a href="#how-to-use-the-assistant-popover" id="how-to-use-the-assistant-popover"></a>

When you type `//a`, you trigger the Assistant Autocomplete Popover. The search field supports Fuzzy Search, so you can type `alc`and it automagically suggests the Life Coach assistant.

Alternatively, you can click on the suggestion item, or press `Tab`/`Return` to select the Assistant.

![AI Assistant Popover](/files/wSa5hYje8lsj334nwX6z)

### How to reorder the suggestion list <a href="#how-to-reorder-the-suggestion-list" id="how-to-reorder-the-suggestion-list"></a>

Searching for your Assistants all the time can be annoying, right? Good news, you can re-order the Assistant easily in BoltAI.

Go to **Settings > AI Assistant**, select your Assistant then drag & drop into the new position.

**Demo**

{% embed url="<https://www.youtube.com/watch?v=E97qQ6EiJKs>" %}

Now you will see "Marketing Expert" on top of the list

![AI Assistant Popover 2](/files/FKEyIFXUwxL7ckfLGmfl)

### How to change the Trigger Key <a href="#how-to-change-the-trigger-key" id="how-to-change-the-trigger-key"></a>

You can change the Trigger Key for the AI Assistant Popover in **Settings > AI Assistant**.

If you do not wish to use this feature, you can turn it off for a minor performance gain.

![Change AI Assistant Trigger Key](/files/i1HXoFmuv4G1f4OsjCls)

### Special AI Assistants <a href="#special-ai-assistants" id="special-ai-assistants"></a>

There are 4 special AI Assistants that you cannot delete: BoltAI, DALL·E, Stable Diffusion & Openjourney

1. The BoltAI assistant allows you to ask generic questions. It's similar to using the `gpt:` Trigger Phrase
2. The DALL·E, Stable Diffusion & Openjourney assistant allows you to generate AI images **inline**. See demo below:

{% hint style="info" %}
**Tips**

* If the image isn't showing up, it's likely that the application you're using doesn't support pasting images.
* You can always find the generated images in `~/Pictures/BoltAI`
  {% endhint %}

{% embed url="<https://www.youtube.com/watch?v=8DeNaWrEKzc>" %}


---

# 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-inline/inline-assistant.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.
