Configure Native Voice Recording & Transcription (headless) Turn call recording and call transcription for Native Voice (Thunderbird Voice) on or off on an org, programmatically, so the change takes effect for headless / API-driven support sessions that never touch the Service Console UI. Recording and transcription are two separate preferences — this skill can set either or both to the requested state (leaving the other untouched) and returns a structured JSON confirmation. Scope - In scope : setting and/or to a requested state — (enable) or (disable) — on the metadata via an sf CLI Metadata…

\\\n || fail \"invalid --api-version '$API_VERSION' (expected X.Y, e.g. 68.0).\"\nAPI_MAJOR=\"${API_VERSION%%.*}\"\n[ \"$API_MAJOR\" -ge 68 ] || fail \"--api-version must be >= 68.0 (ThunderbirdVoiceSettings is not exposed below v68.0). Got $API_VERSION.\"\n\n# --- scaffold an isolated SFDX project so the retrieve/deploy is self-contained\nWORKDIR=\"$(mktemp -d)\"\ntrap 'rm -rf \"$WORKDIR\"' EXIT\nsf project generate --name p --output-dir \"$WORKDIR\" >/dev/null 2>&1 \\\n || fail \"could not scaffold a temporary SFDX project.\"\nPROJ=\"$WORKDIR/p\"\n\ncat > \"$PROJ/package.xml\" \u003c\u003cEOF\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\u003cPackage xmlns=\"http://soap.sforce.com/2006/04/metadata\">\n \u003ctypes>\u003cmembers>${MEMBER}\u003c/members>\u003cname>Settings\u003c/name>\u003c/types>\n \u003cversion>${API_VERSION}\u003c/version>\n\u003c/Package>\nEOF\n\nSETTINGS_FILE=\"$PROJ/$SETTINGS_FILE_REL\"\n\n# Read the literal true/false a boolean field currently holds in the settings\n# file; echoes \"false\" if the field is absent (guarded so an empty grep under\n# `set -o pipefail` does not abort the script).\nread_pref() { # $1 = settings xml file, $2 = field name\n local v\n v=\"$({ grep -oE \"\u003c$2>(true|false)\u003c/$2>\" \"$1\" || true; } | sed -E \"s#\u003c$2>([a-z]+)\u003c/$2>#\\1#\" | head -n1)\"\n echo \"${v:-false}\"\n}\n\n# --- step 1: retrieve current settings (gate check + sibling snapshot) --------\n( cd \"$PROJ\" && sf project retrieve start -x package.xml -o \"$TARGET_ORG\" >/dev/null 2>&1 ) \\\n || fail \"retrieve failed for org '$TARGET_ORG'. Check the alias is connected (sf org display -o $TARGET_ORG).\"\n\n[ -f \"$SETTINGS_FILE\" ] || fail \"retrieve returned no ${MEMBER}.settings-meta.xml — the Settings type was not returned at v${API_VERSION}. Two causes: (a) v${API_VERSION} is BELOW 68.0 (fields not yet exposed), or (b) v${API_VERSION} is ABOVE the org's max supported API version, which SILENTLY returns empty. Pin --api-version to the org's max (68.0 works on every org that has the feature).\"\n\n# Gate check: an empty self-closing element means the org-perm gate\n# (orgHasNativeVoiceAllowed) is OFF — the feature is not provisioned. The fields\n# are only present when the gate is on.\nif ! grep -q '\u003cenableCallRecording>' \"$SETTINGS_FILE\"; then\n fail \"Native Voice is not provisioned on '$TARGET_ORG' (ThunderbirdVoiceSettings returned no fields). This is an org-perm gate enabled through provisioning/Blacktab, not something this skill can flip.\"\nfi\n\n# --- step 2: set ONLY the targeted field(s) to the requested state ------------\n# A field that is not targeted is left at its retrieved value (preserved), just\n# like the siblings. Version-suffixed sed -i for BSD (macOS) + GNU portability.\nSED_ARGS=()\n[ -n \"$REC_STATE\" ] && SED_ARGS+=(-e \"s|\u003cenableCallRecording>[^\u003c]*\u003c/enableCallRecording>|\u003cenableCallRecording>${REC_STATE}\u003c/enableCallRecording>|\")\n[ -n \"$TRANS_STATE\" ] && SED_ARGS+=(-e \"s|\u003cenableCallTranscription>[^\u003c]*\u003c/enableCallTranscription>|\u003cenableCallTranscription>${TRANS_STATE}\u003c/enableCallTranscription>|\")\nsed -E -i.bak \"${SED_ARGS[@]}\" \"$SETTINGS_FILE\"\nrm -f \"${SETTINGS_FILE}.bak\"\n\n# A targeted field must now hold the requested value; if the tag was absent the\n# sed matched nothing (a provisioned org exposes both, so this is an edge case).\n[ -z \"$REC_STATE\" ] || grep -q \"\u003cenableCallRecording>${REC_STATE}\u003c/enableCallRecording>\" \"$SETTINGS_FILE\" || fail \"could not set enableCallRecording=${REC_STATE} in the retrieved file (field absent?).\"\n[ -z \"$TRANS_STATE\" ] || grep -q \"\u003cenableCallTranscription>${TRANS_STATE}\u003c/enableCallTranscription>\" \"$SETTINGS_FILE\" || fail \"could not set enableCallTranscription=${TRANS_STATE} in the retrieved file (field absent?).\"\n\n# --- step 3: validate (dry-run). Never skip. ---------------------------------\n( cd \"$PROJ\" && sf project deploy start -x package.xml -o \"$TARGET_ORG\" --dry-run --ignore-conflicts >/dev/null 2>&1 ) \\\n || fail \"validation (deploy --dry-run) failed — the org rejected the change. Re-check the gate (step 1).\"\n\n# Collect every boolean sibling (\u003ctag>true|false\u003c/tag>) EXCEPT the two target\n# prefs from the settings file, as a JSON array [{name, enabled}], so the\n# confirmation can attest each sibling was retrieved and carried through\n# unchanged. `grep -o` isolates each pair; `#`-delimited sed avoids colliding\n# with the `|` alternation; the `|| true` guards keep an empty result (no\n# siblings) from tripping `set -o pipefail`.\nextract_preserved() { # $1 = settings xml file -> JSON array on stdout\n { grep -oE '\u003c[A-Za-z][A-Za-z0-9]*>(true|false)\u003c/[A-Za-z][A-Za-z0-9]*>' \"$1\" || true; } \\\n | sed -E 's#\u003c([A-Za-z0-9]+)>([a-z]+)\u003c/[A-Za-z0-9]+>#\\1 \\2#' \\\n | { grep -vE '^(enableCallRecording|enableCallTranscription) ' || true; } \\\n | jq -R -s 'split(\"\\n\") | map(select(length > 0) | split(\" \") | { name: .[0], enabled: (.[1] == \"true\") })'\n}\n\n# Overall status word from the resulting state of the two target preferences.\ncompute_status() { # $1 = recording bool, $2 = transcription bool\n if [ \"$1\" = \"true\" ] && [ \"$2\" = \"true\" ]; then echo \"ENABLED\"\n elif [ \"$1\" = \"false\" ] && [ \"$2\" = \"false\" ]; then echo \"DISABLED\"\n else echo \"CONFIGURED\"; fi\n}\n\nemit_json() { # $1 = recording bool, $2 = transcription bool, $3 = status, $4 = preserved JSON\n jq -n --arg apiVersion \"$API_VERSION\" --arg status \"$3\" \\\n --argjson recording \"$1\" --argjson transcription \"$2\" --argjson preserved \"$4\" \\\n '{\n type: \"ThunderbirdVoiceSettings\",\n fullName: \"ThunderbirdVoice\",\n apiVersion: $apiVersion,\n method: \"sf project deploy (Settings/ThunderbirdVoice)\",\n headless: true,\n preferences: [\n { name: \"enableCallRecording\", enabled: $recording },\n { name: \"enableCallTranscription\", enabled: $transcription }\n ],\n preserved: $preserved,\n status: $status\n }'\n}\n\nif [ \"$DRY_RUN\" = \"true\" ]; then\n # The local file already reflects the requested change (targets flipped, the\n # rest at their retrieved values); report both prefs from it.\n REC_FINAL=\"$(read_pref \"$SETTINGS_FILE\" enableCallRecording)\"\n TRANS_FINAL=\"$(read_pref \"$SETTINGS_FILE\" enableCallTranscription)\"\n emit_json \"$REC_FINAL\" \"$TRANS_FINAL\" \"VALIDATED\" \"$(extract_preserved \"$SETTINGS_FILE\")\"\n exit 0\nfi\n\n# --- step 4: deploy ----------------------------------------------------------\n( cd \"$PROJ\" && sf project deploy start -x package.xml -o \"$TARGET_ORG\" --ignore-conflicts >/dev/null 2>&1 ) \\\n || fail \"deploy failed after a successful dry-run.\"\n\n# --- step 5: verify by round-trip (do not trust \"Succeeded\") -----------------\nrm -f \"$SETTINGS_FILE\"\n( cd \"$PROJ\" && sf project retrieve start -x package.xml -o \"$TARGET_ORG\" >/dev/null 2>&1 ) \\\n || fail \"post-deploy retrieve failed; cannot verify.\"\n\nREC_FINAL=\"$(read_pref \"$SETTINGS_FILE\" enableCallRecording)\"\nTRANS_FINAL=\"$(read_pref \"$SETTINGS_FILE\" enableCallTranscription)\"\n# Each targeted field must come back at the requested state (untargeted fields\n# are whatever the org holds — reported, not asserted).\n[ -z \"$REC_STATE\" ] || [ \"$REC_FINAL\" = \"$REC_STATE\" ] || fail \"verification failed: org did not return enableCallRecording=${REC_STATE} (got ${REC_FINAL}).\"\n[ -z \"$TRANS_STATE\" ] || [ \"$TRANS_FINAL\" = \"$TRANS_STATE\" ] || fail \"verification failed: org did not return enableCallTranscription=${TRANS_STATE} (got ${TRANS_FINAL}).\"\n\n# Report siblings from the post-deploy round-tripped file — their real, current\n# (unchanged) values, proving nothing else moved.\nemit_json \"$REC_FINAL\" \"$TRANS_FINAL\" \"$(compute_status \"$REC_FINAL\" \"$TRANS_FINAL\")\" \"$(extract_preserved \"$SETTINGS_FILE\")\"\n","content_type":"application/x-sh; charset=utf-8","language":"bash","size":13060,"content_sha256":"135768faf6c2456c9b6614c6986c95570334f7afd64d9df116dc02804a437ead"}],"content_json":{"type":"doc","content":[{"type":"heading","attrs":{"level":1},"content":[{"text":"Configure Native Voice Recording & Transcription (headless)","type":"text"}]},{"type":"paragraph","content":[{"text":"Turn call ","type":"text"},{"text":"recording","type":"text","marks":[{"type":"strong"}]},{"text":" and call ","type":"text"},{"text":"transcription","type":"text","marks":[{"type":"strong"}]},{"text":" for Native Voice (Thunderbird Voice) ","type":"text"},{"text":"on or off","type":"text","marks":[{"type":"strong"}]},{"text":" on an org, programmatically, so the change takes effect for headless / API-driven support sessions that never touch the Service Console UI. Recording and transcription are ","type":"text"},{"text":"two separate preferences","type":"text","marks":[{"type":"strong"}]},{"text":" — this skill can set either or both to the requested state (leaving the other untouched) and returns a structured JSON confirmation.","type":"text"}]},{"type":"heading","attrs":{"level":2},"content":[{"text":"Scope","type":"text"}]},{"type":"bullet_list","content":[{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"In scope","type":"text","marks":[{"type":"strong"}]},{"text":": setting ","type":"text"},{"text":"enableCallRecording","type":"text","marks":[{"type":"code_inline"}]},{"text":" and/or ","type":"text"},{"text":"enableCallTranscription","type":"text","marks":[{"type":"code_inline"}]},{"text":" to a requested state — ","type":"text"},{"text":"true","type":"text","marks":[{"type":"code_inline"},{"type":"strong"}]},{"text":" (enable) or ","type":"text","marks":[{"type":"strong"}]},{"text":"false","type":"text","marks":[{"type":"code_inline"},{"type":"strong"}]},{"text":" (disable)","type":"text","marks":[{"type":"strong"}]},{"text":" — on the ","type":"text"},{"text":"ThunderbirdVoiceSettings","type":"text","marks":[{"type":"code_inline"}]},{"text":" metadata via an sf CLI Metadata API deploy (the generic ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" container, member ","type":"text"},{"text":"ThunderbirdVoice","type":"text","marks":[{"type":"code_inline"}]},{"text":"); returning a JSON confirmation of the resulting configuration. A preference the user does not name is left at its current value.","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Out of scope","type":"text","marks":[{"type":"strong"}]},{"text":": changing any other ","type":"text"},{"text":"ThunderbirdVoiceSettings","type":"text","marks":[{"type":"code_inline"}]},{"text":" boolean (e.g. call-recording redaction, SIP recording) — siblings are read only to be preserved, never set or reported; redacting/scrubbing PII from existing recordings or transcripts; transcribing a supplied audio file; provisioning the Native Voice / Thunderbird channel itself; authoring Flow, Apex, or permission sets. These are outside this skill's scope — handle them separately.","type":"text"}]}]}]},{"type":"hr","attrs":{"markup":"---"}},{"type":"heading","attrs":{"level":2},"content":[{"text":"Required Inputs","type":"text"}]},{"type":"paragraph","content":[{"text":"Gather or infer before proceeding:","type":"text"}]},{"type":"bullet_list","content":[{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Target org","type":"text","marks":[{"type":"strong"}]},{"text":" — an org alias or username the sf CLI is authenticated to. The deploy uses this existing ","type":"text"},{"text":"sf","type":"text","marks":[{"type":"code_inline"}]},{"text":" login; no session id or access token is requested. Default: the org's default target. Confirm connectivity with ","type":"text"},{"text":"sf org display -o \u003calias>","type":"text","marks":[{"type":"code_inline"}]},{"text":".","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Which preferences","type":"text","marks":[{"type":"strong"}]},{"text":" — recording, transcription, or both. Default: ","type":"text"},{"text":"both","type":"text","marks":[{"type":"strong"}]},{"text":", since headless capture typically needs recording ","type":"text"},{"text":"and","type":"text","marks":[{"type":"em"}]},{"text":" transcription. If the user named just one, target only that one and leave the other at its current value.","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Desired state","type":"text","marks":[{"type":"strong"}]},{"text":" — enable (","type":"text"},{"text":"on","type":"text","marks":[{"type":"code_inline"}]},{"text":"/","type":"text"},{"text":"true","type":"text","marks":[{"type":"code_inline"}]},{"text":") or disable (","type":"text"},{"text":"off","type":"text","marks":[{"type":"code_inline"}]},{"text":"/","type":"text"},{"text":"false","type":"text","marks":[{"type":"code_inline"}]},{"text":") for each named preference. Default: ","type":"text"},{"text":"enable","type":"text","marks":[{"type":"strong"}]},{"text":", unless the user asks to turn something off. Honor a disable request literally — never re-enable a preference the user asked to turn off.","type":"text"}]}]}]},{"type":"hr","attrs":{"markup":"---"}},{"type":"heading","attrs":{"level":2},"content":[{"text":"Workflow","type":"text"}]},{"type":"paragraph","content":[{"text":"All steps are sequential. Do not skip or reorder. If blocked, stop and ask for the missing org context.","type":"text"}]},{"type":"ordered_list","attrs":{"order":1,"listStyle":"number"},"content":[{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Confirm the two preferences are modeled separately.","type":"text","marks":[{"type":"strong"}]},{"text":" Recording (","type":"text"},{"text":"enableCallRecording","type":"text","marks":[{"type":"code_inline"}]},{"text":") and transcription (","type":"text"},{"text":"enableCallTranscription","type":"text","marks":[{"type":"code_inline"}]},{"text":") are distinct booleans on the same metadata type — never collapse them into one combined flag. The final confirmation must report each independently.","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Run the configure script.","type":"text","marks":[{"type":"strong"}]},{"text":" Run ","type":"text"},{"text":"scripts/enable-recording-transcription.sh --target-org \u003calias>","type":"text","marks":[{"type":"code_inline"}]},{"text":" with the desired state per preference: ","type":"text"},{"text":"--recording on|off","type":"text","marks":[{"type":"code_inline"}]},{"text":" and/or ","type":"text"},{"text":"--transcription on|off","type":"text","marks":[{"type":"code_inline"}]},{"text":". With no preference flags it defaults to turning ","type":"text"},{"text":"both on","type":"text","marks":[{"type":"strong"}]},{"text":". Examples: turn both off → ","type":"text"},{"text":"--recording off --transcription off","type":"text","marks":[{"type":"code_inline"}]},{"text":"; enable recording only → ","type":"text"},{"text":"--recording on","type":"text","marks":[{"type":"code_inline"}]},{"text":" (transcription left as-is); disable transcription only → ","type":"text"},{"text":"--transcription off","type":"text","marks":[{"type":"code_inline"}]},{"text":". The script retrieves ","type":"text"},{"text":"ThunderbirdVoiceSettings","type":"text","marks":[{"type":"code_inline"}]},{"text":" (via the ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" container), checks the org-perm gate, sets ","type":"text"},{"text":"only the named","type":"text","marks":[{"type":"strong"}]},{"text":" flag(s) to the requested value while preserving every other field, validates with a dry-run deploy, deploys, and verifies by round-trip. Use ","type":"text"},{"text":"--dry-run","type":"text","marks":[{"type":"code_inline"}]},{"text":" to retrieve + validate without persisting. Run ","type":"text"},{"text":"scripts/enable-recording-transcription.sh --help","type":"text","marks":[{"type":"code_inline"}]},{"text":" for all options.","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"For the Metadata API contract","type":"text","marks":[{"type":"strong"}]},{"text":", read ","type":"text"},{"text":"references/thunderbird-voice-settings.md","type":"text","marks":[{"type":"code_inline"}]},{"text":" — it documents the type, the two booleans, the ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":"-container manifest, the ","type":"text"},{"text":"v68.0+","type":"text","marks":[{"type":"strong"}]},{"text":" version floor, and the retrieve-first gate check. The manifest template the script generates is ","type":"text"},{"text":"assets/package.xml","type":"text","marks":[{"type":"code_inline"}]},{"text":".","type":"text"}]},{"type":"blockquote","content":[{"type":"paragraph","content":[{"text":"This uses the sf CLI Metadata API deploy, not a raw SOAP call. The member is the mdApiType ","type":"text"},{"text":"without","type":"text","marks":[{"type":"strong"}]},{"text":" the ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" suffix (","type":"text"},{"text":"ThunderbirdVoice","type":"text","marks":[{"type":"code_inline"}]},{"text":"), and the manifest version MUST be ","type":"text"},{"text":">= 68.0","type":"text","marks":[{"type":"strong"}]},{"text":" — the fields are not exposed at any lower version.","type":"text"}]}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Change only the named target field(s), to the requested state.","type":"text","marks":[{"type":"strong"}]},{"text":" The deployed settings file sets exactly the preference(s) the user named — ","type":"text"},{"text":"enableCallRecording","type":"text","marks":[{"type":"code_inline"}]},{"text":" and/or ","type":"text"},{"text":"enableCallTranscription","type":"text","marks":[{"type":"code_inline"}]},{"text":" — to the requested value (","type":"text"},{"text":"true","type":"text","marks":[{"type":"code_inline"}]},{"text":" to enable, ","type":"text"},{"text":"false","type":"text","marks":[{"type":"code_inline"}]},{"text":" to disable); every other ","type":"text"},{"text":"ThunderbirdVoiceSettings","type":"text","marks":[{"type":"code_inline"}]},{"text":" boolean, INCLUDING a target preference the user did not name, keeps its retrieved value. Do not add or flip other booleans, and never coerce a disable request back to ","type":"text"},{"text":"true","type":"text","marks":[{"type":"code_inline"}]},{"text":" — they are out of this skill's scope or contrary to the request.","type":"text"}]}]},{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"Return the confirmation JSON.","type":"text","marks":[{"type":"strong"}]},{"text":" Emit a single JSON object matching ","type":"text"},{"text":"assets/confirmation-output.json","type":"text","marks":[{"type":"code_inline"}]},{"text":": the metadata ","type":"text"},{"text":"type","type":"text","marks":[{"type":"code_inline"}]},{"text":" and ","type":"text"},{"text":"fullName","type":"text","marks":[{"type":"code_inline"}]},{"text":", that it was applied via a headless/API deploy, and — for ","type":"text"},{"text":"each","type":"text","marks":[{"type":"strong"}]},{"text":" of the two preferences separately — its field name and its resulting enabled state (","type":"text"},{"text":"true","type":"text","marks":[{"type":"code_inline"}]},{"text":"/","type":"text"},{"text":"false","type":"text","marks":[{"type":"code_inline"}]},{"text":", as it now stands after the deploy, whether it was changed or left as-is), plus an overall ","type":"text"},{"text":"status","type":"text","marks":[{"type":"code_inline"}]},{"text":" (","type":"text"},{"text":"ENABLED","type":"text","marks":[{"type":"code_inline"}]},{"text":", ","type":"text"},{"text":"DISABLED","type":"text","marks":[{"type":"code_inline"}]},{"text":", or ","type":"text"},{"text":"CONFIGURED","type":"text","marks":[{"type":"code_inline"}]},{"text":"). It also includes a ","type":"text"},{"text":"preserved","type":"text","marks":[{"type":"code_inline"},{"type":"strong"}]},{"text":" array echoing every sibling boolean (e.g. ","type":"text"},{"text":"enableCallRecRedaction","type":"text","marks":[{"type":"code_inline"}]},{"text":", ","type":"text"},{"text":"enableSipRecording","type":"text","marks":[{"type":"code_inline"}]},{"text":") with the value it was retrieved with — this attests the siblings were carried through ","type":"text"},{"text":"unchanged","type":"text","marks":[{"type":"strong"}]},{"text":", which compliance callers need as explicit \"nothing else moved\" assurance. Reporting a sibling's value is NOT changing it. On a successful run the script prints this object on stdout; surface it verbatim as the deliverable — do not strip the ","type":"text"},{"text":"preserved","type":"text","marks":[{"type":"code_inline"}]},{"text":" block.","type":"text"}]}]}]},{"type":"hr","attrs":{"markup":"---"}},{"type":"heading","attrs":{"level":2},"content":[{"text":"Rules / Constraints","type":"text"}]},{"type":"table","attrs":{"layout":null},"content":[{"type":"tr","content":[{"type":"th","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Constraint","type":"text"}]}]},{"type":"th","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Rationale","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Model recording and transcription as two separate preferences","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"They are distinct booleans (","type":"text"},{"text":"enableCallRecording","type":"text","marks":[{"type":"code_inline"}]},{"text":", ","type":"text"},{"text":"enableCallTranscription","type":"text","marks":[{"type":"code_inline"}]},{"text":"); collapsing them loses the ability to enable one without the other and fails the output contract.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Deploy through the generic ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" container with member ","type":"text"},{"text":"ThunderbirdVoice","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"ThunderbirdVoiceSettings","type":"text","marks":[{"type":"code_inline"}]},{"text":" is not a retrievable top-level type name; the ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" container (member = mdApiType minus the ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" suffix) is the sf CLI path and uses the org's ","type":"text"},{"text":"sf","type":"text","marks":[{"type":"code_inline"}]},{"text":" login — no session id.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Manifest version must be >= 68.0","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"ThunderbirdVoiceSettings","type":"text","marks":[{"type":"code_inline"}]},{"text":" fields are only exposed at API v68.0+; below that the retrieve returns the type empty/absent.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Retrieve before deploy; preserve all sibling fields","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"The deploy is a full-file replace — starting from the retrieved file keeps other prefs intact and lets the gate be checked.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Report the preserved siblings in a ","type":"text"},{"text":"preserved","type":"text","marks":[{"type":"code_inline"}]},{"text":" block, but never change them","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Compliance callers need explicit \"nothing else moved\" assurance; the confirmation echoes each sibling's retrieved value unchanged. Echoing a value is not setting it — the deployed file changes only the named target field(s).","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Honor the requested state literally — enable means ","type":"text"},{"text":"true","type":"text","marks":[{"type":"code_inline"}]},{"text":", disable means ","type":"text"},{"text":"false","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"A disable request that silently re-enables the preference (or reports success while leaving it on) is a correctness failure; set exactly what was asked and report the value the org actually returns.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Verify by round-trip before reporting the status","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"A \"Succeeded\" deploy is not proof; only report the resulting state after a re-retrieve returns each named preference at its requested value.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Output must be a single valid JSON object","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"The confirmation is consumed programmatically by headless callers; prose-only answers are not usable.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Do not include a session id, access token, phone number, recording URL, or transcript content in the output","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"These are secrets / PII; the confirmation reports configuration state only.","type":"text"}]}]}]}]},{"type":"hr","attrs":{"markup":"---"}},{"type":"heading","attrs":{"level":2},"content":[{"text":"Gotchas","type":"text"}]},{"type":"table","attrs":{"layout":null},"content":[{"type":"tr","content":[{"type":"th","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Issue","type":"text"}]}]},{"type":"th","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Resolution","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Property 'enableCallRecording' not valid in version \u003cN>","type":"text","marks":[{"type":"code_inline"}]},{"text":" / ","type":"text"},{"text":"Settings type 'ThunderbirdVoice' is unknown","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"API version too low.","type":"text","marks":[{"type":"strong"}]},{"text":" The fields are only exposed at v68.0+. Raise ","type":"text"},{"text":"--api-version","type":"text","marks":[{"type":"code_inline"}]},{"text":" to 68.0 or higher — this is NOT a feature gate.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Retrieve returns an empty ","type":"text"},{"text":"\u003cThunderbirdVoiceSettings/>","type":"text","marks":[{"type":"code_inline"}]},{"text":" (no fields)","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Org-perm gate ","type":"text"},{"text":"orgHasNativeVoiceAllowed","type":"text","marks":[{"type":"code_inline"}]},{"text":" is off — Native Voice is not provisioned. Enable via provisioning/Blacktab; metadata cannot flip an unprovisioned feature.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Trying to retrieve ","type":"text"},{"text":"ThunderbirdVoiceSettings","type":"text","marks":[{"type":"code_inline"}]},{"text":" as the type name","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Use the ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" container with member ","type":"text"},{"text":"ThunderbirdVoice","type":"text","marks":[{"type":"code_inline"}]},{"text":" (mdApiType minus the ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" suffix); the full type name is not a retrievable member.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Collapsing both prefs into one toggle (e.g. ","type":"text"},{"text":"recordingAndTranscription: true","type":"text","marks":[{"type":"code_inline"}]},{"text":")","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Keep two distinct entries in both the deployed file and the confirmation JSON.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Deploying a partial settings file","type":"text"}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Start from the retrieved file so sibling prefs keep their values; a partial file can reset them.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Missing ","type":"text"},{"text":"jq","type":"text","marks":[{"type":"code_inline"}]},{"text":" / ","type":"text"},{"text":"sf","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"The script depends on them; install or run in an environment that has them (declared in ","type":"text"},{"text":"metadata.cliTools","type":"text","marks":[{"type":"code_inline"}]},{"text":").","type":"text"}]}]}]}]},{"type":"hr","attrs":{"markup":"---"}},{"type":"heading","attrs":{"level":2},"content":[{"text":"Output Expectations","type":"text"}]},{"type":"paragraph","content":[{"text":"Deliverables:","type":"text"}]},{"type":"bullet_list","content":[{"type":"list_item","content":[{"type":"paragraph","content":[{"text":"A single JSON confirmation object on stdout, shaped per ","type":"text"},{"text":"assets/confirmation-output.json","type":"text","marks":[{"type":"code_inline"}]},{"text":" — the metadata target, the headless/API deploy path, each of the two preferences reported separately with its enabled state, a ","type":"text"},{"text":"preserved","type":"text","marks":[{"type":"code_inline"}]},{"text":" array echoing every sibling boolean (unchanged) so callers can confirm nothing else moved, and an overall ","type":"text"},{"text":"status","type":"text","marks":[{"type":"code_inline"}]},{"text":".","type":"text"}]}]}]},{"type":"paragraph","content":[{"text":"No files are written to the org's source tree — the script works in a temporary SFDX project and reports the result.","type":"text"}]},{"type":"hr","attrs":{"markup":"---"}},{"type":"heading","attrs":{"level":2},"content":[{"text":"Reference File Index","type":"text"}]},{"type":"table","attrs":{"layout":null},"content":[{"type":"tr","content":[{"type":"th","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"File","type":"text"}]}]},{"type":"th","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"When to read","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"scripts/enable-recording-transcription.sh","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Step 2 — run to retrieve → set named field(s) → validate → deploy → verify (supports ","type":"text"},{"text":"--recording on|off","type":"text","marks":[{"type":"code_inline"}]},{"text":", ","type":"text"},{"text":"--transcription on|off","type":"text","marks":[{"type":"code_inline"}]},{"text":", ","type":"text"},{"text":"--dry-run","type":"text","marks":[{"type":"code_inline"}]},{"text":", ","type":"text"},{"text":"--api-version","type":"text","marks":[{"type":"code_inline"}]},{"text":", ","type":"text"},{"text":"--help","type":"text","marks":[{"type":"code_inline"}]},{"text":"; defaults to both on).","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"references/thunderbird-voice-settings.md","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Step 3 — for the metadata type, the two booleans, the ","type":"text"},{"text":"Settings","type":"text","marks":[{"type":"code_inline"}]},{"text":" manifest, the v68.0+ floor, and the gate check.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"assets/package.xml","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Step 3 — the Metadata API manifest template the script generates; read to understand or hand-build the retrieve/deploy.","type":"text"}]}]}]},{"type":"tr","content":[{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"assets/confirmation-output.json","type":"text","marks":[{"type":"code_inline"}]}]}]},{"type":"td","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"alignment":""},"content":[{"type":"paragraph","content":[{"text":"Step 5 — the exact shape of the JSON confirmation to return.","type":"text"}]}]}]}]}]},"metadata":{"date":"2026-11-02","name":"service-native-voice-recording-transcription-configure","author":"@skillopedia","source":{"stars":1139,"repo_name":"sf-skills","origin_url":"https://github.com/forcedotcom/sf-skills/blob/HEAD/skills/service-native-voice-recording-transcription-configure/SKILL.md","repo_owner":"forcedotcom","body_sha256":"f97fdb619db7584eb683c68c00d21eeea57712796495803face776e8d1eecdc2","cluster_key":"9e9da805a4c76120a09d049068612df4e11a0d242c95df2d93ee2fb3bc898323","clean_bundle":{"format":"clean-skill-bundle-v1","source":"forcedotcom/sf-skills/skills/service-native-voice-recording-transcription-configure/SKILL.md","text_bytes":20256,"source_commit":"a8a18ce1e4ba12e69b4073eab98ce31bfbd8271e","skills_sh_rank":16827,"attachment_count":4,"text_attachments":4,"attachment_storage":"skill_attachments","binary_attachments":0},"cluster_size":1,"skill_md_path":"skills/service-native-voice-recording-transcription-configure/SKILL.md","import_metadata":{"date":"2026-11-02","author":"@skillopedia","version":"v1","category":"integrations-apis","category_label":"Integrations"},"exact_dupes_collapsed_into_this":0},"version":"v1","category":"integrations-apis","metadata":{"domains":["Service"],"version":"1.2","cliTools":[{"tool":["jq"],"semver":">=1.6"},{"tool":["sf"],"semver":">=2.0.0"}],"accessCheck":"ThunderbirdVoice.orgHasNativeVoiceAllowed","minApiVersion":"68.0"},"import_tag":"skills-sh-top20k-2026-11","description":"Configure (enable OR disable) call recording and call transcription for Native Voice (Thunderbird Voice) programmatically via the Metadata API, for headless / API-driven support where no human uses the Service Console UI. Either preference can be turned on or off independently. Use this skill when a user asks to turn on/off, enable/disable, or configure Native Voice recording and/or transcription for headless or automated voice calls. TRIGGER when: users mention Thunderbird Voice, Native Voice, ThunderbirdVoiceSettings, enableCallRecording, enableCallTranscription, 'enable recording and transcription', 'turn off call recording', 'disable transcription', 'turn on call recording via API', headless voice recording, or configuring voice-call capture without clicking through Setup. DO NOT TRIGGER when: the user wants to redact or scrub PII from existing recordings, transcribe a supplied audio file, or author a Flow/Apex — those are out of scope for this skill."}},"renderedAt":1793672060295}

Configure Native Voice Recording & Transcription (headless) Turn call recording and call transcription for Native Voice (Thunderbird Voice) on or off on an org, programmatically, so the change takes effect for headless / API-driven support sessions that never touch the Service Console UI. Recording and transcription are two separate preferences — this skill can set either or both to the requested state (leaving the other untouched) and returns a structured JSON confirmation. Scope - In scope : setting and/or to a requested state — (enable) or (disable) — on the metadata via an sf CLI Metadata…