Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

sf-ai-agentforce-conversationdesignSF AI AgentForce 对话设计

Agent Skill

sf-ai-agentforce-conversationdesign 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,599

周安装

68

GitHub Stars

401

下载量

560
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sf-ai-agentforce-conversationdesign(SF AI AgentForce 对话设计)
来源仓库:https://github.com/jaganpro/sf-skills
仓库路径:skills/sf-ai-agentforce-conversationdesign
安装命令:
npx skills add https://github.com/jaganpro/sf-skills --skill sf-ai-agentforce-conversationdesign
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jaganpro/sf-skills --skill sf-ai-agentforce-conversationdesign

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理。
  • 可结合来源仓库、安装命令和原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • sf-ai-agentforce-conversationdesign 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

SF-AI-Agentforce-ConversationDesign Skill

"Users don't fail conversations — conversations fail users."

Conversation design is the discipline of crafting agent interactions that feel natural, resolve issues efficiently, and gracefully handle the unexpected. This skill brings structured conversation design methodology to Salesforce Agentforce, combining industry frameworks (Google, IBM, PatternFly) with Salesforce-specific implementation patterns.


⚡ Quick Start

New agent? Start here:

  1. Design your persona → Persona Design Guide
  2. Architect your topics → Topic Architecture Guide
  3. Write instructions → Instruction Writing Guide
  4. Score your design → Quality Scorecard

Existing agent needs improvement? Start here:

  1. Run the Quality Scorecard assessment
  2. Review Anti-Patterns for quick wins
  3. Build an Improvement Plan

📚 Document Map

Tier 1 — Start Here

DocumentPurpose
This file (SKILL.md)Scoring rubric, methodology overview, core principles
README.mdQuick start, prerequisites, getting started

Tier 1.5 — Reference Guides (Extracted)

DocumentPurpose
Scoring RubricFull 8-category detailed criteria tables
Quality AssessmentAssessment process + quick health check
Continuous ImprovementIteration cycle, KPIs, utterance analysis

Tier 2 — Design Guides

DocumentPurpose
Persona Design GuideHow to define agent personality, tone, and communication style
Topic Architecture GuideBottom-up topic design, classification descriptions, scope boundaries
Instruction Writing GuideThree-level instruction framework with do's, don'ts, and examples

Tier 3 — Reference Resources

DocumentPurpose
Conversation PatternsIBM's 5 patterns mapped to Agentforce implementation
Industry FrameworksGoogle, IBM, PatternFly, Salesforce framework mappings
Anti-PatternsCommon mistakes with examples and fixes
Guardrail HierarchyFour-layer guardrail model for safety
Escalation PatternsTrigger catalog and Omni-Channel routing
Quality MetricsKPI definitions, benchmarks, measurement methods

Tier 4 — Templates & Examples

DocumentPurpose
Persona DocumentFill-in persona template
Topic ArchitectureTopic mapping worksheet
Utterance LibraryStructured utterance collection template
Escalation MatrixEscalation decision matrix
Quality Scorecard120-point assessment template
Improvement PlanPrioritized improvement template
Service Agent PersonaExample: SaaS customer service persona
Retail Topic ArchitectureExample: retail agent topic hierarchy
Healthcare EscalationExample: healthcare escalation matrix

🏆 Scoring System (120 Points)

See references/scoring-rubric.md for the full per-criterion breakdown of all 8 categories.

Category Summary

#CategoryPointsWeight
1Persona & Tone1512.5%
2Topic Architecture2016.7%
3Instruction Quality2016.7%
4Dialog Flow Design1512.5%
5Utterance Coverage1512.5%
6Escalation Design1512.5%
7Guardrails & Safety108.3%
8Continuous Improvement108.3%
TOTAL120100%

Grade Scale

GradeScore RangeDescription
A108-120Production-ready, exceptional design
B96-107Good design, minor gaps
C84-95Adequate, needs targeted improvements
D72-83Significant gaps, not production-ready
F<72Major redesign required

🎭 Persona Design

A persona defines your agent's personality, communication style, and behavioral constraints — the foundation for consistent, brand-aligned interactions.

Persona Components

  1. Identity — Name, role, department, target audience
  2. Tone Register — Casual, neutral, or formal (Agentforce setting)
  3. Personality Traits — 3-5 traits that shape response style
  4. Communication Style — Sentence length, vocabulary level, empathy patterns
  5. Limitations — What the agent explicitly will not do
  6. Messages — Welcome message and error/fallback message (<=800 chars each)

Salesforce Implementation

Agent Builder → Agent Settings → Instructions (Agent-Level)
Agent Builder → Agent Settings → Tone (Casual/Neutral/Formal)
Agent Builder → Channels → Welcome Message / Error Message

The persona lives primarily in agent-level instructions. Write them like training a new employee on Day 1 — focus on who they are and how they communicate, not on specific task procedures.

Deep Dive: Persona Design Guide | Template: Persona Document | Example: Service Agent Persona

🏗️ Topic Architecture

Topics group related actions under classification descriptions for routing. Use bottom-up design: list all actions → group by user intent → write classification descriptions → test for semantic distinctness.

Architecture Rules

RuleGuidelineRationale
Topic count<=10 per agentMore topics = more classification ambiguity
Actions per topic<=5 per topicKeeps topics focused and testable
Classification overlap<30% shared vocabularyPrevents misrouting between similar topics
Scope boundariesExplicit out-of-scope listPrevents hallucination on unknown intents

Classification Descriptions

The single most important text in your agent design — they determine routing accuracy.

