Skip to main content

Base Corpus

A Base Corpus Skill forms the basis of all conversational content in a Digital Person project.

Each project must have a Base Corpus Skill, and it may not have more than one. This Skill is given first priority to fulfill any user input, so long as another Skill is not currently actively engaging in a multi-turn interaction with the user.

A Base Corpus must be able to identify user intents from text input, and respond with a text response for each intent. It must always respond to user input, even if the response is a NO_MATCH response indicating that the Skill could not identify the user's intent and does not have a useful response.

Common use cases

A Base Corpus Skill must provide the primary conversational content for a project, but the source of that content can be either pre-written by the Skill developer, or can be an NLP Adapter which sources content from a third-party API, such as a conversation provider.

Implementation requirements

Implementation requirements for a Base Corpus:

  • It must respond to every user input, otherwise an error will occur and cause the Digital Person to stop interacting.
  • It must respond with a NO_MATCH intent if it doesn't have a good response for the user, so that other Skills in the project can be given an opportunity to respond.

Creating a Base Corpus

A Base Corpus Skill can be created using your preferred method:

Registering a Base Corpus

Example Skill Definition for a Base Corpus Skill:

skill-definition.json
{
"name": "My Skill",
"summary": "skill summary here",
"description": "",
// ... other skill properties
"config": {
"skillType": "BASE_CORPUS"
}
}