Cxas Autolabel Rules logo

Cxas Autolabel Rules

Organization
GoogleCloudPlatform
cxas-autolabel-rules

Author, validate, and manage Contact Center AI (CCAI) Insights Autolabeling Rules. Use when users want to translate business labeling logic into CEL condition expressions, maintain declarative autolabel_rules.yaml configurations, or synchronize rules to GCP projects.

Overview

PublisherGoogleCloudPlatform
Repositorycxas-scrapi
Skill namecxas-autolabel-rules
Stars
113
Forks
106
Bundled files
5
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by GoogleCloudPlatform on GitHub. Read the source before you install it.

Installation

Install the Cxas Autolabel Rules AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GoogleCloudPlatform/cxas-scrapi/tree/main/.agents/skills/cxas-autolabel-rules
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GoogleCloudPlatform/cxas-scrapi.git /tmp/cxas-scrapi
mkdir -p .claude/skills
cp -r /tmp/cxas-scrapi/.agents/skills/cxas-autolabel-rules .claude/skills/cxas-autolabel-rules
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cxas Autolabel Rules in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cxas Autolabel Rules on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cxas Autolabel Rules is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

CCAI Insights Autolabeling Rules Skill

This skill guides you in authoring, refining, validating, and synchronizing Contact Center AI (CCAI) Insights Autolabeling Rules.

Autolabeling rules enrich ingested conversations with custom key-value metadata evaluated via Common Expression Language (CEL).


1. Overview & Declarative YAML Schema

Rules are defined declaratively in autolabel_rules.yaml:

yaml
version: "1.0"
project_id: "your-gcp-project-id"
location: "us-central1"

autolabeling_rules:
  - rule_id: "agent_domain"
    display_name: "Agent Domain Classifier"
    label_key: "agent_domain"
    label_key_type: "LABEL_KEY_TYPE_CUSTOM"
    active: true
    conditions:
      - condition: "containsSubAgent(conversation, 'billing_specialist')"
        value: "'billing'"
      - condition: "containsSubAgent(conversation, 'tech_support')"
        value: "'tech_support'"
      - condition: ""
        value: "'general'"

Core Schema Requirements

  1. rule_id: Unique alphanumeric identifier (snake_case or kebab-case).
  2. label_key: The metadata key name to attach to conversation.labels.
  3. conditions: Ordered array of conditions evaluated top-to-bottom.
    • condition: CEL boolean expression (e.g. conversation.duration > 300).
    • value: CEL expression or quoted string literal (e.g. 'vip', 'escalated').
    • Mandatory Fallback: The final condition in every rule MUST be condition: "" to act as the default fallback value.

2. Common Expression Language (CEL) Authoring Rules

Refer to the CEL Cookbook for full syntax and function references.

Built-in Helper Functions

  • Sub-Agent / Flow Detection:
    cel
    containsSubAgent(conversation, "billing_subagent")
  • Session Parameter Matching:
    cel
    hasSessionParam(conversation, "authenticated", "true")
  • Sentiment Analysis:
    cel
    hasCallerSentiment(conversation, "NEGATIVE")
  • Turn & Duration Checks:
    cel
    conversation.duration > 300 && conversation.turnCount >= 10

3. Step-by-Step Workflow

Follow these steps when helping a user build or update autolabeling rules:

Step 1: Ingest Requirements

  • Ask the user what conversation properties or behaviors they want to classify (e.g., specific sub-agents, customer sentiment, authentication status, duration thresholds).
  • Determine target GCP project ID and location.

Step 2: Draft or Edit Declarative YAML

  • Create or update autolabel_rules.yaml in the user's workspace.
  • Translate business logic into clear, prioritized CEL expressions.
  • Ensure every rule ends with a fallback (condition: "").

Step 3: Compare with Active Remote Rules (diff)

Run diff to preview additions, modifications, and deletions:

bash
uv run cxas insights diff-autolabel-rules --file autolabel_rules.yaml

Step 4: Dry-Run Deploy

Run push with --dry-run to verify API compatibility:

bash
uv run cxas insights push-autolabel-rules --file autolabel_rules.yaml --dry-run

Step 5: Deploy to GCP Project (push)

Deploy the changes:

bash
uv run cxas insights push-autolabel-rules --file autolabel_rules.yaml

(To delete remote rules that are no longer in the local YAML, append --force.)

Step 6: Export Existing Rules (pull)

To export existing active rules from an environment into YAML:

bash
uv run cxas insights pull-autolabel-rules --parent projects/<PROJECT>/locations/<LOCATION> --out autolabel_rules.yaml

4. References & Tooling

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Cxas Autolabel Rules AI skill do?

Author, validate, and manage Contact Center AI (CCAI) Insights Autolabeling Rules. Use when users want to translate business labeling logic into CEL condition expressions, maintain declarative autolabel_rules.yaml configurations, or synchronize rules to GCP projects.

Why use Cxas Autolabel Rules on TypingMind?

Because you install it once and use it with any model. Cxas Autolabel Rules is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cxas Autolabel Rules in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GoogleCloudPlatform/cxas-scrapi/tree/main/.agents/skills/cxas-autolabel-rules. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Cxas Autolabel Rules?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cxas Autolabel Rules?

As many as you like. As long as a model supports skills, you can use Cxas Autolabel Rules with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cxas Autolabel Rules AI skill free?

Yes. It is published on GitHub by GoogleCloudPlatform under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