✅ GOOD: "This topic handles questions about existing order status, including
tracking information, estimated delivery dates, and order modification
requests. It does NOT handle new order placement or returns."

❌ BAD: "Order stuff"
Test: Can you read two descriptions and immediately tell which utterance belongs where?
Deep Dive: Topic Architecture Guide | Template: Topic Architecture | Example: Retail Topic Architecture

✍️ Instruction Writing

Instructions operate at three levels: Agent-level (persona, global rules, 200-500w), Topic-level (workflow logic, 100-300w), Action-level (when/how to invoke, 50-150w).

Core Principles

  1. Guidance over determinism — Guide reasoning, don't hard-code every decision. "Prioritize empathy and escalate if unresolved within 2-3 exchanges" vs scripting every anger keyword.
  2. Positive framing — "Always verify identity before accessing account details" not "Don't ever access without verifying."
  3. Business principles, not decision trees — If your instruction contains if...then...else with thresholds, it belongs in Flow/Apex.
  4. Knowledge over hard-coding — Use Knowledge actions (RAG) for policies, don't inline policy text in instructions.
Deep Dive: Instruction Writing Guide

🔄 Dialog Flow Patterns

Every conversation follows a six-phase lifecycle: Greeting → Classification → Gathering → Processing → Response → Close.

Key design rules:

  • Progressive disclosure: Max 2-3 choices per turn. If more options exist, ask a qualifying question first.
  • Context preservation: Reference prior turns, avoid re-asking for information already provided.
  • Error recovery: Define clarification prompts, disambiguation paths, and graceful fallbacks for every phase.
  • Explicit closing: Summarize what was accomplished, offer follow-up, farewell appropriate to tone.

📝 Utterance Design

Utterances are test cases for your topic architecture — they validate that classification descriptions route correctly.

Categories & Targets

CategoryPurposeTarget per Topic
Happy PathPrimary intent, clear phrasing>=5
SynonymAlternate vocabulary>=3
Edge CaseAmbiguous, multi-intent>=2
AdversarialInjection, manipulation (global)>=5
Out-of-ScopeShould NOT match (global)>=5

Process: Start with real data (CRM cases, chat logs) → brainstorm synonyms → add edge cases → include adversarial → test in Testing Center → iterate on failures.

Template: Utterance Library

🚨 Escalation Design

Escalation is not failure — it's a safety net ensuring customers always reach resolution.

Trigger Catalog

Trigger TypeConditionPriority
ExplicitCustomer requests human agentP1
SafetySelf-harm, threats, emergency, legalP1
SentimentCustomer frustration or angerP2
Complexity>6 turns without resolutionP2
PolicyRequest exceeds agent authorityP2
TechnicalAction failure, system errorP3

When escalating, pass: conversation transcript, customer identity, issue summary, actions taken, and escalation reason. Agentforce provides a pre-built Escalation Topic that routes via Omni-Channel.

Deep Dive: Escalation Patterns | Template: Escalation Matrix

🛡️ Guardrails & Safety

Safety operates through four layers: Einstein Trust Layer (platform — toxicity detection, PII masking, automatic), Topic Classification (scope boundaries as first defense), Instructions (behavioral constraints — "never provide legal/medical advice"), Flow/Apex (deterministic business rule enforcement).

Critical Rule: Never rely on instructions alone for safety-critical decisions. Instructions are probabilistic. Financial limits, compliance checks, and approval gates MUST be in Flow or Apex.
Deep Dive: Guardrail Hierarchy

📊 Quality Assessment & Continuous Improvement

See references/quality-assessment.md for the full assessment process and 5-question quick health check.
See references/continuous-improvement.md for the Monitor → Analyze → Fix → Retest → Deploy iteration cycle, KPI targets, and utterance analysis process.

⚠️ Anti-Patterns

#Anti-PatternImpactFix
1Negative instructionsConfuses LLM reasoningReframe positively
2Over-constrainingRigid, brittle responsesUse guiding principles
3Business rules in instructionsInconsistent enforcementMove to Flow/Apex
4Monolithic topicsPoor classification accuracySplit into focused topics
5Overlapping classificationsMisroutingMake descriptions distinct
6Missing escalation pathsDead-end conversationsDefine triggers for all failure modes
7No utterance testingUntested classificationBuild utterance library
8Hard-coded policiesStale informationUse Knowledge actions
9Ignoring contextRepetitive re-askingLeverage conversation state
10Happy-path-only testingFragile in productionTest edge cases and adversarial
Deep Dive: Anti-Patterns — Full examples with before/after fixes.

🔗 Chain Integration

This skill is the first step in the Agentforce development chain:

From This SkillTo SkillWhat's Handed Off
Topic architecturesf-ai-agentscriptTopic names, actions, classification descriptions
Instruction setssf-ai-agentscriptThree-level instructions for agent script
Utterance librarysf-ai-agentforce-testingTest cases for multi-turn testing
Escalation matrixsf-flowEscalation flow logic
Action definitionssf-apex / sf-flowAction implementation requirements

📎 Credits & References

  • Google Conversation Design Guidelines
  • IBM Natural Conversation Framework
  • Red Hat PatternFly AI Design System
  • Salesforce Conversational AI Design Guide
  • Salesforce Architect: Agentic Patterns & Taxonomy

See CREDITS.md for full attribution.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.19%
按下载量换算197

Claude

28.71%
按下载量换算161

Cursor

18.89%
按下载量换算106

Gemini CLI

8.7%
按下载量换算49

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills