@salesforce/afv-skills 1.31.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/agentforce-bot-upgrade/SKILL.md +217 -0
- package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +242 -0
- package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +128 -0
- package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +208 -0
- package/skills/agentforce-bot-upgrade/references/input-contract.md +101 -0
- package/skills/agentforce-bot-upgrade/references/mapping-rules.md +113 -0
- package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +78 -0
- package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +67 -0
- package/skills/agentforce-bot-upgrade/references/quality-checklist.md +33 -0
- package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +116 -0
- package/skills/dx-devops-work-item-manage/SKILL.md +270 -0
- package/skills/dx-devops-work-item-manage/examples/common-workflows.md +479 -0
- package/skills/dx-devops-work-item-manage/references/cli-commands.md +476 -0
- package/skills/dx-org-manage/SKILL.md +8 -5
- package/skills/dx-org-trial-expiration-check/SKILL.md +239 -0
- package/skills/dx-org-trial-expiration-check/scripts/check_expiration.sh +588 -0
- package/skills/experience-ui-bundle-app-coordinate/SKILL.md +12 -9
- package/skills/experience-ui-bundle-custom-app-generate/SKILL.md +29 -5
- package/skills/experience-ui-bundle-custom-app-generate/references/configure-metadata-custom-application.md +1 -1
- package/skills/experience-ui-bundle-custom-app-generate/scripts/resolve-uibundle-path.sh +30 -0
- package/skills/experience-ui-bundle-features-generate/SKILL.md +86 -11
- package/skills/experience-ui-bundle-features-generate/references/conflict-resolution-schema.json +20 -0
- package/skills/experience-ui-bundle-features-generate/scripts/verify-react-bundle.sh +14 -0
- package/skills/experience-ui-bundle-frontend-generate/SKILL.md +6 -1
- package/skills/experience-ui-bundle-frontend-generate/references/component.md +34 -1
- package/skills/experience-ui-bundle-frontend-generate/references/page.md +1 -1
- package/skills/experience-ui-bundle-project-generate/SKILL.md +111 -0
- package/skills/experience-ui-bundle-project-generate/scripts/flatten-project.mjs +33 -0
- package/skills/platform-custom-lightning-type-generate/SKILL.md +9 -14
- package/skills/platform-custom-lightning-type-generate/references/widget-rendition.md +27 -111
- package/skills/platform-lightning-type-widget-coordinate/SKILL.md +214 -0
- package/skills/platform-lightning-type-widget-coordinate/examples/existing-lightning-type-with-widget-prompt.md +80 -0
- package/skills/platform-lightning-type-widget-coordinate/examples/new-lightning-type-with-widget-prompt.md +75 -0
- package/skills/platform-lightning-type-widget-coordinate/references/build-plan-format.md +67 -0
- package/skills/platform-lightning-type-widget-coordinate/references/lightning-type-discovery.md +124 -0
- package/skills/platform-lightning-type-widget-coordinate/references/validation-gates.md +130 -0
- package/skills/platform-sharing-owd-configure/SKILL.md +142 -0
- package/skills/platform-sharing-owd-configure/examples/get_owd_output.md +38 -0
- package/skills/platform-sharing-owd-configure/examples/update_owd_output.md +44 -0
- package/skills/platform-sharing-owd-configure/references/access_levels.md +49 -0
- package/skills/platform-sharing-owd-configure/references/metadata_api_approach.md +69 -0
- package/skills/platform-sharing-rules-generate/SKILL.md +89 -19
- package/skills/platform-sharing-rules-generate/examples/test-cases.md +381 -0
- package/skills/platform-widget-generate/SKILL.md +241 -0
- package/skills/platform-widget-generate/examples/conditional.json +73 -0
- package/skills/platform-widget-generate/examples/list-with-foreach.json +66 -0
- package/skills/platform-widget-generate/examples/single-object.json +64 -0
- package/skills/platform-widget-generate/references/schema-from-lightning-type.md +76 -0
- package/skills/platform-widget-generate/references/widget-bundle-layout.md +116 -0
- package/skills/platform-widget-generate/references/widget-meta-directives.md +130 -0
- package/skills/sales-agentforce-pipeline-management-configure/SKILL.md +268 -0
- package/skills/sales-agentforce-pipeline-management-configure/assets/field-completion-template.genAiPromptTemplate-meta.xml +141 -0
- package/skills/sales-agentforce-pipeline-management-configure/assets/pipeline_management_flow.flow-meta.xml +548 -0
- package/skills/sales-agentforce-pipeline-management-configure/assets/sales_management_agent.agent +2938 -0
- package/skills/sales-agentforce-pipeline-management-configure/assets/sales_management_agent.bundle-meta.xml +4 -0
- package/skills/sales-agentforce-pipeline-management-configure/assets/sfdx-project.json +12 -0
- package/skills/sales-agentforce-pipeline-management-configure/assets/stage-descriptions/bant.txt +11 -0
- package/skills/sales-agentforce-pipeline-management-configure/assets/stage-descriptions/meddic.txt +11 -0
- package/skills/sales-agentforce-pipeline-management-configure/assets/stage-descriptions/spiced.txt +11 -0
- package/skills/sales-agentforce-pipeline-management-configure/examples/custom-prompt-instructions.md +317 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/admin-communication.md +355 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/agent-creation.md +383 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/auth-and-cli.md +146 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/automation-matrix.md +23 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/autonomous-updates.md +215 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/canonical-agent-path.md +75 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/data-sources.md +155 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/field-completion-prompt-template.md +120 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/field-completion-prompts.md +149 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/flags.md +13 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/flow-clone-from-template.md +447 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/metadata-inventory.md +330 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/opportunity-stages.md +246 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/repair-diagnostics.md +265 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/setup-order.md +263 -0
- package/skills/sales-agentforce-pipeline-management-configure/references/soap-api-enablement.md +528 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/CHANGES.md +180 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/README.md +56 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/add-field-suggestion.sh +679 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/create-agent.sh +302 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/create-flow.sh +250 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/define-agent-access.sh +430 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/deploy-settings.sh +77 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/enable-deal-agent.sh +241 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/enable-prerequisites.sh +538 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/flow-debug-and-verify.sh +385 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/retrieve-settings.sh +131 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/setup-all.sh +2791 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/shared/agent-bundle-publish.sh +189 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/shared/agent-detection.sh +239 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/shared/flow-builder.sh +238 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/shared/psg.sh +48 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/shared/soap.sh +140 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/shared/stage-descriptions.sh +448 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/shared/test-opp.sh +166 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/verify-all.sh +636 -0
- package/skills/sales-agentforce-pipeline-management-configure/scripts/verify-prompt-generation.sh +346 -0
package/skills/sales-agentforce-pipeline-management-configure/assets/stage-descriptions/bant.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Prospecting|Initial outreach and lead qualification. Identify potential customers and establish first contact. BANT Focus: Determine if lead has a Need worth exploring. Entry: Lead identified. Exit: Initial contact established and need indicated.
|
|
2
|
+
Qualification|Validate opportunity viability through BANT criteria. Assess if prospect has Budget, proper Authority, clear Need, and realistic Timeline. Entry: Need indicated. Exit: BANT criteria preliminarily confirmed.
|
|
3
|
+
Needs Analysis|Deep discovery of customer requirements and priorities. BANT Focus: Quantify the Need and validate it's a priority. Confirm Budget availability and Authority to spend. Entry: BANT criteria confirmed. Exit: Detailed needs documented with budget range.
|
|
4
|
+
Value Proposition|Present solution aligned to validated needs and budget. BANT Focus: Demonstrate ROI within Budget constraints. Confirm Authority is engaged. Align Timeline to customer's buying process. Entry: Needs documented. Exit: Value proposition accepted within budget.
|
|
5
|
+
Id. Decision Makers|Map complete decision-making authority structure. BANT Focus: Confirm who has final Authority to approve budget. Validate Timeline with decision makers. Entry: Value proposition accepted. Exit: Authority chain mapped and engaged.
|
|
6
|
+
Perception Analysis|Assess stakeholder alignment and competitive position. BANT Focus: Reconfirm Budget availability and Authority alignment. Validate Timeline hasn't shifted. Ensure Need remains urgent. Entry: Authority mapped. Exit: BANT revalidated, competitive position strong.
|
|
7
|
+
Proposal/Price Quote|Formal proposal presented with pricing and terms. BANT Focus: Pricing within approved Budget. Submitted to proper Authority. Addresses documented Need. Timeline reflects urgency. Entry: BANT revalidated. Exit: Proposal submitted to authority.
|
|
8
|
+
Negotiation/Review|Final terms discussion and objection handling. BANT Focus: Finalize within Budget constraints. Authority provides feedback. Need remains validated. Timeline for decision confirmed. Entry: Proposal under review. Exit: Terms agreed within BANT parameters.
|
|
9
|
+
Closed Won|Deal successfully closed. All BANT criteria met: Budget approved and allocated, Authority signed off, Need addressed by solution, Timeline executed. Document success factors for future opportunities.
|
|
10
|
+
Closed Lost|Opportunity lost. BANT Analysis: Identify failure point (Budget cut or unavailable, wrong Authority engaged, Need deprioritized, Timeline delayed indefinitely). Document root cause for improvement.
|
|
11
|
+
Most Likely|Final approval stage with minimal risk. BANT Focus: Budget allocated, Authority committed, Need urgent, Timeline imminent. Monitor for last-minute budget freezes or timeline changes. Entry: Verbal commitment received. Exit: Signature pending only.
|
package/skills/sales-agentforce-pipeline-management-configure/assets/stage-descriptions/meddic.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Prospecting|Initial outreach and lead qualification. Identify potential customers and establish first contact. MEDDIC Focus: Begin gathering Metrics on customer's current state and identify potential Pain points. Entry: Lead identified. Exit: Initial contact established and pain confirmed.
|
|
2
|
+
Qualification|Validate opportunity viability and decision-making structure. MEDDIC Focus: Identify Economic Buyer and understand their priorities. Assess budget authority and timeline. Entry: Pain confirmed. Exit: Economic Buyer identified and engaged.
|
|
3
|
+
Needs Analysis|Deep discovery of customer requirements and current challenges. MEDDIC Focus: Quantify Metrics showing business impact. Document specific Pain points and their cost. Entry: Economic Buyer engaged. Exit: Quantified business case developed.
|
|
4
|
+
Value Proposition|Present solution aligned to customer's metrics and pain. MEDDIC Focus: Map solution to customer's Decision Criteria. Begin identifying potential Champions. Entry: Business case quantified. Exit: Value proposition accepted by stakeholders.
|
|
5
|
+
Id. Decision Makers|Map the complete decision-making unit and influence structure. MEDDIC Focus: Confirm Economic Buyer and identify all decision influencers. Validate Champion commitment. Entry: Value proposition accepted. Exit: Complete decision map with Champion identified.
|
|
6
|
+
Perception Analysis|Assess competitive position and stakeholder alignment. MEDDIC Focus: Understand Decision Process steps and timeline. Validate Champion's ability to influence. Test criteria alignment. Entry: Decision makers mapped. Exit: Competitive position strong, Champion actively supporting.
|
|
7
|
+
Proposal/Price Quote|Formal proposal presented with pricing and terms. MEDDIC Focus: Ensure proposal addresses all Decision Criteria. Champion reviews before submission. Metrics clearly show ROI. Entry: Stakeholders aligned. Exit: Proposal submitted and acknowledged.
|
|
8
|
+
Negotiation/Review|Final terms discussion and objection handling. MEDDIC Focus: Navigate Decision Process with Champion's guidance. Address any gaps in Metrics or criteria. Entry: Proposal under review. Exit: Terms agreed, ready for final approval.
|
|
9
|
+
Closed Won|Deal successfully closed. All MEDDIC elements validated: Metrics justified investment, Economic Buyer approved, Decision Criteria met, Decision Process completed, Pain addressed, Champion instrumental. Document lessons learned for future deals.
|
|
10
|
+
Closed Lost|Opportunity lost. MEDDIC Analysis: Review which element was missing or weak (Metrics unclear, wrong Economic Buyer, failed criteria, flawed process, insufficient pain, weak Champion). Document root cause for continuous improvement.
|
|
11
|
+
Most Likely|Final approval stage with minimal risk. MEDDIC Focus: All elements confirmed - Economic Buyer committed, Decision Process nearly complete, Champion confirms timing. Monitor for last-minute blockers. Entry: Verbal commitment received. Exit: Signature pending only.
|
package/skills/sales-agentforce-pipeline-management-configure/assets/stage-descriptions/spiced.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Prospecting|Initial outreach and lead qualification. Identify potential customers and establish first contact. SPICED Focus: Understand high-level Situation and identify potential Pain. Entry: Lead identified. Exit: Initial contact established and pain indicated.
|
|
2
|
+
Qualification|Validate opportunity viability and urgency. SPICED Focus: Document current Situation and confirm Pain is significant. Assess if there's a Critical Event driving urgency. Entry: Pain indicated. Exit: Situation understood, pain confirmed significant.
|
|
3
|
+
Needs Analysis|Deep discovery of customer challenges and business impact. SPICED Focus: Quantify Impact of not solving the Pain. Understand complete Situation context. Identify Critical Events on horizon. Entry: Pain confirmed. Exit: Impact quantified, critical events documented.
|
|
4
|
+
Value Proposition|Present solution showing impact mitigation and pain resolution. SPICED Focus: Demonstrate how solution reduces negative Impact. Address Pain directly. Align to Critical Events. Entry: Impact quantified. Exit: Value proposition shows clear impact reduction.
|
|
5
|
+
Id. Decision Makers|Map decision-making structure and influence paths. SPICED Focus: Identify who owns the Pain and Impact. Understand Decision authority and process. Map Critical Event stakeholders. Entry: Impact reduction accepted. Exit: Decision makers mapped with pain ownership.
|
|
6
|
+
Perception Analysis|Assess stakeholder alignment and competitive position. SPICED Focus: Validate Pain remains urgent. Confirm Impact assessment with stakeholders. Reconfirm Critical Events still driving timeline. Entry: Decision makers engaged. Exit: Stakeholders aligned on pain/impact/timing.
|
|
7
|
+
Proposal/Price Quote|Formal proposal presented addressing pain and impact. SPICED Focus: Proposal clearly shows Impact mitigation. Pain resolution approach detailed. Timeline aligns with Critical Events. Entry: Stakeholders aligned. Exit: Proposal addresses situation, pain, impact comprehensively.
|
|
8
|
+
Negotiation/Review|Final terms discussion and objection handling. SPICED Focus: Navigate Decision process. Reconfirm Pain urgency and Impact cost. Monitor Critical Event timeline. Address any Situation changes. Entry: Proposal under review. Exit: Decision imminent, all SPICED elements validated.
|
|
9
|
+
Closed Won|Deal successfully closed. All SPICED elements validated: Situation understood, Pain addressed, Impact quantified and mitigated, Critical Event met, Decision executed. Document success story for future opportunities.
|
|
10
|
+
Closed Lost|Opportunity lost. SPICED Analysis: Review failure point (Situation changed, Pain deprioritized, Impact insufficient, Critical Event removed, Decision blocked). Document root cause for continuous improvement.
|
|
11
|
+
Most Likely|Final approval stage with minimal risk. SPICED Focus: All elements confirmed - Situation stable, Pain urgent, Impact clear, Critical Event driving close, Decision approved. Monitor for situation changes. Entry: Verbal commitment. Exit: Signature pending only.
|
package/skills/sales-agentforce-pipeline-management-configure/examples/custom-prompt-instructions.md
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
# Custom Prompt Instructions for Pipeline Management Agent
|
|
2
|
+
|
|
3
|
+
This guide explains how to customize the Pipeline Management Agent's behavior through custom prompt instructions in Agentforce Builder.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Custom prompt instructions let you:
|
|
8
|
+
- Focus the agent on specific business priorities
|
|
9
|
+
- Align suggestions with your sales methodology (MEDDIC, BANT, SPICED)
|
|
10
|
+
- Add company-specific context and terminology
|
|
11
|
+
- Control update aggressiveness and risk tolerance
|
|
12
|
+
|
|
13
|
+
## Where to Add Custom Instructions
|
|
14
|
+
|
|
15
|
+
**Setup → Einstein Agentforce → Agents → Sales Management Agent → Prompt Templates**
|
|
16
|
+
|
|
17
|
+
Or via deployed agent bundle: Edit `sales_management_agent.agent` file
|
|
18
|
+
|
|
19
|
+
## Template Structure
|
|
20
|
+
|
|
21
|
+
```yaml
|
|
22
|
+
customInstructions:
|
|
23
|
+
- instruction: "[Your custom instruction here]"
|
|
24
|
+
topic: "All Topics" # Or specific topic like "Update Opportunity Fields"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Example 1: Methodology Alignment (MEDDIC)
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
When analyzing opportunities, strictly follow the MEDDIC framework:
|
|
33
|
+
|
|
34
|
+
Metrics: Always quantify business impact in dollar amounts or percentages
|
|
35
|
+
Economic Buyer: Identify the person with budget authority and highlight their involvement
|
|
36
|
+
Decision Criteria: Extract specific evaluation criteria the customer is using
|
|
37
|
+
Decision Process: Note approval steps, stakeholders, and timeline
|
|
38
|
+
Pain: Focus on business problems, not feature requests
|
|
39
|
+
Champion: Identify internal advocates and note their influence level
|
|
40
|
+
|
|
41
|
+
Prioritize suggestions that address gaps in these six areas. If an opportunity lacks Economic Buyer identification or quantified Metrics, flag this as high priority.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Impact**: Agent will surface MEDDIC gaps and suggest fields like "Economic Buyer", "Champion", "Pain Statement"
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Example 2: Risk-Aware Recommendations
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
Be conservative with opportunity stage progression:
|
|
52
|
+
|
|
53
|
+
- Only suggest stage advancement if explicit customer commitment exists
|
|
54
|
+
- Require written confirmation (email) for stages beyond Proposal
|
|
55
|
+
- Flag regression risks when activity decreases by 50%+ in 14 days
|
|
56
|
+
- Never suggest "Closed Won" without signed contract or PO evidence
|
|
57
|
+
|
|
58
|
+
For high-value opportunities (>$100k), require executive-level engagement evidence before advancing past Qualification.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Impact**: Agent becomes more cautious, reducing false positives in pipeline progression
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Example 3: Industry-Specific Context
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
Healthcare Industry Context:
|
|
69
|
+
|
|
70
|
+
Our sales cycle has these unique phases:
|
|
71
|
+
1. Clinical validation with medical staff (usually 60-90 days)
|
|
72
|
+
2. IT security review (30-60 days, often blocking)
|
|
73
|
+
3. Procurement/contracting (45-90 days)
|
|
74
|
+
|
|
75
|
+
When analyzing conversations:
|
|
76
|
+
- "IT security review" = likely 60-day delay, suggest stage hold
|
|
77
|
+
- Mention of "clinical trial" or "validation study" = 6-12 month cycle
|
|
78
|
+
- "HIPAA" or "compliance" keywords = route to legal review stage
|
|
79
|
+
- Fiscal year end for hospitals is typically June 30
|
|
80
|
+
|
|
81
|
+
Adjust close date estimates based on these industry timelines.
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Impact**: Agent provides healthcare-realistic timelines instead of generic estimates
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Example 4: Company Terminology Mapping
|
|
89
|
+
|
|
90
|
+
```text
|
|
91
|
+
Translate customer language to our internal fields:
|
|
92
|
+
|
|
93
|
+
Customer says → Map to field:
|
|
94
|
+
- "Go-live date" → Implementation_Start_Date__c
|
|
95
|
+
- "Business case" → ROI_Justification__c
|
|
96
|
+
- "Champion" → Internal_Advocate__c
|
|
97
|
+
- "Blocker" or "risk" → Risk_Assessment__c
|
|
98
|
+
- "Next steps" → Next_Step__c (always include dates and owners)
|
|
99
|
+
- "Decision maker" → Economic_Buyer__c
|
|
100
|
+
|
|
101
|
+
Ignore product feature discussions unless they relate to decision criteria or blockers.
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Impact**: Better field mapping for custom objects
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Example 5: Update Aggressiveness Control
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
Autonomous Update Policy:
|
|
112
|
+
|
|
113
|
+
Fields approved for auto-update (no review needed):
|
|
114
|
+
- Next_Step__c (if mentioned explicitly in last 7 days)
|
|
115
|
+
- Last_Customer_Interaction__c (factual date)
|
|
116
|
+
- Competitor_Mentioned__c (list only)
|
|
117
|
+
|
|
118
|
+
Fields requiring user review (suggestive mode only):
|
|
119
|
+
- Stage (any change)
|
|
120
|
+
- Close_Date__c (if moved by >30 days)
|
|
121
|
+
- Amount (any change)
|
|
122
|
+
- Decision_Maker__c (name changes)
|
|
123
|
+
|
|
124
|
+
Never auto-update:
|
|
125
|
+
- Owner
|
|
126
|
+
- Record Type
|
|
127
|
+
- Custom checkbox fields affecting reporting
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**Impact**: Balances automation with control for sensitive fields
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Example 6: Data Source Prioritization
|
|
135
|
+
|
|
136
|
+
```text
|
|
137
|
+
When conflicts exist across data sources, prioritize:
|
|
138
|
+
|
|
139
|
+
1. Email (most reliable, written commitment)
|
|
140
|
+
2. Einstein Conversation Insights (recorded calls)
|
|
141
|
+
3. Manual notes (may be subjective)
|
|
142
|
+
|
|
143
|
+
Weighting:
|
|
144
|
+
- An email saying "we'll sign next Tuesday" overrides a call where customer said "maybe next month"
|
|
145
|
+
- For close date: use latest communication's date if more recent than 48 hours
|
|
146
|
+
- For next steps: combine all sources, but flag if sources contradict
|
|
147
|
+
|
|
148
|
+
If sources fundamentally contradict (e.g., email says "no" but call says "yes"), flag for user review rather than auto-suggesting.
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Impact**: Reduces suggestion conflicts from multiple data sources
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Example 7: Opportunity Size Thresholds
|
|
156
|
+
|
|
157
|
+
```text
|
|
158
|
+
Opportunity Value Tiers:
|
|
159
|
+
|
|
160
|
+
Strategic (>$500k):
|
|
161
|
+
- Require executive engagement evidence
|
|
162
|
+
- Flag if no activity in 7 days
|
|
163
|
+
- Suggest bi-weekly check-ins minimum
|
|
164
|
+
- Never auto-update stage without explicit approval
|
|
165
|
+
|
|
166
|
+
Enterprise ($100k-$500k):
|
|
167
|
+
- Weekly activity expected
|
|
168
|
+
- Require decision process documentation
|
|
169
|
+
- Auto-update low-risk fields only
|
|
170
|
+
|
|
171
|
+
Standard (<$100k):
|
|
172
|
+
- Full autonomous update approved
|
|
173
|
+
- Focus on velocity and efficiency
|
|
174
|
+
- Suggest stage progression more aggressively if activity supports it
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Impact**: Differentiated agent behavior based on deal size
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Best Practices
|
|
182
|
+
|
|
183
|
+
### ✅ DO
|
|
184
|
+
|
|
185
|
+
- **Be specific**: "Extract budget approval date" not "Look for budget info"
|
|
186
|
+
- **Use examples**: Show the agent what good looks like
|
|
187
|
+
- **Set boundaries**: Explicitly state what NOT to do
|
|
188
|
+
- **Align to methodology**: Reference your sales framework (MEDDIC, BANT, etc.)
|
|
189
|
+
- **Test incrementally**: Add one instruction, test, refine, add next
|
|
190
|
+
|
|
191
|
+
### ❌ DON'T
|
|
192
|
+
|
|
193
|
+
- **Be vague**: "Improve opportunity quality" (how?)
|
|
194
|
+
- **Conflict with SF metadata**: Don't override field validation rules
|
|
195
|
+
- **Assume data exists**: "Always fill Economic Buyer" (what if unknown?)
|
|
196
|
+
- **Over-constrain**: Too many rules make agent overly cautious
|
|
197
|
+
- **Ignore testing**: Prompts that sound good may behave unexpectedly
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Testing Your Instructions
|
|
202
|
+
|
|
203
|
+
### Manual Test (Agentforce Builder)
|
|
204
|
+
|
|
205
|
+
1. **Setup → Einstein Agentforce → Agents → Sales Management Agent**
|
|
206
|
+
2. Click **Test** button
|
|
207
|
+
3. Enter test conversation:
|
|
208
|
+
```text
|
|
209
|
+
Customer: "We'll need board approval, but our CFO Sarah Johnson is supportive. We're targeting a January 15 go-live."
|
|
210
|
+
```
|
|
211
|
+
4. Review agent output for your custom instruction impact
|
|
212
|
+
|
|
213
|
+
### Production Test
|
|
214
|
+
|
|
215
|
+
1. Add a note to a real opportunity with test instructions keywords
|
|
216
|
+
2. Wait for scheduled flow run (or trigger manually)
|
|
217
|
+
3. Check **Opportunity History** for agent-generated suggestions
|
|
218
|
+
4. Verify suggestions align with your custom instructions
|
|
219
|
+
|
|
220
|
+
### A/B Test Different Instructions
|
|
221
|
+
|
|
222
|
+
1. Clone agent, add different instructions to each
|
|
223
|
+
2. Assign different users to each agent via permission sets
|
|
224
|
+
3. Compare suggestion quality after 2 weeks
|
|
225
|
+
4. Adopt winning instruction set
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## Common Issues & Solutions
|
|
230
|
+
|
|
231
|
+
### Issue: Agent ignores custom instructions
|
|
232
|
+
|
|
233
|
+
**Solution**:
|
|
234
|
+
- Check instruction is under correct topic
|
|
235
|
+
- Verify agent is activated
|
|
236
|
+
- Ensure instruction doesn't conflict with base system prompt
|
|
237
|
+
- Use imperative language ("Do X") not suggestive ("You might want to...")
|
|
238
|
+
|
|
239
|
+
### Issue: Suggestions become too cautious
|
|
240
|
+
|
|
241
|
+
**Solution**: Add explicit "approved scenarios" list where agent should be aggressive
|
|
242
|
+
|
|
243
|
+
### Issue: Agent hallucinates data
|
|
244
|
+
|
|
245
|
+
**Solution**: Add constraint: "Only use explicitly stated information. If data is unclear, flag for user review rather than guessing."
|
|
246
|
+
|
|
247
|
+
### Issue: Wrong fields get updated
|
|
248
|
+
|
|
249
|
+
**Solution**: List exact field API names in instructions with update permissions
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## Advanced: Methodology-Specific Templates
|
|
254
|
+
|
|
255
|
+
### MEDDIC Sales
|
|
256
|
+
|
|
257
|
+
```text
|
|
258
|
+
Every opportunity must have MEDDIC qualification data:
|
|
259
|
+
|
|
260
|
+
Required fields to populate:
|
|
261
|
+
- Metrics: Business_Impact__c (quantified ROI)
|
|
262
|
+
- Economic Buyer: Decision_Maker__c (name + title)
|
|
263
|
+
- Decision Criteria: Evaluation_Criteria__c (list)
|
|
264
|
+
- Decision Process: Approval_Steps__c (timeline with stakeholders)
|
|
265
|
+
- Pain: Pain_Statement__c (business problem)
|
|
266
|
+
- Champion: Internal_Champion__c (name + influence level)
|
|
267
|
+
|
|
268
|
+
Suggest stage progression only when all 6 elements have data. Flag incomplete MEDDIC as "Risk: Qualification incomplete" in Next_Step__c.
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### BANT Sales
|
|
272
|
+
|
|
273
|
+
```text
|
|
274
|
+
Focus on BANT qualification:
|
|
275
|
+
|
|
276
|
+
Budget: Extract dollar amounts and approval status → Budget_Status__c
|
|
277
|
+
Authority: Identify decision maker title and approval rights → Decision_Authority__c
|
|
278
|
+
Need: Summarize business problem and urgency → Business_Need__c
|
|
279
|
+
Timeline: Extract purchase timeline and fiscal constraints → Target_Close_Date__c
|
|
280
|
+
|
|
281
|
+
Disqualify opportunities early if any BANT element is clearly absent or negative.
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### SPICED Sales
|
|
285
|
+
|
|
286
|
+
```text
|
|
287
|
+
Use SPICED for complex enterprise sales:
|
|
288
|
+
|
|
289
|
+
Situation: Current state and context → Customer_Situation__c
|
|
290
|
+
Pain: Business problem and impact → Pain_Points__c
|
|
291
|
+
Impact: Cost of inaction (quantified) → Cost_Of_Inaction__c
|
|
292
|
+
Critical Event: Forcing function or deadline → Critical_Event__c
|
|
293
|
+
Decision: Process and stakeholders → Decision_Process__c
|
|
294
|
+
|
|
295
|
+
Focus on Impact quantification - every opportunity needs a dollar value for cost of inaction.
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## Integration with Stage Descriptions
|
|
301
|
+
|
|
302
|
+
Your custom instructions should align with stage descriptions (see `assets/stage-descriptions/`).
|
|
303
|
+
|
|
304
|
+
Example alignment:
|
|
305
|
+
- **Stage**: Prospecting
|
|
306
|
+
- **Stage Description**: "Initial outreach and lead qualification. MEDDIC Focus: Begin gathering Metrics..."
|
|
307
|
+
- **Custom Instruction**: "In Prospecting stage, prioritize Metrics and Pain discovery..."
|
|
308
|
+
|
|
309
|
+
This creates consistency between what stages mean and what the agent looks for.
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Further Reading
|
|
314
|
+
|
|
315
|
+
- [Field Completion Prompt Templates](../references/field-completion-prompt-template.md) - For custom field prompts
|
|
316
|
+
- [Stage Descriptions](../assets/stage-descriptions/) - MEDDIC, BANT, SPICED stage definitions
|
|
317
|
+
- [Salesforce Agentforce Documentation](https://help.salesforce.com/s/articleView?id=sf.agentforce.htm)
|