# Assistants

<figure><img src="https://lh7-us.googleusercontent.com/slidesz/AGV_vUdhUPyRkOw7qttuz2FP5lSESzvoxIMpQnZetLxX_LGgMgc4NXHorI7p5acNzWSkJg0EOCx_gMuBdIVs_7xqCTqULyA3Aj5wPvSpyjqfp1KwyfhQqOIN0HwGOc1UO6uCaD1SuyCl8e9jDT9L4cwqP2ZeVZTjfZZz=s2048?key=0Vuv-rJx-rGDStWDzAwBDw" alt=""><figcaption><p>Assistant page</p></figcaption></figure>

## Create an assistant

The Assistant detail consists of these fields separated into 5 section, which are

<figure><img src="https://4173380749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzKzxNnOaGxZvAEzvYa7y%2Fuploads%2FipbGJKlTTAzKqtvU2rQJ%2FScreen%20Shot%202567-07-16%20at%2017.37.57.png?alt=media&#x26;token=4e2d1ef8-09c9-45c7-a127-8fcb7f80a799" alt=""><figcaption><p>Create an assistant page</p></figcaption></figure>

### Assistant Setting

* **Assistant Name:** Limit the text type to a maximum of 255 characters.
* **Prompt:** Input your custom prompt instructions here. If you need some inspiration, we have a prompt library you can browse to see if something there might suit your needs.
* **Type:** BOTs+ currently only supports Questions & Answers.
* **Question Input Source:** Choose between generating answers based on the original question or a translated version into English.
* **Greeting Message (optional):** *This setting only applies to the ASAP sandbox.* Show a pre-defined greeting message when a user starts a new session or opens the chat. This will not get sent out to external channels.&#x20;
* **Style**: Pick the temperature of the response from the LLM. Precise (temp = 0.2) causes the LLM to respond in more consistent ways based on the provided context. Create (temp = 0.8) causes the LLM to respond in more diverse and creative ways, while still referencing the provided context.&#x20;
* **Session Reset Timer**: When set to 0, this function is never time out. When a value is selected (1 - 12), the user's session will soft reset if no message is sent to BOT+ during that time period.&#x20;

### Search & Fulfillments

* **Fulfillments (optional):** Connect a fulfillment to attach to your assistant. BOTs+ will search the documents attached to these fulfilment in order to find relevant documents to send to the LLM as part of the Prompt payload.

### Answer Generation

* **Model**: Pick your desired LLM. At the moment, BOTs+ only supports GPT-3.5 and GPT-4.
  * GPT-3.5 is suitable for most tasks however is weak when it comes to logic, pure creation, understanding of sciences, and handling of complex enquires.&#x20;
  * GPT-4 is a better choice for long and complex questions, as well as sentiment analysis, working with numbers, and connecting the dots on discrete pieces of information.&#x20;

### Validator

* **Enable Validation:** enable to select validation method which default to KM Confidence Threshold<br>

  <figure><img src="https://4173380749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzKzxNnOaGxZvAEzvYa7y%2Fuploads%2FJfmWiteq8te3WPCCvWfQ%2FScreen%20Shot%202567-07-16%20at%2017.38.35.png?alt=media&#x26;token=aae38ee1-cd7a-45f4-9891-71bdb7b4a443" alt=""><figcaption></figcaption></figure>

  * KM Confidence Threshold option will filter out all searched chunks that are lower than the set score.
  * If disable this field, it means to ignore the validation and utilize all searched chunk, or as setting 0% of  Confidence Threshold.

<figure><img src="https://4173380749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzKzxNnOaGxZvAEzvYa7y%2Fuploads%2FWPB9hg2NH6ehESeBojEC%2FScreen%20Shot%202567-10-02%20at%2014.18.25.png?alt=media&#x26;token=7fe16f9e-4e6d-4d18-8ee7-40a11741edfe" alt=""><figcaption></figcaption></figure>

* **AI Goal Affirmation (optional):** A set of priority instructions that will be sent to the LLM. This is appended to the Prompt Payload towards the button, which tends to make the LLM give it a higher priority compared to the main Prompt Instructions.
* **Fallback Message:** Provide a fallback message when the assistant cannot generate an answer using fulfillments, limit to 500 characters.

### Integration

* **Event Webhook URL (optional):** Input your webhook URL for ASAP to send events to. ASAP only currently sends a session reset event.
* **Response URL  (optional):** If you are sending out to an external channel, please input the webhook URL here.
