@salesforce/afv-skills 1.71.0 → 1.72.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-generate/SKILL.md +8 -0
- package/skills/agentforce-generate/assets/agents/README.md +1 -1
- package/skills/agentforce-generate/references/actions-reference.md +4 -0
- package/skills/agentforce-generate/references/mcp-actions-in-agent-script.md +233 -0
- package/skills/agentforce-generate/references/reference-map.md +1 -0
- package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +9 -7
- package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +78 -4
- package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +17 -13
- package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +110 -9
- package/skills/experience-app-mcp-generate/references/troubleshooting.md +1 -1
- package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +49 -18
- package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +1 -1
- package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +1 -1
- package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +3 -1
- package/skills/experience-ui-bundle-custom-app-generate/SKILL.md +32 -26
- package/skills/experience-ui-bundle-custom-app-generate/references/configure-metadata-custom-application.md +6 -24
- package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +4 -6
- package/skills/platform-apex-generate/SKILL.md +2 -1
- package/skills/platform-apex-generate/assets/abstract.cls +0 -4
- package/skills/platform-apex-generate/assets/invocable-action-extension.invocableactionextension-meta.xml +28 -0
- package/skills/platform-apex-generate/assets/invocable.cls +2 -0
- package/skills/platform-apex-generate/references/dml-declarations.md +69 -0
- package/skills/platform-metadata-discovery-get/SKILL.md +15 -10
- package/skills/platform-metadata-grounding-get/SKILL.md +5 -3
- package/skills/service-add-agents-to-contact-center-create/SKILL.md +138 -0
- package/skills/service-agentforce-contact-center-coordinate/SKILL.md +5 -5
- package/skills/service-agentforce-contact-center-coordinate/references/omni-flow-routing.md +3 -3
- package/skills/service-agentforce-contact-center-coordinate/scripts/create-routing-flows.sh +8 -3
- package/skills/service-agentforce-contact-center-coordinate/scripts/create-voice-agent.sh +5 -5
- package/skills/service-agentforce-contact-center-coordinate/scripts/resolve-acc-queue.sh +10 -1
- package/skills/service-agentforce-contact-center-coordinate/scripts/resolve-channel-line.sh +4 -0
- package/skills/service-agentforce-contact-center-coordinate/scripts/resolve-flow-definition.sh +5 -0
- package/skills/service-agentforce-contact-center-coordinate/scripts/verify-number-live.sh +6 -1
- package/skills/service-concierge-portal-generate/SKILL.md +1 -1
- package/skills/service-concierge-portal-generate/references/portal-deploy-runbook.md +21 -8
- package/skills/service-digital-engagement-channel-configure/SKILL.md +45 -32
- package/skills/service-digital-engagement-channel-configure/assets/public_key_certificate_set_jwks_template.xml +20 -0
- package/skills/service-digital-engagement-channel-configure/assets/public_key_certificate_set_jwks_url_template.xml +23 -0
- package/skills/service-digital-engagement-channel-configure/assets/public_key_certificate_template.xml +15 -0
- package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +1 -1
- package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +3 -3
- package/skills/service-digital-engagement-channel-configure/examples/jwks_upload_key.xml +11 -0
- package/skills/service-digital-engagement-channel-configure/examples/jwks_upload_keyset.xml +13 -0
- package/skills/service-digital-engagement-channel-configure/examples/jwks_url_keyset.xml +17 -0
- package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +3 -3
- package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
- package/skills/service-digital-engagement-channel-configure/examples/user_channel.xml +1 -1
- package/skills/service-digital-engagement-channel-configure/references/_vendored/service-onboarding-delegation-guidelines.md +43 -0
- package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +1 -1
- package/skills/service-digital-engagement-channel-configure/references/keyset_settings.md +46 -0
- package/skills/service-digital-engagement-channel-configure/references/keyset_setup.md +42 -0
- package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +28 -27
- package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +2 -5
- package/skills/service-digital-engagement-channel-configure/references/routing_transitions.md +2 -2
- package/skills/service-digital-engagement-channel-configure/references/user_verification.md +3 -4
- package/skills/service-digital-engagement-channel-configure/references/user_verification_client.md +51 -0
- package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +7 -0
- package/skills/service-digital-engagement-deployment-configure/SKILL.md +28 -10
- package/skills/service-digital-engagement-deployment-configure/references/_vendored/service-onboarding-delegation-guidelines.md +43 -0
- package/skills/service-digital-engagement-deployment-configure/references/branding_and_tooling.md +2 -2
- package/skills/service-digital-engagement-deployment-configure/references/code_snippet.md +2 -2
- package/skills/service-digital-engagement-deployment-configure/references/connect_api_creation.md +13 -7
- package/skills/service-digital-engagement-deployment-configure/references/custom_labels.md +127 -0
- package/skills/service-digital-engagement-deployment-configure/references/deployment_settings.md +2 -1
- package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +24 -25
- package/skills/service-digital-engagement-deployment-configure/references/prechat_forms.md +1 -1
- package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +7 -0
- package/skills/service-email-to-case-configure/SKILL.md +89 -80
- package/skills/service-email-to-case-configure/assets/CaseSettings.settings-meta.xml +1 -1
- package/skills/service-email-to-case-configure/examples/CaseSettings-two-addresses.settings-meta.xml +6 -3
- package/skills/service-email-to-case-configure/references/_vendored/service-onboarding-delegation-guidelines.md +43 -0
- package/skills/service-email-to-case-configure/references/agent-delegation.md +22 -0
- package/skills/service-email-to-case-configure/references/apply-mechanics.md +15 -12
- package/skills/service-email-to-case-configure/references/end-to-end-proof.md +14 -0
- package/skills/service-email-to-case-configure/references/onboarding-delegated-run.md +66 -0
- package/skills/service-email-to-case-configure/references/routing_address_reference.md +6 -2
- package/skills/service-email-to-case-configure/references/troubleshooting.md +17 -9
- package/skills/service-email-to-case-configure/scripts/apply-casesettings.py +863 -925
- package/skills/service-email-to-case-configure/scripts/tests/_agent.py +162 -0
- package/skills/service-email-to-case-configure/scripts/tests/_fakeorg.py +119 -155
- package/skills/service-email-to-case-configure/scripts/tests/_run.py +10 -17
- package/skills/service-email-to-case-configure/scripts/tests/test_apply_org_scenarios.py +14 -14
- package/skills/service-email-to-case-configure/scripts/tests/test_dispatch_contract.py +316 -0
- package/skills/service-email-to-case-configure/scripts/tests/test_new_capabilities.py +12 -43
- package/skills/service-email-to-case-configure/scripts/tests/test_validate_casesettings.py +13 -0
- package/skills/service-email-to-case-configure/scripts/validate-casesettings.py +17 -5
- package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +11 -11
- package/skills/service-remove-agents-from-contact-center-assign/SKILL.md +145 -0
- package/skills/service-voice-configuration-manage/SKILL.md +206 -0
- package/skills/service-voice-configuration-manage/assets/regions.json +23 -0
- package/skills/service-voice-configuration-manage/references/lookups.md +91 -0
- package/skills/service-voice-configuration-manage/references/voice_config_api.md +169 -0
- package/skills/service-voice-configuration-manage/scripts/create-configuration.sh +20 -0
- package/skills/service-voice-configuration-manage/scripts/delete-configuration.sh +31 -0
- package/skills/service-voice-configuration-manage/scripts/get-configuration.sh +18 -0
- package/skills/service-voice-configuration-manage/scripts/lib.sh +22 -0
- package/skills/service-voice-configuration-manage/scripts/list-configurations.sh +18 -0
- package/skills/service-voice-configuration-manage/scripts/lookup-caller-lines.sh +30 -0
- package/skills/service-voice-configuration-manage/scripts/lookup-flows.sh +29 -0
- package/skills/service-voice-configuration-manage/scripts/lookup-profiles.sh +29 -0
- package/skills/service-voice-configuration-manage/scripts/lookup-users.sh +29 -0
- package/skills/service-voice-configuration-manage/scripts/update-configuration.sh +20 -0
- package/skills/tableau-next-asset-create/SKILL.md +10 -4
- package/skills/tableau-next-asset-create/references/dashboard-design-principles.md +133 -0
- package/skills/tableau-next-asset-create/references/data-transform-gotchas.md +284 -128
- package/skills/tableau-next-asset-create/references/deep-reference-index.md +3 -3
- package/skills/tableau-next-asset-create/references/edit-dashboard.md +1 -1
- package/skills/tableau-next-asset-create/references/edit-visualization.md +678 -468
- package/skills/tableau-next-asset-create/references/shared-gates.md +1 -1
- package/skills/tableau-next-asset-create/references/tasks/create-data-transform.md +120 -42
- package/skills/tableau-next-asset-create/references/tasks/create-viz.md +8 -0
- package/skills/tableau-next-asset-create/references/tasks/edit-viz.md +7 -4
- package/skills/tableau-next-asset-create/references/tasks/promote-or-reuse.md +9 -4
- package/skills/tableau-next-asset-create/references/viz-authoring.md +1 -1
- package/skills/service-email-to-case-configure/scripts/tests/test_get_session.py +0 -134
|
@@ -127,7 +127,7 @@ Read each of the six through the `IncidentMgmt` SOR's preference read (`getOrgPr
|
|
|
127
127
|
preference:
|
|
128
128
|
|
|
129
129
|
```json
|
|
130
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
130
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.incident-mgmt.getOrgPref", "method": "GET", "queryParams": { "prefName": "IncidentValidationsEnabled" } })
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
`body` is `true` (on) or `false` (off).
|
|
@@ -192,7 +192,7 @@ mcp__headless-360__dispatch_readonly({ "url": "/services/data/v{version}/setup/o
|
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
```json
|
|
195
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
195
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "service.service-itsm.ipcpriority-matrix-setup.fetchPriorityMatrixConfigurations", "method": "GET", "queryParams": { "entityType": "Incident" } })
|
|
196
196
|
```
|
|
197
197
|
|
|
198
198
|
`body.isPreferenceEnabled` is *Turn on Automatic Priority Assignment for IT Service*; each
|
|
@@ -209,11 +209,11 @@ mcp__headless-360__dispatch_readonly({ "url": "/headless/invoke/service/service-
|
|
|
209
209
|
## Row 3 — SLA & Milestones
|
|
210
210
|
|
|
211
211
|
```json
|
|
212
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
212
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.slasettings.getSlaManagementPermission", "method": "GET" })
|
|
213
213
|
```
|
|
214
214
|
|
|
215
215
|
```json
|
|
216
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
216
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.slasettings.getSlaVersioningPermission", "method": "GET" })
|
|
217
217
|
```
|
|
218
218
|
|
|
219
219
|
Each `body` is `true` or `false` — SLA Management and SLA Versioning. Only when both are `true`, read the
|
|
@@ -259,14 +259,14 @@ IT Service**).
|
|
|
259
259
|
## Row 5 — Email-to-Incident
|
|
260
260
|
|
|
261
261
|
```json
|
|
262
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
262
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.email-to-incident.getEmailToIncidentSetting", "method": "GET" })
|
|
263
263
|
```
|
|
264
264
|
|
|
265
265
|
`body.emailToIncidentCommonSetting.enableEmailToIncident` says whether it's on. Only when it's on, read the
|
|
266
266
|
routing addresses:
|
|
267
267
|
|
|
268
268
|
```json
|
|
269
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
269
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.email-to-incident.getAllRoutingAddresses", "method": "GET" })
|
|
270
270
|
```
|
|
271
271
|
|
|
272
272
|
`body` lists one entry per routing address; on newer releases each entry has a `verified` flag.
|
|
@@ -284,7 +284,7 @@ First the MIM probe — a `200` with a `true` / `false` body means MIM is active
|
|
|
284
284
|
*auto-create problem*:
|
|
285
285
|
|
|
286
286
|
```json
|
|
287
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
287
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.mim.getMIMSetupPageOrgPreference", "method": "GET", "queryParams": { "prefName": "AutoCreationOfProblem" } })
|
|
288
288
|
```
|
|
289
289
|
|
|
290
290
|
Only when it returns a boolean, read the Major Incident Manager license, then the approval group:
|
|
@@ -298,7 +298,7 @@ mcp__headless-360__dispatch_readonly({
|
|
|
298
298
|
```
|
|
299
299
|
|
|
300
300
|
```json
|
|
301
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
301
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.mim.getMajorIncidentApprovalGroup", "method": "GET" })
|
|
302
302
|
```
|
|
303
303
|
|
|
304
304
|
The group read returns the group's Id when one is designated and `{}` when none is — never show the Id.
|
|
@@ -381,11 +381,11 @@ mcp__headless-360__dispatch_readonly({ "url": "/services/data/v{version}/setup/o
|
|
|
381
381
|
it's off — read the escalation level and the privileges:
|
|
382
382
|
|
|
383
383
|
```json
|
|
384
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
384
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.service-mgmt-privilege-setup.fetchEscalationLevel", "method": "GET" })
|
|
385
385
|
```
|
|
386
386
|
|
|
387
387
|
```json
|
|
388
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
388
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.service-mgmt-privilege-setup.getServicePrivileges", "method": "GET" })
|
|
389
389
|
```
|
|
390
390
|
|
|
391
391
|
The level read's `body` is the saved escalation level — `2147483647` means none is saved yet. The privileges
|
|
@@ -405,7 +405,7 @@ Employee assignments have no read, so this never says who holds a privilege.
|
|
|
405
405
|
## Row 10 — Audit Tracking
|
|
406
406
|
|
|
407
407
|
```json
|
|
408
|
-
mcp__headless-360__dispatch_readonly({ "
|
|
408
|
+
mcp__headless-360__dispatch_readonly({ "fully-qualified-operation-id": "setup.platform.field-history-tracking.getSingleEntityTrackingData", "method": "GET", "queryParams": { "entityEnumOrId": "Incident" } })
|
|
409
409
|
```
|
|
410
410
|
|
|
411
411
|
The tracked Incident fields are the `body.fields[]` entries with `isCurrentlyTracked` `true`;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: service-remove-agents-from-contact-center-assign
|
|
3
|
+
description: "Removes one or more agents (users) from a Contact Center (also known as Call Center). The action accepts user identifiers in multiple formats (User Id, Email, UserName, FirstName, LastName, or Alias) and a contact center identifier (CallCenter Id, Display name, or Internal name). Works with User, CallCenter metadata. Use this skill for remove agents from contact center, remove users from contact center, remove agents from call center, remove reps from contact center, remove reps from call center, remove users from call center, delete agents from contact center, delete users from contact center, delete agents from call center, delete users from call center, unassign agents from contact center, unassign users from contact center, unenroll agents from contact center, unenroll users from contact center."
|
|
4
|
+
metadata:
|
|
5
|
+
version: "1.0"
|
|
6
|
+
accessCheck: "(ServiceCloudVoice.userIsCCAdminScvOrBYOT) || (ServiceCloudVoice.userIsAdminUser)"
|
|
7
|
+
tags:
|
|
8
|
+
- "setup"
|
|
9
|
+
domains:
|
|
10
|
+
- "Service"
|
|
11
|
+
utterances:
|
|
12
|
+
- "Remove agents [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
13
|
+
- "Remove agents [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
14
|
+
- "Remove users [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
15
|
+
- "Remove users [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
16
|
+
- "Remove reps [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
17
|
+
- "Remove reps [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
18
|
+
- "Delete agents [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
19
|
+
- "Delete agents [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
20
|
+
- "Delete users [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
21
|
+
- "Delete users [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
22
|
+
- "Unassign agents [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
23
|
+
- "Unassign agents [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
24
|
+
- "Unassign users [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
25
|
+
- "Unassign users [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
26
|
+
- "Remove [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
27
|
+
- "Remove [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
28
|
+
- "Delete [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
29
|
+
- "Delete [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
30
|
+
- "Unassign [UserIdentifiers] from Contact Center [ContactCenterIdentifier]"
|
|
31
|
+
- "Unassign [UserIdentifiers] from Call Center [ContactCenterIdentifier]"
|
|
32
|
+
- "Remove [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
33
|
+
- "Remove [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
34
|
+
- "Delete [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
35
|
+
- "Delete [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
36
|
+
- "Unassign [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
37
|
+
- "Unassign [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
38
|
+
- "Remove agents [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
39
|
+
- "Remove agents [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
40
|
+
- "Remove users [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
41
|
+
- "Remove users [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
42
|
+
- "Delete agents [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
43
|
+
- "Delete agents [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
44
|
+
- "Delete users [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
45
|
+
- "Delete users [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
46
|
+
- "Unassign agents [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
47
|
+
- "Unassign agents [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
48
|
+
- "Unassign users [UserIdentifiers] from [ContactCenterIdentifier] Contact Center"
|
|
49
|
+
- "Unassign users [UserIdentifiers] from [ContactCenterIdentifier] Call Center"
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
# Remove Agents from Contact Center
|
|
54
|
+
|
|
55
|
+
## When to Use This Skill
|
|
56
|
+
|
|
57
|
+
Use this skill when the user wants to remove, unassign, delete, or unenroll one
|
|
58
|
+
or more agents (users) from a Contact Center, also known as a Call Center. It
|
|
59
|
+
handles requests that identify the agents by User Id, email, username, first
|
|
60
|
+
or last name, or alias, and identify the contact center by its Id, display
|
|
61
|
+
name, or internal name.
|
|
62
|
+
|
|
63
|
+
## Workflow
|
|
64
|
+
|
|
65
|
+
1. Resolve every provided user identifier to a unique User ID.
|
|
66
|
+
2. Present the resolved users (with their User Ids) and the contact center as a
|
|
67
|
+
draft, then stop and wait. Invoke the removal only after the user explicitly
|
|
68
|
+
confirms in a later message — never in the same turn as the draft.
|
|
69
|
+
3. Remove the resolved agents from the specified contact center, passing only
|
|
70
|
+
User Ids in userIdentifiers and the contact center identifier through
|
|
71
|
+
unresolved.
|
|
72
|
+
4. Report the action's response as the result. The removal is asynchronous: an
|
|
73
|
+
HTTP 200 with "We’re removing users from the contact center. Please give us a minute or two. We’ll send you an email when the process completes." certifies success — report it as a
|
|
74
|
+
success and do not re-read User.CallCenterId or wait for the background job.
|
|
75
|
+
|
|
76
|
+
## Critical Constraints
|
|
77
|
+
|
|
78
|
+
**Preconditions:**
|
|
79
|
+
- One or more user identifiers for the agents to remove must be provided.
|
|
80
|
+
- A contact center identifier must be provided.
|
|
81
|
+
- The user must be a Contact Center admin or a Salesforce admin.
|
|
82
|
+
- The specified users must currently be associated with the specified contact
|
|
83
|
+
center.
|
|
84
|
+
|
|
85
|
+
## Operations Reference
|
|
86
|
+
|
|
87
|
+
| Operation | Purpose | Call | Depends on |
|
|
88
|
+
|---|---|---|---|
|
|
89
|
+
| Resolve user identifiers | Resolve one or more user identifiers to unique User IDs | Resolve each user identifier (User Id, Email, UserName, FirstName, LastName, or Alias) to its User ID | - |
|
|
90
|
+
| Remove agents from contact center | Remove the resolved agents from the specified contact center | The Remove Agents from Contact Center action | Resolve user identifiers |
|
|
91
|
+
|
|
92
|
+
### Dependency graph
|
|
93
|
+
|
|
94
|
+
```mermaid
|
|
95
|
+
graph TD
|
|
96
|
+
A[Resolve user identifiers] --> B[Remove agents from contact center]
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Read operations
|
|
100
|
+
|
|
101
|
+
**Resolve user identifiers**
|
|
102
|
+
Looks up each provided user identifier and returns its unique User ID.
|
|
103
|
+
- **Call:** resolve each User identifier to its User ID
|
|
104
|
+
- **Inputs:**
|
|
105
|
+
- The entity type being resolved — `User`.
|
|
106
|
+
- User identifiers (list) — each in one of: User Id, Email, UserName,
|
|
107
|
+
FirstName, LastName, or Alias. Can be provided as a comma-separated list.
|
|
108
|
+
- **Output:** The resolved unique User IDs.
|
|
109
|
+
|
|
110
|
+
### Write operations
|
|
111
|
+
|
|
112
|
+
**Remove agents from contact center**
|
|
113
|
+
Removes the resolved agents from the specified contact center.
|
|
114
|
+
- **Call:** the Remove Agents from Contact Center action
|
|
115
|
+
- **Inputs:**
|
|
116
|
+
- User IDs (list) — the User IDs resolved in the previous step.
|
|
117
|
+
- Contact center identifier (string) — a CallCenter Id, display name, or
|
|
118
|
+
internal name, passed through as provided without resolution.
|
|
119
|
+
- **Output:** A response describing the result of removing the agents from
|
|
120
|
+
the contact center.
|
|
121
|
+
- **Depends on:** Resolve user identifiers.
|
|
122
|
+
|
|
123
|
+
## Notes
|
|
124
|
+
|
|
125
|
+
- User identifiers can be provided as a comma-separated list.
|
|
126
|
+
- Each identifier can be in any of these formats: User Id, Email, UserName,
|
|
127
|
+
FirstName, LastName, or Alias.
|
|
128
|
+
- The contact center identifier can be a CallCenter Id, display name, or
|
|
129
|
+
internal name.
|
|
130
|
+
- User identifiers are resolved to User IDs before being passed to the
|
|
131
|
+
removal call; the contact center identifier is not resolved.
|
|
132
|
+
|
|
133
|
+
<!-- skill-validate: ignore-start -->
|
|
134
|
+
<!-- codey:operations start -->
|
|
135
|
+
## Operations Reference
|
|
136
|
+
|
|
137
|
+
Operations this skill uses — routing and dependency reference.
|
|
138
|
+
|
|
139
|
+
| Operation | Purpose | Status | Call | Depends on |
|
|
140
|
+
|-----------|---------|--------|------|------------|
|
|
141
|
+
| `resolve-user-identifiers` | read | implemented | `GET /services/data/v67.0/query` | — |
|
|
142
|
+
| `remove-agents-from-contact-center` | write | implemented | `POST /services/data/v67.0/headless/invocableaction` | `resolve-user-identifiers` |
|
|
143
|
+
| `verify-agents-removed-from-contact-center` | verify | implemented | `GET /services/data/v67.0/query` | `remove-agents-from-contact-center` |
|
|
144
|
+
<!-- codey:operations end -->
|
|
145
|
+
<!-- skill-validate: ignore-end -->
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: service-voice-configuration-manage
|
|
3
|
+
description: "Lists, creates, updates, and deletes native Contact Center voice configurations (VoiceTelephonyDefinition) via the thb-voice-config Connect API. Also inspects a configuration's dialing prefix, region, default caller Id, pre-dial flow, and assigned users/profiles, resolving the Ids it needs (pre-dial flow, assignable users, profiles, caller-line numbers) from the org before writing. Use when the user asks to list/view/create/update/delete a voice configuration, change a configuration's dialing prefix, region, caller Id, or pre-dial flow, or assign users/profiles to a configuration. TRIGGER when the user says create a voice configuration, update the voice config, list voice configurations, assign users to a voice configuration, or delete a voice configuration. DO NOT TRIGGER for procuring phone numbers or creating messaging/voice channels (that is service-agentforce-contact-center-coordinate), for outbound dialing/campaign setup, or for any non-voice configuration."
|
|
4
|
+
allowed-tools: Bash(sf org display:*) Bash(sf api request rest:*) Bash(sf data query:*) Bash(scripts/*) Bash(./scripts/*) Bash(bash scripts/*) Bash(jq:*) Read AskUserQuestion
|
|
5
|
+
metadata:
|
|
6
|
+
version: "1.0"
|
|
7
|
+
minApiVersion: "68.0"
|
|
8
|
+
accessCheck: "ThunderbirdVoice.orgHasNativeVoiceAllowed"
|
|
9
|
+
domains: ["Service", "Agentforce"]
|
|
10
|
+
relatedSkills:
|
|
11
|
+
- "service-agentforce-contact-center-coordinate"
|
|
12
|
+
cliTools:
|
|
13
|
+
- tool: ["jq"]
|
|
14
|
+
semver: ">=1.6"
|
|
15
|
+
- tool: ["sf"]
|
|
16
|
+
semver: ">=2.0.0"
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# service-voice-configuration-manage: Manage native Contact Center voice configurations
|
|
20
|
+
|
|
21
|
+
Drives the `thb-voice-config` Connect API to manage voice configurations
|
|
22
|
+
(`VoiceTelephonyDefinition`, key prefix `1pK`) for native Contact Center. A voice configuration
|
|
23
|
+
holds a dialing prefix, a dialing region, a default caller Id, a pre-dial flow, and a set of
|
|
24
|
+
assigned users and profiles. This skill lists and inspects configurations, creates new ones,
|
|
25
|
+
updates existing ones, and deletes them — resolving the Ids a configuration needs from the org
|
|
26
|
+
before writing.
|
|
27
|
+
|
|
28
|
+
## Scope
|
|
29
|
+
|
|
30
|
+
- **In scope**: listing voice configurations, reading a single configuration, creating a
|
|
31
|
+
configuration, updating a configuration (fields and user/profile assignments), deleting a
|
|
32
|
+
configuration, and resolving the supporting Ids (pre-dial flow, assignable users, profiles,
|
|
33
|
+
caller-line numbers) + the static region/dialing-prefix list.
|
|
34
|
+
- **Out of scope**: authenticating or provisioning the org (must already be authenticated);
|
|
35
|
+
procuring phone numbers or creating `MessagingChannel`/voice channels (use
|
|
36
|
+
`service-agentforce-contact-center-coordinate`); outbound dialing / campaign configuration;
|
|
37
|
+
and any non-voice configuration.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Prerequisites
|
|
42
|
+
|
|
43
|
+
- **Authenticated org** — this skill never runs an interactive login.
|
|
44
|
+
- **Native Contact Center admin access** — every endpoint requires it.
|
|
45
|
+
A caller without it gets `403`; stop and tell the user
|
|
46
|
+
they need Contact Center admin access.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Required Inputs
|
|
51
|
+
|
|
52
|
+
Gather or confirm before acting:
|
|
53
|
+
|
|
54
|
+
- **Target org**: an already-authenticated org. If the user names an alias, use it. Otherwise
|
|
55
|
+
resolve the default org with `sf org display --json` and read `result.alias` (falling back to
|
|
56
|
+
`result.username`); use that as `<alias>` for every script. Never run an interactive login.
|
|
57
|
+
- **Operation**: list, get, create, update, or delete.
|
|
58
|
+
- **For get / update / delete**: the target configuration's Id (`1pK…`). If the user names a
|
|
59
|
+
configuration by label, resolve the Id with `list-configurations.sh` first.
|
|
60
|
+
- **For create / update**: the field values (see Step 5/6). Resolve any flow / user / profile /
|
|
61
|
+
caller-line Ids with the lookup scripts before building the request body.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Workflow
|
|
66
|
+
|
|
67
|
+
All steps are sequential. If a step fails or any API call returns a non-2xx, stop and report the
|
|
68
|
+
error rather than continuing.
|
|
69
|
+
|
|
70
|
+
**Run autonomously.** Do not block on the user. Infer every value you can from the request, resolve
|
|
71
|
+
the rest from the curated list and the lookup scripts, and proceed — then report what you chose.
|
|
72
|
+
Ask a clarifying question only when a human is available *and* the request is genuinely ambiguous
|
|
73
|
+
*and* you cannot resolve a safe default; never ask merely to confirm, and never stop to ask about
|
|
74
|
+
connecting or authenticating an org. When no human is available (headless / automated runs), do
|
|
75
|
+
**not** call `AskUserQuestion` — proceed with the most likely interpretation and resolved defaults.
|
|
76
|
+
|
|
77
|
+
1. **Confirm the org connection** — run `sf org display --target-org <alias> --json` and read
|
|
78
|
+
`result.instanceUrl`. If it fails, report that the org must be authenticated first, then stop.
|
|
79
|
+
|
|
80
|
+
2. **Determine the operation** — pick **list / get / create / update / delete** from the user's
|
|
81
|
+
request ("create…" → create, "show/read/view…" → get, "list…" → list, "change/update…" →
|
|
82
|
+
update, "delete/remove…" → delete). If a human is available and the request is truly ambiguous
|
|
83
|
+
you may confirm; otherwise proceed with the most likely operation. Branch below.
|
|
84
|
+
|
|
85
|
+
3. **List** — run `scripts/list-configurations.sh <alias>`. Present the returned
|
|
86
|
+
`configurations` as a numbered list (`name`, `developerName`, `id`). This is also how you
|
|
87
|
+
resolve an Id for get/update/delete when the user named a configuration by label.
|
|
88
|
+
|
|
89
|
+
4. **Get** — run `scripts/get-configuration.sh <alias> <configId>`. Present the full detail.
|
|
90
|
+
Remember the output uses the read-side field names (`dialingRegion`, `preDialFlowId`,
|
|
91
|
+
`defaultCallerIdentifier`) — see `references/voice_config_api.md`.
|
|
92
|
+
|
|
93
|
+
5. **Create** — read `references/voice_config_api.md` for the input contract, then:
|
|
94
|
+
1. Collect `name` (required). Optionally collect `developerName` (immutable after create — if
|
|
95
|
+
omitted the platform derives it), `dialingPrefix`, `region`, `description`.
|
|
96
|
+
2. For `region` + `dialingPrefix`, resolve the value from `assets/regions.json`: match the
|
|
97
|
+
region the user named to the closest `regionCode` (e.g. "US West" / "US East" / "US" → `US`;
|
|
98
|
+
a country name → its entry) and use that entry's `dialingPrefix`. Accept a value the user
|
|
99
|
+
gave verbatim. Report the region chosen. Only if a human is available and no entry plausibly
|
|
100
|
+
matches should you present the list; never block waiting for a choice.
|
|
101
|
+
3. Resolve optional Ids with the lookup scripts (read `references/lookups.md`) — never hardcode
|
|
102
|
+
Ids. Pick the entry that matches the user's request; if a human is available you may present
|
|
103
|
+
the list for selection, but never block — choose the best match and report it:
|
|
104
|
+
- `callOriginationFlowId` ← `scripts/lookup-flows.sh <alias>` (a flow `durableId`)
|
|
105
|
+
- `userIds` ← `scripts/lookup-users.sh <alias>` (User Ids)
|
|
106
|
+
- `profileIds` ← `scripts/lookup-profiles.sh <alias>` (Profile Ids)
|
|
107
|
+
- `defaultCallerId` ← `scripts/lookup-caller-lines.sh <alias>` (a caller-line `code`)
|
|
108
|
+
4. Build the `CreateVoiceConfigurationInputRepresentation` JSON with the **input** field names
|
|
109
|
+
and run `scripts/create-configuration.sh <alias> '<json-body>'`. Capture the returned `id`.
|
|
110
|
+
5. Read the new configuration back with `get-configuration.sh` and show it.
|
|
111
|
+
|
|
112
|
+
6. **Update** — read `references/voice_config_api.md`, then:
|
|
113
|
+
1. Resolve the `configId` (Step 3 if needed) and fetch the current state with
|
|
114
|
+
`get-configuration.sh` so you can show what changes.
|
|
115
|
+
2. Collect the changes. **`name` is required** on every update. **Do not send
|
|
116
|
+
`developerName`** (immutable). Translate read-side values back to input field names
|
|
117
|
+
(`dialingRegion`→`region`, `preDialFlowId`→`callOriginationFlowId`,
|
|
118
|
+
`defaultCallerIdentifier`→`defaultCallerId`). Resolve any new flow/user/profile/caller-line
|
|
119
|
+
Ids with the lookup scripts.
|
|
120
|
+
3. For assignments: `userIds` / `profileIds` **replace the full list**. To add or remove one,
|
|
121
|
+
fetch the current assignments, edit the list, and send the whole set. Omit the field to
|
|
122
|
+
leave assignments untouched; send `[]` to clear them. Proceed with the set implied by the
|
|
123
|
+
request and report the final intended set; if a human is available you may confirm first, but
|
|
124
|
+
do not block.
|
|
125
|
+
4. Run `scripts/update-configuration.sh <alias> <configId> '<json-body>'`, then read it back.
|
|
126
|
+
|
|
127
|
+
7. **Delete** — resolve the `configId` (Step 3 if the user named it by label). When the request
|
|
128
|
+
explicitly identifies the configuration to delete, proceed; if a human is available you may
|
|
129
|
+
confirm first (naming the configuration), but do not block. Then run
|
|
130
|
+
`scripts/delete-configuration.sh <alias> <configId>`. The org's **default** configuration
|
|
131
|
+
cannot be deleted (`400`); surface that clearly if it happens. If the named configuration does
|
|
132
|
+
not exist, stop and report that plainly rather than deleting anything else.
|
|
133
|
+
|
|
134
|
+
8. **Report** — give a short summary of what you did: the operation performed
|
|
135
|
+
(list / get / create / update / delete), the target org, the affected configuration (its
|
|
136
|
+
`id` (`1pK…`) and `name` for a single-record op), any fields changed on an update, and the
|
|
137
|
+
final user/profile assignment counts. End with a one-line outcome stating **SUCCESS** or the
|
|
138
|
+
exact error and the step it failed at.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Rules / Constraints
|
|
143
|
+
|
|
144
|
+
| Constraint | Rationale |
|
|
145
|
+
|-----------|-----------|
|
|
146
|
+
| Never run an interactive login; require a pre-authenticated org alias | Auth/org lifecycle is out of scope; keeps the skill portable |
|
|
147
|
+
| Call the Connect API via `sf api request rest`; never extract the access token | Uses the CLI's stored session for `--target-org` — no raw token handling |
|
|
148
|
+
| Never pass `--json` to `sf api request rest` | The command has no such flag; its body is already JSON. (`sf data query` in the lookups *does* use `--json`) |
|
|
149
|
+
| Never hardcode flow / user / profile / caller-line Ids | They are org-specific; resolve them with the lookup scripts |
|
|
150
|
+
| `name` is required on both create and update | The service has no null-guard; a missing name returns 500, not a clean error |
|
|
151
|
+
| Do not send `developerName` on update | It is immutable after create; the update input does not accept it |
|
|
152
|
+
| `userIds` / `profileIds` replace the full assignment list | Not additive — send the complete intended set, or omit to leave untouched |
|
|
153
|
+
| Stop and report on any non-2xx API response | Partial changes left silent are worse than a clear failure |
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Gotchas
|
|
158
|
+
|
|
159
|
+
| Issue | Resolution |
|
|
160
|
+
|-------|------------|
|
|
161
|
+
| Read a config, then an update fails on unknown fields | The GET output uses read-side names; translate `dialingRegion`/`preDialFlowId`/`defaultCallerIdentifier` back to `region`/`callOriginationFlowId`/`defaultCallerId` before sending |
|
|
162
|
+
| `409 CONFLICT` on create | A configuration with that `developerName` already exists — pick another or reuse the existing one |
|
|
163
|
+
| `400` on delete | The default configuration cannot be deleted — confirm the target is not the org default |
|
|
164
|
+
| `403` on any call | The caller is not a native Contact Center admin — stop; the user must have that access |
|
|
165
|
+
| An update unexpectedly removed users/profiles | `userIds`/`profileIds` replace the full list; always send the complete intended set |
|
|
166
|
+
| Create returned `200` but a user/profile isn't assigned | Create is lenient — a `200` + `id` means the record was created, but user/profile assignment is best-effort and not rolled back if it fails. Always read the config back (Step 5, final sub-step) and confirm the assignments landed |
|
|
167
|
+
| Regions list seems incomplete | `assets/regions.json` is a curated static list (regions are not queryable) — extend it or let the user supply `region`/`dialingPrefix` directly |
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Output Expectations
|
|
172
|
+
|
|
173
|
+
This skill reads and writes `VoiceTelephonyDefinition` records in the target org:
|
|
174
|
+
|
|
175
|
+
- **list / get**: a presented list or a single configuration's detail (no changes).
|
|
176
|
+
- **create**: a new configuration (returns its `id`), read back and shown.
|
|
177
|
+
- **update**: the modified configuration, read back and shown.
|
|
178
|
+
- **delete**: confirmation the configuration was removed.
|
|
179
|
+
- A short final report per Step 8.
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Cross-Skill Integration
|
|
184
|
+
|
|
185
|
+
Pairs with `service-agentforce-contact-center-coordinate`, which procures phone numbers and
|
|
186
|
+
creates the voice `MessagingChannel`. This skill owns the voice *configuration* record only; it
|
|
187
|
+
does not procure numbers or create channels. Hand off number/channel work to that skill.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Reference File Index
|
|
192
|
+
|
|
193
|
+
| File | When to read |
|
|
194
|
+
|------|-------------|
|
|
195
|
+
| `references/voice_config_api.md` | Any operation — the CRUD contract, field-name input/output mapping, and status codes |
|
|
196
|
+
| `references/lookups.md` | Steps 5–6 — how to resolve flow/user/profile/caller-line Ids and the static-regions note |
|
|
197
|
+
| `assets/regions.json` | Steps 5–6 — static region + dialing-prefix choices |
|
|
198
|
+
| `scripts/list-configurations.sh` | Step 3 — list all configurations |
|
|
199
|
+
| `scripts/get-configuration.sh` | Step 4 — read one configuration |
|
|
200
|
+
| `scripts/create-configuration.sh` | Step 5 — create a configuration |
|
|
201
|
+
| `scripts/update-configuration.sh` | Step 6 — update a configuration |
|
|
202
|
+
| `scripts/delete-configuration.sh` | Step 7 — delete a configuration |
|
|
203
|
+
| `scripts/lookup-flows.sh` | Step 5/6 — resolve a pre-dial flow `durableId` for `callOriginationFlowId` |
|
|
204
|
+
| `scripts/lookup-users.sh` | Step 5/6 — resolve assignable User Ids for `userIds` |
|
|
205
|
+
| `scripts/lookup-profiles.sh` | Step 5/6 — resolve Profile Ids for `profileIds` |
|
|
206
|
+
| `scripts/lookup-caller-lines.sh` | Step 5/6 — resolve a caller-line `code` for `defaultCallerId` |
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Static dialing regions for voice configurations. Regions are not queryable via the API — the Setup UI derives them in-process from a phone-number library (supported regions + country calling codes). This is a curated starter list of common native-voice regions; extend it as needed. Use `regionCode` as the input `region` and `dialingPrefix` as the input `dialingPrefix`.",
|
|
3
|
+
"regions": [
|
|
4
|
+
{ "regionCode": "US", "displayName": "United States", "dialingPrefix": "+1" },
|
|
5
|
+
{ "regionCode": "CA", "displayName": "Canada", "dialingPrefix": "+1" },
|
|
6
|
+
{ "regionCode": "GB", "displayName": "United Kingdom", "dialingPrefix": "+44" },
|
|
7
|
+
{ "regionCode": "IE", "displayName": "Ireland", "dialingPrefix": "+353" },
|
|
8
|
+
{ "regionCode": "AU", "displayName": "Australia", "dialingPrefix": "+61" },
|
|
9
|
+
{ "regionCode": "NZ", "displayName": "New Zealand", "dialingPrefix": "+64" },
|
|
10
|
+
{ "regionCode": "DE", "displayName": "Germany", "dialingPrefix": "+49" },
|
|
11
|
+
{ "regionCode": "FR", "displayName": "France", "dialingPrefix": "+33" },
|
|
12
|
+
{ "regionCode": "ES", "displayName": "Spain", "dialingPrefix": "+34" },
|
|
13
|
+
{ "regionCode": "IT", "displayName": "Italy", "dialingPrefix": "+39" },
|
|
14
|
+
{ "regionCode": "NL", "displayName": "Netherlands", "dialingPrefix": "+31" },
|
|
15
|
+
{ "regionCode": "SE", "displayName": "Sweden", "dialingPrefix": "+46" },
|
|
16
|
+
{ "regionCode": "CH", "displayName": "Switzerland", "dialingPrefix": "+41" },
|
|
17
|
+
{ "regionCode": "IN", "displayName": "India", "dialingPrefix": "+91" },
|
|
18
|
+
{ "regionCode": "SG", "displayName": "Singapore", "dialingPrefix": "+65" },
|
|
19
|
+
{ "regionCode": "JP", "displayName": "Japan", "dialingPrefix": "+81" },
|
|
20
|
+
{ "regionCode": "BR", "displayName": "Brazil", "dialingPrefix": "+55" },
|
|
21
|
+
{ "regionCode": "MX", "displayName": "Mexico", "dialingPrefix": "+52" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Lookups — resolving the Ids a voice configuration needs
|
|
2
|
+
|
|
3
|
+
The create/update inputs in `voice_config_api.md` take **record Ids** (`callOriginationFlowId`,
|
|
4
|
+
`userIds`, `profileIds`) and a **caller-line code** (`defaultCallerId`). These are org-specific —
|
|
5
|
+
never hardcode them. Resolve them first with the lookup scripts below, pick the matching entry and
|
|
6
|
+
report it, then pass the selected values into `create-configuration.sh` / `update-configuration.sh`.
|
|
7
|
+
Present the list of choices only if a human is available to pick.
|
|
8
|
+
|
|
9
|
+
These lookups are **not** Connect endpoints. They read standard/Tooling objects with
|
|
10
|
+
`sf data query`, which — unlike `sf api request rest` — **does** take `--json` (its records live
|
|
11
|
+
under `.result.records[]`). Each script shapes the result with `jq` into a small, named list.
|
|
12
|
+
|
|
13
|
+
| Need to fill | Script | Source object | Query API |
|
|
14
|
+
|--------------|--------|---------------|-----------|
|
|
15
|
+
| `callOriginationFlowId` | `lookup-flows.sh` | `FlowDefinitionView` | standard |
|
|
16
|
+
| `userIds` | `lookup-users.sh` | `PermissionSetAssignment` | standard |
|
|
17
|
+
| `profileIds` | `lookup-profiles.sh` | `Profile` | standard |
|
|
18
|
+
| `defaultCallerId` | `lookup-caller-lines.sh` | `CommunicationChannelLine` | **Tooling** |
|
|
19
|
+
| `region` / `dialingPrefix` | *(none — static)* | `assets/regions.json` | — |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Flows — `lookup-flows.sh <alias>`
|
|
24
|
+
|
|
25
|
+
Active, unmanaged auto-launched flows eligible as the pre-dial flow.
|
|
26
|
+
|
|
27
|
+
```sql
|
|
28
|
+
SELECT DurableId, ApiName, Label, ProcessType FROM FlowDefinitionView
|
|
29
|
+
WHERE IsActive = true AND ProcessType = 'AutoLaunchedFlow' AND ManageableState = 'unmanaged'
|
|
30
|
+
ORDER BY Label ASC LIMIT 2000
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Output: `{ "flows": [ { "durableId", "apiName", "label" } ] }`.
|
|
34
|
+
Pass a chosen `durableId` as `callOriginationFlowId`.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Users — `lookup-users.sh <alias>`
|
|
39
|
+
|
|
40
|
+
Active users holding a native Contact Center permission set. A user with more than one of the
|
|
41
|
+
sets is returned once (deduped by `AssigneeId`).
|
|
42
|
+
|
|
43
|
+
```sql
|
|
44
|
+
SELECT AssigneeId, Assignee.Name, Assignee.Username FROM PermissionSetAssignment
|
|
45
|
+
WHERE PermissionSet.Name IN
|
|
46
|
+
('ContactCenterAgentNativeCCaaS','ContactCenterSupervisorNativeCCaaS','ContactCenterAdminNativeCCaaS')
|
|
47
|
+
AND Assignee.IsActive = true
|
|
48
|
+
ORDER BY Assignee.Name ASC LIMIT 2000
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Output: `{ "users": [ { "id", "name", "username" } ] }`.
|
|
52
|
+
Pass chosen `id` values in the `userIds` array.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Profiles — `lookup-profiles.sh <alias>`
|
|
57
|
+
|
|
58
|
+
```sql
|
|
59
|
+
SELECT Id, Name FROM Profile ORDER BY Name ASC LIMIT 500
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Output: `{ "profiles": [ { "id", "name" } ] }`.
|
|
63
|
+
Pass chosen `id` values in the `profileIds` array.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Caller lines — `lookup-caller-lines.sh <alias>`
|
|
68
|
+
|
|
69
|
+
Live caller-line numbers. `CommunicationChannelLine` is a **Tooling** object, so this script
|
|
70
|
+
passes `--use-tooling-api`.
|
|
71
|
+
|
|
72
|
+
```sql
|
|
73
|
+
SELECT Id, Code FROM CommunicationChannelLine
|
|
74
|
+
WHERE CodeStatus = 'Live' AND CliStatus IN ('DEFAULT_CLI','CLI_ENABLED')
|
|
75
|
+
ORDER BY LastModifiedDate DESC LIMIT 2000
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Output: `{ "callerLines": [ { "id", "code" } ] }`.
|
|
79
|
+
Pass a chosen `code` (the E.164 number) as `defaultCallerId`.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Regions / dialing prefix — static (no query)
|
|
84
|
+
|
|
85
|
+
Regions are **not queryable** — the Setup UI computes them in-process from a phone-number
|
|
86
|
+
library (supported regions + their country calling codes). This skill ships a static list in
|
|
87
|
+
`assets/regions.json` with `{ regionCode, displayName, dialingPrefix }` entries. Use it to pick
|
|
88
|
+
the matching `region` (e.g. `US`) and its `dialingPrefix` (e.g. `+1`) and report the choice;
|
|
89
|
+
present the list only if a human is available to pick. Both fields are plain strings on the
|
|
90
|
+
input; if the requested region is already known, you can pass them directly without consulting
|
|
91
|
+
the list.
|