Skip to content

Generative AI

Version badge

Note

You are subject to the terms of the Generative AI model providers to which you are connecting. Cognigy cannot take responsibility for your use of third-party services, systems, or materials.

Generative AI refers to a type of artificial intelligence that creates new, original content, such as images, video, audio, and text, using machine learning algorithms. It works by learning from existing data and producing new content based on that learning.

Cognigy.AI integrates with various LLM Providers to enable Generative AI functionality. This functionality is broadly classified as using Large Language Models (LLMs) to:

To know more about the benefits of integrating Conversational AI with Generative AI platforms, watch this webinar:

Prerequisites

Before using this feature, you need to create an account in one of the LLM Providers:

Design-Time Generative AI Features

During the design phase of creating AI Agents, LLMs can be used to generate a variety of AI Agent resources:

Generate Lexicons

Note that the generation of Lexicons for primary NLU languages besides German and English is not fully supported.

To use Generative AI technology for creating a new Lexicon, do the following:

  1. In the left-side menu of the Cognigy.AI interface, click Build > Lexicons, then + New Lexicon.
  2. In the New Lexicon window, specify the name covering the Lexicon's general main topic and add a relevant description. It helps generate a more accurate result. To ensure that the generated content meets the desired expectations, fill in both fields. Relying solely on the title without using the description field will not produce the intended results.
  3. Go to the Lexicon Entry Generation setting, and activate Generate Lexicon Entries.
  4. Select Lexicon language from the list and set the number of entries (lexicon units).
  5. (Optional) Add the default Slot.
  6. (Optional) Activate Generate Synonyms. Synonyms help AI Agents understand and recognize different variations of the same concept. Up to five synonyms will be generated for each keyphrase.

When the Lexicon Editor with new keyphrases is opened, you can edit, delete, or add new ones manually.

Generate Flows

Note that the generation of Flows for primary NLU languages besides German and English is not fully supported.

To use Generative AI technology for creating a new Flow with pre-configured Nodes based on your scenario, do the following:

  1. In the left-side menu of the Cognigy.AI interface, click Build > Flows, then + New Flow.
  2. In the New Flow window, go to the Flow Generation section and select one of the options:
  3. None — the Generative AI will not be applied to this Flow. This setting is activated by default.
  4. Name and Description — the Generative AI will use the Name and Description fields for generating Flow.
  5. Name and Transcript — the Generative AI will use the Name and Transcript fields for generating Flow. For this setting, you need to create a scenario and put it in the Transcript field. Use the Transcript field template as an example for your scenario.

In the existing Flow, you can edit Nodes created based on your scenario. Generate new Intent sentences or responses for a chatbot.

Generate Intent Sentences

Note that the generation of Intent sentences for primary NLU languages besides German and English is not fully supported.

To use Generative AI technology for creating Intent example sentences, do the following:

  1. Open the existing Flow.
  2. In the upper-right corner of the Flow Editor page, select NLU.
  3. On the Intent tab, click Create Intent.
  4. Specify a unique name for the Intent and add a relevant description. It helps generate a more accurate result. To ensure that the generated content meets the desired expectations, fill in both fields. Relying solely on the title without using the description field will not produce the intended results.
  5. Activate the Generate Example Sentences setting and set the number of generative sentences.
  6. Generate new sentences by clicking Create, then click Build Model.

If you want to add more examples automatically, use the Generate Sentences button. New sentences will be marked in light blue. The system generates specific numbers of sentences. Save changes and build your model again.

You can also use Generative AI in the Node configuration.

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.

Run-Time Generative AI Features

In Cognigy.AI, the Run-Time Generative AI features enrich AI Agents with dynamic interactions using LLMs. These features include running prompts, orchestrating conversations, rephrasing outputs, dynamic question reprompts, and generative knowledge retrieval.

You can configure the following Run-Time Generative AI features:

LLM Prompt Node

The LLM Prompt Node enables you to run a prompt against an LLM and either output the message or store it in the Input or Context objects.

GPT Conversation Node

Warning

This Node is part of Cognigy's large-language-model research efforts and is intended solely as a preview feature. The GPT Conversation Node is not intended for production use. The GPT Conversation Node is deprecated and can no longer be created in Cognigy.AI v4.85 and later. Use the LLM Prompt Node to generate messages with LLM services.

The GPT Conversation Node enables an LLM to orchestrate a complete conversation, including determining the next best action and outputting relevant messages to the customer.

Rephrasing AI Agent Outputs

To use AI-enhanced bot output rephrasing in Say, Question, and Optional Question Nodes, do the following:

  1. Open the existing Flow.
  2. Add one of the Nodes: Say, Question, or Optional Question.
  3. Go to the AI-enhanced output section.
  4. In the Rephrase Output setting, select one of the options:
  5. None — the Generative AI will not be applied to this Node. This setting is activated by default.
  6. Based on Custom Input — specify custom values for the Input. Use the Custom Inputs field that allows the bot developer to input information for contextualizing and rephrasing the output.
  7. Based on previous user inputs — set the last x user Inputs considered.
  8. Set the score in the Temperature setting. The temperature range determines the extent of variation in Generative AI's response.
  9. Click Save Node.

Check in the Interaction Panel if your Flow works as expected.

LLM-powered Question Reprompts

The Question Node includes a feature to output a prompt to the user when they have answered a question incorrectly. Instead of using static text, you can use LLMs to generate a more dynamic and personalized output.

Search Extract Output Node

The Search Extract Output Node uses Cognigy Knowledge AI to execute a search within a Knowledge Store, extracts a relevant answer via a Generative AI model, and creates an output.

LLM Entity Extract Node

The LLM Entity Extract Node retrieves 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.

FAQ

Q1: Can I use my OpenAI free account for the Generative AI feature in Cognigy.AI?

A1: A paid account is required to get an API Key, which is necessary for using Generative AI. A free account does not provide this key.

Q2: Why doesn't Generative AI work with AudioCodes Nodes?

A2: Generative AI output supports only text messages in the AI channel.

More Information