Skillset Engine
The Skillset Engine powers CogniAgent’s conversational AI capabilities. It turns traditional forms into natural conversations — instead of filling out fields, users simply talk to an AI that guides them through providing information.What is a skillset?
A skillset is a conversational AI agent that knows how to collect specific information through dialogue. Think of it as a smart assistant that:- Asks questions naturally, not like a form
- Understands various ways people might answer
- Handles corrections and changes gracefully
- Knows when to ask for clarification
- Can search knowledge bases for answers
- Escalates to humans when needed
Key capabilities
Natural conversations
Users provide information through natural dialogue, not rigid forms.
Smart data collection
Collects structured data while handling variations in how people respond.
Knowledge integration
Search your knowledge base to answer questions during conversations.
Automatic escalation
Transfers to human agents when the AI can’t help or the user requests it.
How it works
Conversation starts
A workflow triggers the skillset (via the Ask a Person node) with initial context and any pre-filled data.
AI guides the conversation
The skillset engine sends a greeting and begins collecting required information through natural dialogue.
User responds
Each user message is analyzed. The AI decides whether to accept the answer, ask for clarification, or move to the next question.
Data is collected
As the conversation progresses, structured data is extracted and stored. Users can update previous answers at any time.
Conversation tools
The skillset engine uses a set of conversation tools to manage dialogue flow. The AI chooses which tool to use based on the user’s response:| Tool | What it does |
|---|---|
| Accept answer | User provided a valid answer — save it and move on |
| Reject answer | Answer needs clarification — ask the user to try again |
| Skip field | User can’t or won’t answer — skip this optional field |
| Update field | User wants to change a previous answer |
| Mark unknown | User explicitly doesn’t know the answer |
| Confirm complete | All data collected — ask user to confirm before finishing |
| Transfer to human | User needs human help — escalate the conversation |
| End conversation | Conversation is complete — wrap up |
| Search knowledge | User asked a question — search the knowledge base for answers |
The AI makes these decisions automatically based on context. You don’t need to program conversation flows — just define what information to collect.
Defining what to collect
Skillsets collect form fields through conversation. Each field has:Field properties
Unique identifier for the field. Used to reference collected data.
Human-readable name shown in summaries and confirmations.
What information this field collects. The AI uses this to understand what to ask for.
Data type:
text, number, selection, date, boolean, email, phone.Whether this field must be collected before completing.
For selection fields, the valid choices the user can pick from.
How many times to ask before skipping (optional fields) or escalating (required fields).
Dynamic fields
Fields can be generated dynamically from workflow data. Use templates to create fields at runtime:survey_questions array from your workflow.
Skillset configuration
A complete skillset configuration includes:Configuration sections
Persona
Persona
Defines the AI’s personality:
- agentName — What the AI calls itself
- organization — Company the AI represents
- tone — How the AI should communicate (professional, casual, empathetic)
Input variables
Input variables
Data passed from your workflow to personalize conversations:
- Contact name, company name, account details
- Previous interaction history
- Any context the AI should know
Settings
Settings
Conversation behavior controls:
- maxFieldAttempts — Attempts before skipping/escalating a field
- maxConsecutiveClarifications — Rejections before auto-escalating
- requireConfirmation — Whether to confirm data before completing
Behavior constraints
Behavior constraints
Rules the AI must follow:
- Topics to stay within
- Information it shouldn’t share
- Actions it should avoid
Guardrails
The skillset engine includes safety guardrails that protect conversations:Automatic escalation
The AI automatically transfers to a human when:- User explicitly asks to talk to a person
- Too many clarification attempts on the same field
- User expresses frustration or uses inappropriate language
- The AI can’t understand repeated responses
Content safety
Built-in checks prevent the AI from:- Providing professional advice (legal, medical, financial)
- Sharing inappropriate content
- Going off-topic for extended periods
Actions and events
Skillsets can trigger actions and emit events during conversations.Actions
Actions perform operations when certain conditions are met:- When a specific field is collected
- When all required fields are complete
- When the conversation ends
Events
Events notify your workflow about conversation milestones:conversationStarted— Conversation beganfieldCollected— A field value was collectedconversationCompleted— All data collected successfullyconversationEscalated— Transferred to human agent- Custom events from your action definitions
Knowledge base integration
Connect a knowledge base to let the AI answer questions during conversations:- Searches the knowledge base for relevant information
- Provides an answer based on what it finds
- Continues collecting the required information
Knowledge search is a tool the AI uses when appropriate. It won’t search for every message — only when users ask questions it can’t answer from context.
Conversation states
Every conversation has a state that tracks progress:| State | Description |
|---|---|
greeting | Sending initial message |
collecting | Gathering information through dialogue |
confirming | Asking user to confirm collected data |
completed | Successfully finished |
escalated | Transferred to human agent |
ended | Conversation closed (may be incomplete) |
{{dispatcher_1.status}}
Example: Pizza order taker
A complete skillset for taking pizza orders:View full configuration
View full configuration
AI: Hi! Welcome to Papa’s Pizzeria. What can I get for you today? User: I’d like a pepperoni pizza please AI: Great choice! What size would you like — small, medium, or large? User: Large AI: One large pepperoni pizza! Where should we deliver it? User: 123 Main Street, Apt 4B AI: Perfect! Let me confirm your order: One large pepperoni pizza delivered to 123 Main Street, Apt 4B. Is that correct? User: Yes! AI: Your order is placed. Thank you for choosing Papa’s Pizzeria!
Using skillsets in workflows
Skillsets are used through the Ask a Person node:Configure channels
Select which channels users can communicate through (email, Slack, web widget, SMS).
