Draw.io Ingestor Skill
Use this skill when you need to extract dialogue turns and conversation flows
from .drawio diagram files.
Protocol for Flowchart & Diagram Traversal
When processing .drawio flowchart designs, you must parse them as complete
directed graphs to construct dialogue paths, rather than extracting flat text
turns.
1. Parse Graph Structural Topology
- Scan
<mxCell> tags where vertex="1". Extract their id and value
(text label).
- Scan
<mxCell> tags where edge="1". Match source and target vertex
IDs to identify directed pathways.
- Clean cell text by stripping internal HTML styling, tags, and formatting
metadata (e.g.,
<div>, <font>, CSS styles). Unescape HTML entities
(e.g., " or <) to obtain clean text.
2. Dialogue State & Path Traversal
- Locate the start node (typically a top-level cell labeled "Start",
"Welcome", or "Entry").
- Perform a step-by-step traversal (DFS/BFS) along the directed edges. Each
unique path from start to a terminal node constitutes a distinct
conversation flow.
- State Mapping:
- Prompt Node: Maps to an Agent Turn (using the node's cleaned
label).
- Directed Edge Label: Maps to a User Input (representing speech
utterances or DTMF keys that trigger that transition).
- Computational Node: Maps to a System Action / Webhook (e.g.,
database lookups or validation calls).
- Decision Diamond: Represents logical branching.
3. Brand and Domain Consistency Mapping
Ensure that you map all domain concepts consistently to the target brand or
theme requested by the user or specified in the requirements. Do not mix
multiple industrial domains in a single report.
- If the target brand has specific concepts, map requirements to fit that
brand's services.
- If no brand is specified, use clean, generic customer service phrasing
suitable for the context.
- Avoid using technical or backend-specific terminology in spoken Agent turns.
4. Format the Resulting CXAS Transcript
Compile the traversed paths into a structured CXAS YAML format complying with
the root-level turn structures (turns containing speaker: Agent|User,
text, and optional actions). Ensure every scenario starts with the
standardized Agent welcome greeting, is voice-realistic, and ends with the
standardized sign-off calling the end_session tool.
Example Target Schema
subintent_id: check_loyalty_status
subintent_name: "Check Loyalty VIP Status"
parent_cuj: "Loyalty Rewards"
turns:
- speaker: Agent
text: "Hello! Thanks for calling [Brand]. How can I help you today?"
- speaker: User
text: "I need to check my loyalty rewards point balance."
- speaker: Agent
text: "I'd be happy to help you check your loyalty rewards point balance. May I have your membership phone number?"
- speaker: User
text: "Yes, it is 555-0199."
- speaker: Agent
text: "Thank you. Let me verify your rewards balance."
webhook_call:
name: check_rewards_balance
payload:
phone_number: "5550199"
response:
vip_status: "ELITE"
points_balance: 1500
- speaker: Agent
text: "I've found your account. You are an Elite member with a balance of 1,500 points. Is there anything else I can help you with today?"
- speaker: User
text: "No, that's all. Thank you."
- speaker: Agent
text: "Thank you for calling [Brand]! Goodbye."
tool_call:
name: end_session
payload:
session_escalated: false
reason: "Conversation completed successfully"
Linguistic & Voice Naturalness Standards
All generated spoken dialogue turns (Agent voice turns) MUST strictly adhere to
high-fidelity spoken voice standards. Subagents must ensure:
- Numeric Voice Normalization: Spoken Agent turns MUST NOT contain raw
digits, formatted currencies, or punctuation symbols representing numbers
(e.g., do NOT write
"450", "$909", "555-0199"). Instead, numbers must
be explicitly spelled out phonetically:
- Correct:
"four hundred fifty points", "nine hundred nine dollars".
- IDs and Phone Numbers: Must be written digit-by-digit separated by
spaces or commas:
"five five five, zero, one, nine, nine".
- Spoken Breath Span Limit: Agent turns must remain concise, natural, and
conversational. Individual spoken text blocks MUST NOT exceed 300
characters inside a single turn.
- Vocabulary Smoothness: Avoid robotic repetitions of the same long words
(do not repeat the same word of length 5+ more than 4 times in a single
turn).
- Conversational Politeness: Agent turns must maintain standard polite
voice markers (
please, thank you, thanks, certainly, happy to help, welcome, goodbye, great day).
1---2name: cxas-drawio-ingestor3description: Extracts conversational transcripts from .drawio XML files.4---56# Draw.io Ingestor Skill78Use this skill when you need to extract dialogue turns and conversation flows9from `.drawio` diagram files.1011## Protocol for Flowchart & Diagram Traversal1213When processing `.drawio` flowchart designs, you must parse them as **complete14directed graphs** to construct dialogue paths, rather than extracting flat text15turns.1617### 1. Parse Graph Structural Topology1819* Scan `<mxCell>` tags where `vertex="1"`. Extract their `id` and `value`20 (text label).21* Scan `<mxCell>` tags where `edge="1"`. Match `source` and `target` vertex22 IDs to identify directed pathways.23* Clean cell text by stripping internal HTML styling, tags, and formatting24 metadata (e.g., `<div>`, `<font>`, CSS styles). Unescape HTML entities25 (e.g., `"` or `<`) to obtain clean text.2627### 2. Dialogue State & Path Traversal2829* Locate the start node (typically a top-level cell labeled "Start",30 "Welcome", or "Entry").31* Perform a step-by-step traversal (DFS/BFS) along the directed edges. Each32 unique path from start to a terminal node constitutes a distinct33 conversation flow.34* **State Mapping**:35 * **Prompt Node**: Maps to an **Agent Turn** (using the node's cleaned36 label).37 * **Directed Edge Label**: Maps to a **User Input** (representing speech38 utterances or DTMF keys that trigger that transition).39 * **Computational Node**: Maps to a **System Action / Webhook** (e.g.,40 database lookups or validation calls).41 * **Decision Diamond**: Represents logical branching.4243### 3. Brand and Domain Consistency Mapping4445Ensure that you map all domain concepts consistently to the target brand or46theme requested by the user or specified in the requirements. Do not mix47multiple industrial domains in a single report.4849* If the target brand has specific concepts, map requirements to fit that50 brand's services.51* If no brand is specified, use clean, generic customer service phrasing52 suitable for the context.53* Avoid using technical or backend-specific terminology in spoken Agent turns.5455### 4. Format the Resulting CXAS Transcript5657Compile the traversed paths into a structured CXAS YAML format complying with58the root-level turn structures (`turns` containing `speaker: Agent|User`,59`text`, and optional actions). Ensure every scenario starts with the60standardized Agent welcome greeting, is voice-realistic, and ends with the61standardized sign-off calling the `end_session` tool.6263## Example Target Schema6465```yaml66subintent_id: check_loyalty_status67subintent_name: "Check Loyalty VIP Status"68parent_cuj: "Loyalty Rewards"69turns:70 - speaker: Agent71 text: "Hello! Thanks for calling [Brand]. How can I help you today?"72 - speaker: User73 text: "I need to check my loyalty rewards point balance."74 - speaker: Agent75 text: "I'd be happy to help you check your loyalty rewards point balance. May I have your membership phone number?"76 - speaker: User77 text: "Yes, it is 555-0199."78 - speaker: Agent79 text: "Thank you. Let me verify your rewards balance."80 webhook_call:81 name: check_rewards_balance82 payload:83 phone_number: "5550199"84 response:85 vip_status: "ELITE"86 points_balance: 150087 - speaker: Agent88 text: "I've found your account. You are an Elite member with a balance of 1,500 points. Is there anything else I can help you with today?"89 - speaker: User90 text: "No, that's all. Thank you."91 - speaker: Agent92 text: "Thank you for calling [Brand]! Goodbye."93 tool_call:94 name: end_session95 payload:96 session_escalated: false97 reason: "Conversation completed successfully"98```99100## Linguistic & Voice Naturalness Standards101102All generated spoken dialogue turns (Agent voice turns) MUST strictly adhere to103high-fidelity spoken voice standards. Subagents must ensure:1041051. **Numeric Voice Normalization**: Spoken Agent turns MUST NOT contain raw106 digits, formatted currencies, or punctuation symbols representing numbers107 (e.g., do NOT write `"450"`, `"$909"`, `"555-0199"`). Instead, numbers must108 be explicitly spelled out phonetically:109 * *Correct*: `"four hundred fifty points"`, `"nine hundred nine dollars"`.110 * *IDs and Phone Numbers*: Must be written digit-by-digit separated by111 spaces or commas: `"five five five, zero, one, nine, nine"`.1122. **Spoken Breath Span Limit**: Agent turns must remain concise, natural, and113 conversational. Individual spoken text blocks MUST NOT exceed **300114 characters** inside a single turn.1153. **Vocabulary Smoothness**: Avoid robotic repetitions of the same long words116 (do not repeat the same word of length 5+ more than 4 times in a single117 turn).1184. **Conversational Politeness**: Agent turns must maintain standard polite119 voice markers (`please`, `thank you`, `thanks`, `certainly`, `happy to120 help`, `welcome`, `goodbye`, `great day`).