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) 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
Create a Save User Input element
Add a Save User Input element and set the Save to Attribute field to a variable name such as
UserQuery. This captures the user’s question.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).
Select the Knowledge Base
Click the Knowledge Base element and, in the sidebar, select the Knowledge Base you created from the dropdown list.
AI models and GO consumption
Plural offers two model tiers for the Knowledge Base element:- 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.
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.
Multilingual automation
If you run the Knowledge Base inside a Plural Automation 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.