# 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](https://docs.boltai.com/docs/boltai-on-setapp/ai-inline-on-setapp).
{% 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](https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2FYhxD9k9fKvcwfZ8vLz0B%2Fboltai-create-a-new-ai-assistant.jpg?alt=media\&token=1e4d06db-b47a-4443-b41e-12918bec6f91)

### 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](https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2FLJwCvjGfIqCs0E3VCCQB%2Fboltai-assistant-popover.jpg?alt=media\&token=563ad2c7-0a58-4cae-9846-0471eaff7682)

### 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](https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2F46BX7gSb1eXcKGpZ5nCC%2Fboltai-ai-assistant-reordered.jpg?alt=media\&token=6fcbce93-58af-4275-a713-612b8cc0223a)

### 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](https://3493584844-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FynYW2xZqA52spY7XgWis%2Fuploads%2FkpB9lVHdPL6M39SLLYwn%2FCleanShot%202024-05-07%20at%2011.39.17%402x.jpg?alt=media\&token=2cf9de4c-a573-464a-8379-280edc274fc5)

### 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>" %}
