Configure AI Prompt for Copilot for Agents KB Query Extraction
You can use NiCE CXone GenAI Prompts to control the prompt that Copilot for Agents uses to perform KB query extraction. This lets you guide how Copilot for Agents interprets the conversation and formulates knowledge base search queries, including the level of detail, language, and any special instructions you want applied.
Once you've completed your prompt configuration, you can import or enter up to five transcripts to test the settings against. Copilot for Agents uses your custom prompt to extract KB queries from each transcript so you can preview how well the configuration surfaces the right intents and topics.
If you're not satisfied with the queries generated in the test, you can continue to refine your settings and prompt instructions until you are satisfied. After that, you can publish the prompt to make it available for selection within the Copilot for Agents profile on the Copilot for Agents Config page.
If you have the LLM Model Selection license enabled with the Custom Prompt Template feature, you will see a dropdown at the top of each prompt profile that shows the current LLM Model the profile uses. You can select a different model from the list to change it. If the license is not available, the dropdown still appears but is inactive. It displays the model used by the profile, but you cannot make any changes to the selected LLM. If you want to use a different LLM
Large Language Model. A type of AI that processes, understands, and generates human language based on context. for a prompt profile, contact your NiCE CXone Account Representative for assistance.
This table shows the LLMs you can choose from, along with a rating from 1-10 for the speed, accuracy, complexity handling, and hallucination resistance. 1 is always the lowest and 10 is always the highest score. A high score is desirable for speed, accuracy, and complexity handling, but not for cost and hallucination resistance.
Available LLMs and their characteristics may change over time as models are updated.
| LLM Model | Speed | Accuracy | Complexity Handling | Hallucination resistance | notes |
|---|---|---|---|---|---|
| Nova Micro | 10 | 6 | 5 | 6 | Lightweight, low latency; limited reasoning. |
|
Nova Lite |
9 |
7 | 6 | 7 | Higher intelligence than Micro; still lightweight and fast. |
| Nova Pro | 8 | 8 | 8 | 8 | Good balance of intelligence, reasoning, and speed. |
| Claude 4.5 Haiku | 8 | 8 | 7 | 8 | Strong accuracy and reasoning; suitable for efficiency-focused use cases. |
| Claude 4.5 Sonnet | 7 | 9 | 9 | 9 | Flagship-level intelligence and reasoning. |
| Claude 3 Haiku (Deprecated) | 8 | 7 | 6 | 7 | Reliable and efficient for its time. Included for consistency, but other models are likely a better choice for modern applications. |
| Claude 3.5 Haiku (Deprecated) | 8 | 8 | 7 | 8 | Strong accuracy and reasoning; suitable for efficiency-focused use cases. |
| Claude 3.5 V2 Sonnet (Deprecated) | 7 | 9 | 9 | 9 | Flagship-level intelligence and reasoning. |
Complete each of these tasks in the order given.
Create Prompt Profile
Required permissions: GenAI Prompts, Prompt Access Edit
You will also need a license for NiCE CXone Copilot for Agents and the KB Query Extraction feature enabled.
Each flow comes with one default profile. You can create a custom prompt profile either by using a blank form or by copying an existing prompt and making edits. As you're working in the profile, it automatically saves for you only. Others cannot see the new profile, or edits you're making to an existing profile, until you click Publish Prompt. Profiles are also unavailable to select as the live prompt until they have been published.
If you create a new profile but don't publish it within 30 days of the most recent edit, the profile settings on the Prompt Configuration tab revert to their defaults. If you edit an existing profile but don't publish within 30 days of the most recent edit, changes on the Prompt Configuration tab revert to the settings specified in the latest published version.
- Click the app selector
and select General. -
Select AI Studio > GenAI Prompts.
-
Open Copilot for Agents > KB Query Extraction.
-
Create a new profile. You can do this in one of two ways:
-
Create a new, blank profile. To do so, click the plus icon
next to the KB Query Extraction folder. The new profile appears at the bottom of the list. -
Duplicate an existing profile.
-
Click the stacked dots icon
next to the existing profile you want to copy and select Duplicate. -
Rename the copy by locating it at the bottom of the KB Query Extraction profiles, clicking the stacked dots icon
, and selecting Rename. Enter the new name for the profile and click the check mark
to save it.
-
-
-
On the Prompt Configuration tab, adjust the values for these fields as needed:
-
What is the reasoning language?
-
What is the query language?
-
What is the tenant terminology and context?
-
What knowledge base scope?
Learn more about fields in this step
Field Details Reasoning Language Specifies the language used by the model to analyze the conversation and identify intent and key concepts. This setting affects internal reasoning only and does not control the language of the retrieved articles or generated responses.
It is recommended to choose the primary language used in customer or agent conversations.
Query Language Defines the language in which extracted queries are formulated before being submitted to the Knowledge Base. This setting determines which articles are most relevant during retrieval.
It is recommended to align this language with the language used to author Knowledge Base content.
Tenant terminology and context, also called tenant details Supplies tenant-specific language, acronyms, and contextual information that the model uses when forming Knowledge Base queries. Tenant details help normalize domain terms and reduce ambiguity during query extraction.
It is recommended to use product names, feature names, internal acronyms, abbreviations, brand-specific, or industry-specific terminology.
Knowledge base scope Controls which Knowledge Base sources are searched when executing extracted queries. Restricting the scope improves relevance by limiting results to applicable content.
It is recommended to select only the Knowledge Bases required for this prompt’s use case.
Broader scopes increase coverage but may reduce relevance.
-
-
Click Publish Prompt.
Add Transcripts for Testing
Required permissions: Launch GenAI Prompts, Prompt Access Edit
Import a Transcript
-
Click the Transcripts tab.
-
Under the Transcript Options area, in the Type of Transcript File field, select Segment.
-
Enter the segment ID of the transcript you want to use in the What are the segment IDs for the transcripts? text box. Click the add
button. The new transcript appears in the table below the text box. -
Click the paper and pencil icon
to view and edit the imported transcript. The transcript shows dialog from the agent in purple and the contact in blue. -
Modify the transcript as needed. You can take any of the following actions:
-
Click + Agent Phrase or + Client Phrase at the top of the window to add a new dialog box of a certain type. The new agent or contact dialog box appears at the bottom of the transcript. Enter the dialog for the role you selected.
-
Add another dialog box of the same type (agent or client) by selecting the box above where you want the new box and clicking the add dialog box icon
. The new box appears below the box you selected. Enter the dialog you want and then click the save icon
. -
Edit a dialog box by selecting the box you want to change and clicking the pencil icon
. Make the changes you need and then click the save icon
. -
Move dialog boxes higher or lower in the transcript by selecting the box and clicking the up icon
or the down icon
until the box is where you want it. -
Delete a dialog box by selecting the box and clicking the trash can icon
. -
Remove all dialog by clicking Clear in the top right corner of the window.
-
-
Continue to add agent and contact dialog until you have completed the transcript.
-
Click the Back to Transcript List icon
to return to the table of transcripts. -
Continue adding the transcripts you want to test. Testing the prompt will use all of the transcripts you've included in the table.
Manually Enter a Transcript
-
Click the Transcripts tab.
-
For the Type of Transcript File field, select New Transcript.
-
Click Create New Transcript. A new transcript appears in the table below.
-
Click the paper and pencil icon
. -
Modify the new transcript by using the following actions as needed:
-
Click + Agent Phrase or + Client Phrase at the top of the window to add a new dialog box of a certain type. The new agent or contact dialog box appears at the bottom of the transcript. Enter the dialog for the role you selected.
-
Add another dialog box of the same type (agent or client) by selecting the box above where you want the new box and clicking the add dialog box icon
. The new box appears below the box you selected. Enter the dialog you want and then click the save icon
. -
Edit a dialog box by selecting the box you want to change and clicking the pencil icon
. Make the changes you need and then click the save icon
. -
Move dialog boxes higher or lower in the transcript by selecting the box and clicking the up icon
or the down icon
until the box is where you want it. -
Delete a dialog box by selecting the box and clicking the trash can icon
. -
Remove all dialog by clicking Clear in the top right corner of the window.
-
-
Continue to add agent and contact dialog until you have completed the transcript.
-
Click the Back to Transcript List icon
to return to the table of transcripts. -
Continue adding the transcripts you want to test. Testing the prompt will use all of the transcripts you've included in the table.
Test and Publish the Prompt
Required permissions: Launch GenAI Prompts, Prompt Access Edit
After you've configured the prompt settings and added a transcript, you can test your prompt with that transcript. This will help you see what the AI-generated text looks like and gives you a chance to refine your settings. Publishing the prompt makes it available both for others to see and for selection in Copilot for Agents profiles.
-
When you're happy with your transcript, click Test Response.
-
Review the response generated for the customized prompt and transcript you provided. If you're not satisfied with the result, adjust the prompt configuration settings and try again. Continue testing and refining your settings until the extracted queries return the expected Knowledge Base results.
-
Click Publish Prompt.
Select the Prompt in Copilot for Agents
Once you've published the prompt profile, you can select it in the Copilot for Agents Config page profile.
- Click the app selector
and select General. - From the left menu, navigate to AI Studio > Profiles.
- From the list of Copilot profiles on the left, select the Copilot for Agents profile you want to apply the KB Query Extraction prompt profile to. If you don't have one yet, click Add Copilot Profile and follow these instructions to create one.
- On the Knowledge tab, scroll down to the CXone Knowledge Settings section and from the KB Query Extraction Promptdrop-down, select the prompt profile you want to use.
- Click Save.