# AI Settings

### BotPenguin AI <a href="#botpenguin-ai" id="botpenguin-ai"></a>

BotPenguin utilizes a combination of ChatGPT, proprietary technology, and specialized training to create custom AI models tailored to your business's unique knowledge and customer service needs.

You can feed data to your custom AI model through various sources, including website URLs, content files, and FAQs. This enables BotPenguin to develop AI solutions that deliver exceptional service and support to your customers by leveraging both publicly available information and your business-specific data.

### Setup ChatGPT and AI Settings <a href="#setup-chatgpt-and-ai-settings" id="setup-chatgpt-and-ai-settings"></a>

To integrate ChatGPT into your BotPenguin chatbot and customize its behavior, follow these steps:

**Step 1: Create Your Bots**

* Begin by creating your chatbots. Once you've completed this step, proceed to the next.

**Step 2: Chatbot Settings**

* Navigate to the "AI settings" .

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FRRuzoRmRuIFXy9pjZ7QT%2Fimage.png?alt=media&#x26;token=70d5a239-f62b-4753-a28d-0cec2a9419ea" alt=""><figcaption></figcaption></figure>

**Step 3: Configure Bot's Personality**

* Access "AI Settings" based on the type of chatbot you're setting up:
* Go to Configure Bot's personality
* Toggle off "Let AI Manage bot's personality as needed option" to create your own AI persona

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FYVlnuOGyL6qd6Y2532ue%2Fimage.png?alt=media&#x26;token=8b7554be-3015-4843-92e5-478712e5bda4" alt=""><figcaption></figcaption></figure>

* Click on settings icon to change the existing persona or click on **"use persona"** to use the existing one .

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FmmMqxalxGsYmDqyc88oU%2Fimage.png?alt=media&#x26;token=628b71d5-e5eb-4448-9eb2-72ccae878422" alt=""><figcaption></figcaption></figure>

* Click on Create persona button to create a new persona

<figure><img src="https://partners.botpenguin.com/~gitbook/image?url=https%3A%2F%2F1613146696-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZpVksvLNWoWVCzCZ4a1O%252Fuploads%252F0B1YAMnq64N6qgvVff7z%252Fimage.png%3Falt%3Dmedia%26token%3D3ea820ef-33bf-454d-8c3a-d98aa6d5a37c&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=da9b7828&#x26;sv=2" alt=""><figcaption></figcaption></figure>

* In these settings, you can define the persona details to:
  * **Configure Bot's Personality**
  * **Answer Length**
  * **Answer Perspective (1st person, 3rd person, etc.)**
  * **Tone**
  * **Language**
  * **Answer Formatting**
  * **Included Sources for Response**
  * **Custom Prompt Instructions**
  * **Manage Unusual Chat Scenarios**
  * **Message for When Bot Can't Answer**
  * **Message for Responding to Inappropriate Language Usage**

Persona Details

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FHgX8z0KhVWUM9IM9oZVg%2Fimage.png?alt=media&#x26;token=4211c2cc-a205-4dd8-b22f-5a9d12c6583c" alt=""><figcaption></figcaption></figure>

* In Persona Details enter the persona title, persona description and upload a cover photo for your bot's persona.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FOBUmVEwsm8SBzstZMept%2Fimage.png?alt=media&#x26;token=f2d78f22-6bdb-41e4-a63d-3a8766772a2d" alt=""><figcaption></figcaption></figure>

* In Communication Style, enter answer length, answer as (1st person , 2nd person etc), tone of bot, language used and answer formating. You can also toggle ON/OFF sources and personalize replies with chat history.
* If "include sources for response" is ON it will share the source name of the knowledge base.

**Chat Scenerios**

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2F64lR3IiXmfOGhLXaLUN2%2Fimage.png?alt=media&#x26;token=70d784a0-98bb-4092-8808-2ad6b1563adc" alt=""><figcaption></figcaption></figure>

* You can add a chat scenerio by clicking on "Add Action".
* In Chat Scenarios, select or add an action which gets triggered based on the user's response.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FgvPr2ccHHX2l3OgqMOqV%2Fimage.png?alt=media&#x26;token=1c919357-761b-4d53-985a-cac945d717ba" alt=""><figcaption></figcaption></figure>

* Here you can add a keyword according to which LLM model will identify the chat intent and will give message or flow set by you.
* You can add the chat Intent and message.

**Custom Instructions:**

* In Custom Instructions, add a custom prompt which best defines your bot persona and based on that it will act. Example: "Act as a salesman and use formal tone and be polite and friendly"
* And finally click on "Update" to save the changes.
* You can click on "Use Persona" to use it in you chatflow.

<figure><img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FdmhfrxKWLhxnOPj6Nlgq%2Fimage.png?alt=media&#x26;token=1aca1a95-3e0d-4323-8205-60d4b3cf71b9" alt=""><figcaption></figcaption></figure>

**Persona in Use**

<figure><img src="https://partners.botpenguin.com/~gitbook/image?url=https%3A%2F%2F1613146696-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZpVksvLNWoWVCzCZ4a1O%252Fuploads%252FeFcSnMU78LLXa8mbU3Cs%252Fimage.png%3Falt%3Dmedia%26token%3D5171d242-b623-44d0-b8cf-81e8bce2eb91&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=ea672433&#x26;sv=2" alt="" width="375"><figcaption></figcaption></figure>

* Finally the AI model in your chatflow will work based on the persona set by you.

Note : You can decide how many queries/answers to be handled via AI. After that you can continue your chat flow. Available in Customize Bot Message.

<figure><img src="https://partners.botpenguin.com/~gitbook/image?url=https%3A%2F%2F1613146696-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FZpVksvLNWoWVCzCZ4a1O%252Fuploads%252FHToxSrHGwf1yRpb5H1Jx%252Fimage.png%3Falt%3Dmedia%26token%3D94419ec1-a898-4ab2-9213-679020d0f0db&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=f5e214a0&#x26;sv=2" alt=""><figcaption></figcaption></figure>

**Step 4: Configure ChatGPT Component**

* Integrate ChatGPT model with your bot for better outputs.
* You can invoke the ChatGPT component at multiple points in the chatflow as needed.
* Select a GPT model you want to use after integrating with ChatGPT.

{% hint style="info" %}
Initially it will be set on GPT-3.5 Turbo
{% endhint %}

And you're done! Whenever the ChatGPT component is invoked, your custom-trained model will provide responses based on the settings and training you've configured, enhancing your chatbot's conversational abilities.
