> ## Documentation Index
> Fetch the complete documentation index at: https://support.humanizing.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge Base Element: AI Q&A in Your Flow

> Add the Knowledge Base element to your Plural flow so your Avatar answers natural-language questions using GPT, with Standard and Premium model tiers.

The Knowledge Base element connects a pre-built Plural Knowledge Base to your conversation flow and lets your Avatar answer open-ended user questions using AI. This page covers how to use the **element** inside a flow. To create and populate a Knowledge Base in the first place, see [Knowledge Base (setup)](/en/knowledge-base/product-tour/settings/knowledge-base).

## Prerequisites

Before you add the Knowledge Base element to a flow, you need a Knowledge Base that is already created and populated with data sources. If you have not set one up yet, follow [Knowledge Base (setup)](/en/knowledge-base/product-tour/settings/knowledge-base) first. You also need GOs available in your account — the element consumes GOs every time it generates a response.

## Add the Knowledge Base element to your flow

<Steps>
  <Step title="Create a Save User Input element">
    Add a [Save User Input](/en/knowledge-base/elements/save-user-input) element and set the **Save to Attribute** field to a variable name such as `UserQuery`. This captures the user's question.
  </Step>

  <Step title="Drag the output to create a Knowledge Base element">
    Drag the blue output circle from the Save User Input element onto the canvas and release it. Select **Knowledge Base** from the context menu. Choose whether to create the element **with UI** (uses the predefined Knowledge Base screen design) or **without UI** (you build your own response display).
  </Step>

  <Step title="Select the Knowledge Base">
    Click the Knowledge Base element and, in the sidebar, select the Knowledge Base you created from the dropdown list.
  </Step>

  <Step title="Connect the outputs">
    Wire the **Answer found** output to the element that should display or speak the response, and the **No answer** output to a fallback element.
  </Step>
</Steps>

## AI models and GO consumption

Plural offers two model tiers for the Knowledge Base element:

<Tabs>
  <Tab title="Standard (GPT-3.5)">
    The Standard model uses GPT-3.5 Turbo and is suitable for most FAQ and information-retrieval use cases.

    **Cost:** 10 GOs per 1,000 characters of response generated.
  </Tab>

  <Tab title="Premium (GPT-4o)">
    The Premium model uses GPT-4o and delivers higher accuracy, better reasoning, and more nuanced answers — ideal for complex or sensitive topics.

    **Cost:** 100 GOs per 1,000 characters of response generated.
  </Tab>
</Tabs>

<Warning>
  If your account has no GOs remaining, the Knowledge Base element will not generate responses and will route through the **No answer** output. Keep your GO balance topped up to avoid interruptions.
</Warning>

## Manage your data source

From inside the Knowledge Base settings, click **Manage Data Source** to:

* **View** — click a document name to preview it.
* **Delete** — click the trash icon next to a document to remove it.
* **Add** — click **Add New Data Source** to upload additional PDFs.

<Tip>
  After reviewing your conversation history, update your PDFs to include direct answers to the most common questions. The more specific and well-structured your source documents are, the more accurate the AI responses will be.
</Tip>

## Multilingual automation

If you run the Knowledge Base inside a [Plural Automation](/en/knowledge-base/product-tour/settings/plural-automation-eng) frame and need it to respond in the user's current language, append `?lang=#ATTRI/LanguageISO2` to the IoT Trigger URL in the API call from your Avatar frame. This passes the current project language to the automation frame automatically.
