- Determine a use case that aligns with your business objectives.
- Select your model. If you’re using a model from an LLM provider, ensure that you have all the necessary API credentials to access the specific LLM you intend to use.
- Make sure to familiarize yourself with Cognigy’s retry mechanism in case the model doesn’t respond.
- (beta) Implement a fallback strategy to enhance the reliability of the model’s connection.
Use cases
Explore key use cases that illustrate how LLMs can be utilized in Cognigy, and learn about the features necessary to implement these use cases:Automate routine tasks
Automate routine tasks
In the Cognigy interface, LLMs help automate repetitive tasks that previously required manual effort from conversation designers:
- Generate flows. LLMs can generate flows based on the provided title and description, helping save time during conversation design iterations. To generate flows, refer to the Generate flows section.
- Generate lexicons. With LLMs, you can build a list of keyphrases for the language of your choice based on the title and description of the provided lexicon. To generate lexicons, refer to the Generate lexicons section.
- Generate intent sentences. With LLMs, you can build a list of intent sentences based on the title and description of the provided intent. To generate intents, refer to the Generate intent sentences section.
- Generate adaptive cards. LLMs can create adaptive cards based on the prompt you provide in the description field for the Adaptive Card output type in the Say or Copilot: Adaptive Card Tile nodes.
Improve the agent's output
Improve the agent's output
The agent’s output often requires refinement to meet the high standards customers expect.
In Cognigy, LLMs can enhance the performance of agents in various ways:
- Generate enhanced output. By using LLMs, agents can produce responses that are more comprehensive, nuanced, and in line with customer needs. This enhancement is important in handling queries that require a level of empathy or complex information processing. To generate enhanced output, add LLM Prompt nodes within your flow.
- Rephrase the agent’s output. LLMs are good at rephrasing texts while maintaining the original meaning. This capability allows for smoother communication if the original output of an agent lacks clarity or tone alignment. To use this capability, enable AI-enhanced rephrasing in Say, Question, or Optional Question nodes by selecting the Rephrase Output option in the AI-enhanced output section. Also, you can generate dynamic reprompts for incorrect answers via Question nodes.
- Train intents and find the right intent. To enhance agents’ understanding of user inputs in various languages, use an external embedding LLM. Also, optimize intent classification accuracy by using LLM-based intent reranking, which prioritizes and selects the most relevant intent.
Use retrieval-augmented generation (RAG) with Knowledge AI
Use retrieval-augmented generation (RAG) with Knowledge AI
RAG (Retrieval-Augmented Generation) is an AI framework that combines data from information retrieval systems with LLMs. This AI framework makes AI-generated content more accurate and relevant by focusing on specific, up-to-date information.The Cognigy Knowledge AI feature is built on the RAG framework, allowing it to retrieve information from various knowledge bases, including PDFs, Word documents, PowerPoint presentations, web pages, and images. Knowledge AI assists both AI and human agents in providing better responses:
- Use Knowledge AI for agents. Using LLMs integrated into your project, agents can access relevant knowledge sources, including articles from subject-matter experts, frequently asked questions, and diagrams. To create a first Knowledge Store, go to the Knowledge AI documentation. Then, retrieve data from the Knowledge Store and improve the agent’s output by using the Search Extract Output node.
- Use Knowledge AI for human agents. By retrieving data from different knowledge bases, LLMs reduce the burden on human agents, making information access quicker and more efficient. To let human agents use the knowledge base for solving tasks, add a widget to the Agent Copilot workspace using a Copilot: Knowledge Tile node. The widget serves as a search tool, enabling human agents to enter questions and retrieve information from the knowledge base.
Extract specific entities from user inputs
Extract specific entities from user inputs
By using LLMs, you can extract specific entities from user inputs, such as product or booking codes and customer IDs.
For example, if a user input is 
I would like to book flight AB123 from New York to London,
the LLM can extract the booking code AB123 from this input.
This capability allows for dynamic, context-aware responses while improving accuracy and reducing manual data entry.
To add this feature to your agent,
add the LLM Entity Extract node within your flow.
Determine the emotional tone of the conversation
Determine the emotional tone of the conversation
Understanding the emotional tone of customer interactions is crucial. LLMs can analyze conversations in real time to determine customer sentiment.
With Agent Copilot sentiment analysis, LLMs can give insights, enabling human agents to adjust responses for a more effective interaction and improved service quality.
To let human agents use sentiment analysis provided by LLM,
add a widget to the Agent Copilot workspace
using a Copilot: Sentiment Analysis Tile node. The widget monitors the conversation and displays the emotional tone (positive, negative, or neutral) of the latest user input in real time.

Ensure LLM accuracy with human review
Ensure LLM accuracy with human review
Even though LLMs are powerful, there are situations where human oversight is essential.
Errors in data retrieval or sentiment analysis can occur, especially with nuanced or complex information.
Human review can help minimize these errors.Agent Copilot provides plug-and-play widgets in the workspace, allowing human agents to review the output generated by LLMs before sending responses to customers.
This human-in-the-loop approach ensures that wrong or misleading information doesn’t reach customers.
Model types
In Cognigy, you can bring your own models from the offered LLM providers or use included models.Bring your own models
If you use models from LLM providers, you can configure them as either standard models or custom models.Standard models
Standard models are predefined models in the Cognigy interface. To use a standard model, select an LLM provider and model name from the list of predefined models. By choosing a standard model, you can ensure that this model is fully compatible with Cognigy features. After selecting a model, you must enter the API credentials from the LLM provider that offers this model to get access to its functionality.Deprecations and removals
Standard models that have become outdated and are soon to be removed by the LLM provider are marked with special icons in the Cognigy interface. These icons help you stay informed about changes to the model availability and ensure your agents continue to run smoothly.Custom models
Custom models are non-predefined models in the Cognigy interface. To use a custom model, select an LLM provider and manually enter the model name instead of selecting from a list. While these models may not offer the same level of Cognigy feature support as standard models, they can be helpful when you need a specific version and are familiar with its capabilities. Moreover, if LLM providers release new model versions, opting for a custom model lets you avoid waiting for Cognigy to update its list of standard models. As with the standard model, you must enter the API credentials for your custom model from the LLM provider.Included models
Included models are LLMs and embedding models that NiCE Cognigy provides as part of your license. Their usage is included in the conversation price. You don’t need to create a model or enter API credentials. Included models require a new SKU and are available only to installations integrated with NiCE CXone. To set up included models for your organization, contact your customer success manager. To activate and apply included models, see Included models.Retry mechanism
If Cognigy encounters issues while trying to connect with LLM providers that don’t return a200 OK response code,
Cognigy will automatically attempt to reconnect up to three times using a retry mechanism.
This retry mechanism is designed to improve the reliability and stability of the system when using certain Cognigy nodes and features.
By attempting to reconnect multiple times, the retry mechanism increases the chances of successful communication, reduces disruptions and ensures smoother operations within the system.
The following nodes and features are affected by the retry mechanism:
- LLM Prompt
- LLM Entity Extract
- Search Extract Output
- Question node slot mapping (in case of using external NLU embedding)
- Question node LLM reprompting
- Sentiment Analysis
Retry mechanism for on-premises
Retry mechanism for on-premises
The retry mechanism can be customized using environment variables for on-premises installations.
By adjusting these environment variables, system administrators can fine-tune the retry behavior
to suit specific performance requirements and network conditions.